Skip to content

Instantly share code, notes, and snippets.

View assada's full-sized avatar
🥒
Pickle Alex

Alex Ilyenko assada

🥒
Pickle Alex
View GitHub Profile
[GLOBAL]
PATH: ./
PING_TIME: 5
MAX_MISSED: 3
USE_ACL: True
REG_ACL: PERMIT:ALL
SUB_ACL: DENY:1
TGID_TS1_ACL: PERMIT:ALL
TGID_TS2_ACL: PERMIT:ALL
@assada
assada / 01_in_general.md
Last active October 26, 2023 17:50
OpenRTX for T-TWR Plus VHF OpenEdition
#!/bin/bash
set -e
echo "Enabling I2C, SPI, and Console Auto login..."
sudo raspi-config nonint do_i2c 0 || { echo "Error: Failed to enable I2C."; exit 1; }
sudo raspi-config nonint do_spi 0 || { echo "Error: Failed to enable SPI."; exit 1; }
sudo raspi-config nonint do_boot_behaviour B2 || { echo "Error: Failed to enable Console Auto login."; exit 1; }
echo "Updating and installing dependencies..."
sudo apt-get -y install git raspberrypi-kernel-headers < "/dev/null" || { echo "Error: Failed to install dependencies."; exit 1; }
// Font generated or edited with the glyphEditor
const uint8_t ArialMT_Plain_16[] PROGMEM = {
0x10, // Width: 16
0x13, // Height: 19
0x20, // First char: 32
0xE0, // Number of chars: 224
// Jump Table:
0xFF, 0xFF, 0x00, 0x10, // 32
0x00, 0x00, 0x08, 0x04, // 33
0x00, 0x08, 0x0D, 0x06, // 34
REM use hub4com-2.1.0.0-386
REM com0com setup:
REM
REM COM11 real device you want to "man in the middle"
REM virtual pair: COM5 CNCB0
REM virtual pair: COM7 CNCB1
REM
REM hook COM 11 to real device, hook COM5 to application, hook COM7 to monitoring app - eg.realterm
hub4com --route=0:1,2 --route=1:0,2 --octs=off --baud=9600 \\.\COM11 \\.\CNCB0 \\.\\CNCB1
@assada
assada / composer
Last active June 20, 2023 11:01
Fake PHP\Composer binares
docker run --net=host --rm --interactive --tty -v $(pwd):/app --user $(id -u):$(id -g) -v ~/.ssh:/home/user/.ssh -w /app composer:1 composer "$@"
@assada
assada / curl.bash
Created June 12, 2023 14:34
SpiceDB broken json response
curl --location 'http://localhost:8443/v1/relationships/read' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer foobar' \
--data '{
"consistency": {
"minimizeLatency": true
},
"relationshipFilter": {
"resourceType": "document_template",
"resourceId": "1"
root@ubuntu-s-2vcpu-4gb-fra1-01:~/azerothcore-wotlk# docker logs -f 1aeeb6af0793
Deno version check:
Version 1.26.0 is already installed
Running worldserver ...
Running with GDB enabled
11596.224415 [Thread debugging using libthread_db enabled]
11596.224458 Using host libthread_db library "/lib/x86_64-linux-gnu/libthread_db.so.1".
AzerothCore rev. unknown 1970-01-01 00:00:00 +0000 (Archived branch) (Unix, RelWithDebInfo, Static) (worldserver-daemon)
<Ctrl-C> to stop.
Thread 1 "worldserver" received signal SIGSEGV, Segmentation fault.
std::_Rb_tree<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> >, std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<PlayerSetting, std::allocator<PlayerSetting> > >, std::_Select1st<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<PlayerSetting, std::allocator<PlayerSetting> > > >, std::less<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > >, std::allocator<std::pair<std::__cxx11::basic_string<char, std::char_traits<char>, std::allocator<char> > const, std::vector<PlayerSetting, std::allocator<PlayerSetting> > > > >::find (this=0x3c40, __k="mod-transmog") at /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_tree.h:2562
595967.795200 2562 /usr/bin/../lib/gcc/x86_64-linux-gnu/9/../../../../include/c++/9/bits/stl_tree.h: No such file or directory
[ 22%] Building CXX object src/server/scripts/CMakeFiles/scripts.dir/Commands/PlayerCommand.cpp.o
fatal error: file '/azerothcore/src/server/game/Miscellaneous/Language.h' has been modified since the precompiled header '/azerothcore/var/build/obj/src/server/scripts/CMakeFiles/scripts.dir/cmake_pch.hxx.pch' was built: size changed
note: please rebuild precompiled header '/azerothcore/var/build/obj/src/server/scripts/CMakeFiles/scripts.dir/cmake_pch.hxx.pch'
1 error generated.
make[2]: *** [src/server/scripts/CMakeFiles/scripts.dir/build.make:94: src/server/scripts/CMakeFiles/scripts.dir/Commands/PlayerCommand.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1260: src/server/scripts/CMakeFiles/scripts.dir/all] Error 2
make[1]: *** Waiting for unfinished jobs....
[ 22%] Building CXX object src/server/apps/CMakeFiles/authserver.dir/authserver/Authentication/AuthCodes.cpp.o
[ 22%] Building CXX object src/server/apps/CMakeFiles/authserver.dir/authserver/Server/AuthSession.cpp.o
fatal error: file '/azerothcore/src/