Skip to content

Instantly share code, notes, and snippets.

View rbm78bln's full-sized avatar
😎
being cool

Ralf M rbm78bln

😎
being cool
View GitHub Profile
@mmozeiko
mmozeiko / argononeup.md
Last active February 11, 2026 11:37
Argon ONE UP extras

NOTE: I use [ArchLinux ARM][] with [sway][] wayland window manager and [pipewire][] for audio.

All of the functionality here works with NO need to run argononeup.sh script.

First time setup

As a one time setup, update pi bootloader EEPROM configuration:

sudo pacman -S rpi5-eeprom

sudo rpi-eeprom-config -e

@MRDGH2821
MRDGH2821 / starlite-mkv-firmware-updater.sh
Last active March 20, 2025 07:17
Firmware updater script for StarLite MK V tablet
#!/usr/bin/env bash
echo "Choose build type:"
echo "1. Stable build"
echo "2. Daily build"
echo "3. Exit"
read "Enter Choice:" -r BUILD_TYPE
flash_rom() {
echo "Flash the ROM? (Y/N)"
@VirtuBox
VirtuBox / http3.conf
Last active October 1, 2024 10:03
HTTP/3 QUIC conf with more_set_headers
more_set_headers "X-protocol : $server_protocol always";
more_set_headers 'Alt-Svc h3=":$server_port"; ma=86400';
quic_retry on;
listen 443 quic;
listen 443 ssl;
listen [::]:443 quic;
listen [::]:443 ssl;
@c0m4r
c0m4r / Arch_Linux_ARM_aarch64_ipv6_installation.md
Last active June 16, 2025 14:07
Arch Linux ARM (aarch64/IPv6) installation

Arch Linux ARM (Aarch64/IPv6) installation

Generic AArch64 Installation

Tarball mirors with IPv6 support

Country Official URL
USA true https://ca.us.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
Denmark true http://dk.mirror.archlinuxarm.org/os/ArchLinuxARM-aarch64-latest.tar.gz
@erwin
erwin / turn-off-device.sh
Last active November 21, 2024 13:20
Shell Script to Disconnect / Reconnect USB device
#!/bin/bash
# In my case, I would like to turn off my HUGE TRACKBALL sometimes, because it
# gets disconnected from the USB bus... Not very often, but a few times per month
# I launch this script with a tool like `rofi` or `dmenu`.
#
# You can easily adjust this script to work for any USB device by changing the
# these variables for the hex code of vendor and product.
#
#
#!/bin/sh
# This is an example script to force provision a UniFi network device using the controller API
# If you are running this externally then replace localhost with the hostname
baseurl=https://localhost:8443
# I would make a dedicated admin user for this
username=<username_here>
password=<password_here>
### Unofficial Dump of UniFi system.cfg Properties
###
### WARNINGS:
### - This list is undocumented, unsupported, and incomplete.
### - Some options may be deprecated and ignored.
### - Some options WILL break your setup.
### - Some options work now but WILL break you in a future firmware update.
###
### USING THESE:
### See https://help.ui.com/hc/articles/205146040#2
import string
import sqlite3
import time
import sqlalchemy
import os.path
from binance_trade_bot.database import Database, LogScout
from binance_trade_bot.logger import Logger
from binance_trade_bot.config import Config
import sys
@StudioEtrange
StudioEtrange / synology_set_external_drive_as_internal.sh
Created April 3, 2021 20:05
synology_set_external_drive_as_internal
# https://www.casler.org/wordpress/synology-ssd-cache-on-external-devices/
echo "Current values"
more /etc.defaults/synoinfo.conf | grep maxdisk
more /etc.defaults/synoinfo.conf | grep usbportcfg
more /etc.defaults/synoinfo.conf | grep esataportcfg
more /etc.defaults/synoinfo.conf | grep internalportcfg
sudo sed -i.bak -e 's/maxdisks=\".*$/maxdisks=\"24\"/g' -e 's/usbportcfg=\".*$/usbportcfg=\"0x00\"/g' -e 's/esataportcfg=\".*$/esataportcfg=\"0x00\"/g' -e 's/internalportcfg=\".*$/internalportcfg=\"0xffffff\"/g' /etc.defaults/synoinfo.conf
echo "Updated values"
more /etc.defaults/synoinfo.conf | grep maxdisk
more /etc.defaults/synoinfo.conf | grep usbportcfg
csrutil disable
sudo nvram boot-args="intcoproc_unrestricted=1 kext-dev-mode=1 amfi_allow_any_signature=1 amfi_unrestrict_task_for_pid=1 PE_i_can_has_debugger=1 cs_enforcement_disable=1 amfi_get_out_of_my_way=1 amfi=0xff cs_debug=1 ipc_control_port_options=0"
sudo spctl --global-disable
sudo defaults write /Library/Preferences/com.apple.security GKAutoRearm -bool NO
sudo defaults write /Library/Preferences/com.apple.security.coderequirements Entitlements -string always
sudo defaults write /Library/Preferences/com.apple.security.coderequirements AllowUnsafeDynamicLinking -bool YES
sudo defaults write /Library/Preferences/com.apple.security.libraryvalidation.plist DisableLibraryValidation -bool YES
defaults write com.apple.loginwindow DisableScreenLockImmediate -bool yes