Skip to content

Instantly share code, notes, and snippets.

View goldstar611's full-sized avatar

Tony F goldstar611

  • Out in the country, past the city limit sign
View GitHub Profile
@goldstar611
goldstar611 / openwrt_quirks.txt
Created February 5, 2024 20:24
openwrt_quirks.txt
# https://forum.openwrt.org/t/support-for-xiaomi-wifi-r3p-pro/20290/882
A short note here for those who (just like me) have problems with a UAS driver and USB3 external drives.
The symptoms are that the device is recognized and you can see it with lsusb -t command. The driver lists uas,
but the drive does not show up in /dev/sd*.
root@AndyNet:~# lsusb -t
/: Bus 02.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/1p, 5000M
|__ Port 1: Dev 2, If 0, Class=Mass Storage, Driver=uas, 5000M
/: Bus 01.Port 1: Dev 1, Class=root_hub, Driver=xhci-mtk/2p, 480M
@goldstar611
goldstar611 / compile.sh
Created February 4, 2024 05:08
Compiling grub2 for Intel Bay Trail devices (bootia32.efi)
# https://github.com/hirotakaster/baytail-bootia32.efi/issues/2
sudo apt install git bison libopts25 libselinux1-dev autogen m4 autoconf help2man libopts25-dev flex libfont-freetype-perl automake autotools-dev libfreetype6-dev texinfo
sudo apt install make autopoint pkg-config libtool
sudo apt install gawk
sudo apt purge mawk
git clone git://git.savannah.gnu.org/grub.git --depth=1
./configure --with-platform=efi --target=i386 --program-prefix=""
@goldstar611
goldstar611 / roblox_windows11_proxmox_working
Created January 9, 2024 00:04
Working config for Roblox on Windows 11 on Proxmox (super slow)
args: -cpu host,-hypervisor,kvm=off,hv_vendor_id=intel, -smbios type=0,vendor="Dell Inc.",version=1.3.7,date="04/11/2017", -smbios type=1,uuid=a7a97ecc-4989-4621-acec-244a358c35e5,manufacturer="Dell Inc.",product="OptiPlex 3050",serial=1ABCDE2,sku=07A3,family=Optiplex, -smbios type=3,manufacturer="Dell Inc.",serial=1ABCDE2,sku=Desktop
bios: ovmf
boot: order=sata0
cores: 4
cpu: host,hidden=1
efidisk0: Team512:vm-106-disk-0,efitype=4m,pre-enrolled-keys=1,size=4M
kvm: 1
machine: pc-q35-8.0
memory: 8192
meta: creation-qemu=8.0.2,ctime=1701744172
#!/bin/bash
# Getting snapcraft and dependencies
#
# git clone https://github.com/snapcore/snapcraft
# cd snapcraft/
# pip install . --break-system-packages
# pip install catkin-pkg --break-system-packages
# mkdir -p /usr/share/snapcraft/schema
# mkdir /usr/share/snapcraft/extensions
@goldstar611
goldstar611 / proxmox_customs.sh
Created July 17, 2023 23:57
proxmox_customs.sh
sed -i 's/checked_command: function(orig_cmd) {/checked_command: function(orig_cmd) {orig_cmd();},\n\n zzzchecked_command: function(orig_cmd) {/g' /usr/share/javascript/proxmox-widget-toolkit/proxmoxlib.js
@goldstar611
goldstar611 / check_port_443.sh
Created February 5, 2023 04:11
Check port 443
#!/bin/sh
while ! $(nc -z -v -w1 example.com 443); do sleep 10; done; curl -d "Example.com may be up" https://ntfy.lan/example
@goldstar611
goldstar611 / AppImageBuilder.yml
Last active August 15, 2022 15:29
Xonotic AppImage-builder Recipe
# The purpose here is to play Xonotic on older OS with glibc < 2.29
#
# The resulting AppImage doesn't work BUT
# you can extract the AppImage using
# `./Xonotic-0.8.5-x86_64.AppImage --appimage-extract`
# and execute `./squashfs-root/AppRun` to play the game
#
# There are some tweaks to file modes and copying over symlinks to ensure that
# the file is executable on other systems where the uid is different.
#
@goldstar611
goldstar611 / GM-30_cps_embed_message_password.txt
Created August 9, 2022 19:47
Radioddity GM-30 CPS.exe Embed Message Password
BAOFENGH5
@goldstar611
goldstar611 / roblox.desktop
Last active May 5, 2023 21:11
Shortcut to Roblox
xdg-mime default "roblox.desktop" x-scheme-handler/roblox-player
@goldstar611
goldstar611 / vaultwarden_cross_compile.sh
Last active November 13, 2022 04:15
arm64 (aarch64) vaultwarden cross compile
# aarch64 and arm64 are basically the same thing
sudo dpkg --add-architecture arm64
sudo apt install -y gcc-aarch64-linux-gnu libpq-dev:arm64 libmariadb-dev:arm64 libmariadbclient-dev-compat:arm64 libgnutls28-dev:arm64 liblz-dev:arm64 libssl-dev:arm64
# curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
rustup target add aarch64-unknown-linux-gnu
export CARGO_TARGET_AARCH64_UNKNOWN_LINUX_GNU_LINKER=/usr/bin/aarch64-linux-gnu-gcc
export PKG_CONFIG_PATH=/usr/lib/aarch64-linux-gnu/pkgconfig/