Skip to content

Instantly share code, notes, and snippets.

View goldstar611's full-sized avatar

goldstar611 goldstar611

  • There's something going on here.
View GitHub Profile
@goldstar611
goldstar611 / Makefile
Last active January 15, 2023 02:35
CHIRP flatpak (python2+gtk2)
.PHONY: all export run clean dist-clean get_sdk
# `make run` will start chirpw
# `make run python` will start the python interpreter inside the flatpak
# `make run bash` will start bash shell inside the flatpak
args = $(filter-out $@,$(MAKECMDGOALS))
CMD ?= $(if $(args),$(args),chirpw)
all:
flatpak-builder --force-clean build-dir --repo repo/ com.danplanet.chirp.yml | tee build.txt
@goldstar611
goldstar611 / autoclicker.py
Last active March 16, 2024 16:48
An autoclicker. Or something like that
import time
import pyautogui
do_break = False
while True:
if do_break:
break
start_time = time.time()
while True:
@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/
@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 / GM-30_cps_embed_message_password.txt
Created August 9, 2022 19:47
Radioddity GM-30 CPS.exe Embed Message Password
BAOFENGH5
@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 / 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 / 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
#!/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 / 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