Skip to content

Instantly share code, notes, and snippets.

View minlexx's full-sized avatar
🐧
Working

Alexey Min minlexx

🐧
Working
View GitHub Profile
LOG : General f:0, t:1773175190451, st:5,108,053,882> AnimNode.Parse threw an exception reading file: /home/pzserver/steamapps/workshop/content/108600/3611718925/mods/VFE/42.15/media/AnimSets/player-vehicle/actions/RackHandgun2.xml
ERROR: General f:0, t:1773175190451, st:5,108,053,883> ExceptionLogger.logException> Exception thrown
zombie.util.PZXmlParserException: Exception thrown while parsing XML file "steamapps/workshop/content/108600/3611718925/mods/vfe/42.15/media/animsets/player-vehicle/actions/loadhandgun2.xml"
Caused by:
java.io.FileNotFoundException: steamapps/workshop/content/108600/3611718925/mods/vfe/42.15/media/animsets/player-vehicle/actions/loadhandgun2.xml (No such file or directory) at PZXmlUtil.parseXml(PZXmlUtil.java:56).
Stack trace:
zombie.util.PZXmlUtil.parseXml(PZXmlUtil.java:56)
zombie.util.PZXmlUtil.parseXml(PZXmlUtil.java:75)
zombie.util.PZXmlUtil.parse(PZXmlUtil.java:385)
zombie.core.skinnedmodel.advancedanimation.AnimNode.Parse(AnimNode.java:225)
~/d/p/P/m/scripts $ grep -rn DisplayCategory | awk '{print $4;}' | sort | uniq
Accessory,
Ammo,
Animal,
AnimalPart,
AnimalPartWeapon,
Appearance,
Badger,
Bag,
Bandage,
#!/bin/bash
MIRROR_PMOS=http://mirror.postmarketos.org/postmarketos/
MIRROR_ALPINE=http://mirror.yandex.ru/mirrors/alpine/
#MIRROR_ALPINE=http://dl-cdn.alpinelinux.org/alpine/
python3 ~/projects/pmbootstrap/pmbootstrap.py \
--mirror-pmOS=${MIRROR_PMOS} \
--mirror-alpine=${MIRROR_ALPINE} \
@minlexx
minlexx / setup-diag.sh
Created May 24, 2024 12:51
Setup diag-router FunctionFS gadget on pmOS phone with already configured USB gadget
#!/bin/sh
set -x
G1="/sys/kernel/config/usb_gadget/g1"
# turn off the gadget
UDC_NAME=$( cat $G1/UDC )
echo "" > $G1/UDC
sleep 1
#!/usr/bin/python3
# SPDX-License-Identifier: GPL-3.0
# Author: Alexey Minnekhanov <alexeymin@postmarketos.org>
# Uncompressed aarch64 kernel image does not include file size
# anywhere inside the file itself; so we have to fake that.
# Append the size as a 32-bit little-endian number as gzip does.
# This works as follows:
/dts-v1/;
/ {
#address-cells = <0x1>;
#size-cells = <0x1>;
model = "SAMSUNG K PROJECT REV14";
compatible = "qcom,msm8974-mtp", "qcom,msm8974", "qcom,mtp";
interrupt-parent = <0x1>;
qcom,msm-id = <0xc208ff01 0xe 0x10000>;
@minlexx
minlexx / HOWTO-use.txt
Last active June 4, 2025 09:36
Linux build scripts for postmarketOS (read HOWTO-use.txt)
# First step, perform "pmbootstrap install" locally once for your device,
# to get the initramfs file generated by pmbootstrap.
# Then copy it into build dir (this is done only once!):
$ ./cp-initfs.sh
# Then regular build process:
$ ./menuconfig.sh or ./make.sh oldconfig
$ ./make.sh && ./modules-install.sh && ./replace-modules-in-initfs.sh xiaomi-lavender-tianma && ./create-bootimg.sh xiaomi-lavender-tianma && ./upload-modules-rsync.sh
#pragma once
#ifndef LINENOISE_CONVERT_INC
#define LINENOISE_CONVERT_INC
/*
Copyright 2020 dbj@dbj.org -- turned into single header C lib
inevitably some name clashes will
start becuase of this header.
Thus renaming is very likely not finished
Licence: CC BY SA 4.0
@minlexx
minlexx / example_output.txt
Last active February 14, 2020 16:11
test_threaded_socketnotifier
Thread: started!
Thread: writing: Write 0
ready to read!
read: Write 0
Thread: writing: Write 1
ready to read!
read: Write 1
Thread: writing: Write 2
ready to read!
read: Write 2