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
@digitsensitive
digitsensitive / arch-meets-argon-one-up-cm5-laptop.md
Last active March 1, 2026 20:31
Arch Linux ARM on Argon ONE UP CM5

Arch Linux ARM on Argon ONE UP CM5

Prepare SD-Card

Install Raspberry Pi OS (64-bit) f.e. via Raspberry Pi Imager on your SD-Card.

Prepare NVMe drive

Boot with the SD-Card inside Raspberry Pi OS. Open a Terminal.

Battery Percent on Argon ONE UP (Ubuntu)

I received the unit yesterday and started testing it. Argon provides a script to manage the battery, but it does not integrate natively with the operating system. The problem is that the script does not register any battery on the power_supply subsystem, so the system cannot recognize the battery as standard.

According to the block diagram, the Argon ONE UP uses a Cellwise CW2217 chip connected over I2C (on RPI1, bus i2c-1, address 0x64), so creating a driver for it is not very difficult.

I created the driver and uploaded it to GitHub kmod-cw2217b. After installing it, the system can display the battery percentage on Ubuntu or Debian.

🛠️ Build & Install the Module

@mmozeiko
mmozeiko / argononeup.md
Last active February 24, 2026 08:17
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 March 1, 2026 18:46
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