Skip to content

Instantly share code, notes, and snippets.

View GamePlayer-8's full-sized avatar
🏳️‍⚧️
meow

Chimmie Firefly GamePlayer-8

🏳️‍⚧️
meow
  • Canary Islands
View GitHub Profile
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINTS
sda 8:0 0 2.7T 0 disk
├─sda1 8:1 0 851.1G 0 part
│ └─serverdisk 253:6 0 851.1G 0 crypt /var/lib/libvirt
│ /mnt/serverdisk
├─sda2 8:2 0 959.8G 0 part
│ └─backup 253:7 0 959.7G 0 crypt /home/gameplayer/workspace/shellscripts/scripts/chimmie/guestfish/build
│ /mnt/backup
├─sda3 8:3 0 800G 0 part
│ └─sysbackup 253:8 0 800G 0 crypt /home/gameplayer/sysbackup-games
/org/freedesktop/UDisks2/Manager:
org.freedesktop.UDisks2.Manager:
DefaultEncryptionType: luks2
SupportedEncryptionTypes: luks1
luks2
SupportedFilesystems: ext2
ext3
ext4
xfs
vfat
@GamePlayer-8
GamePlayer-8 / network-healthcheck@.service
Created June 3, 2025 12:06
Systemd Network Healthcheck.
[Unit]
Description=Check if IP address became online
After=network.target
[Service]
Type=simple
ExecStart=/bin/sh -c 'until ping -c 1 %i; do sleep 1; done'
Restart=on-failure
RestartSec=1
[Unit]
Description=Podman API Service per user
Documentation=man:podman-generate-systemd(1)
Wants=network-online.target
After=network-online.target user@%i.service user-%i.slice
Requires=user@%i.service
RequiresMountsFor=%t/containers
[Service]
EnvironmentFile=-/etc/default/podman.%i
@GamePlayer-8
GamePlayer-8 / setup.sh
Last active June 9, 2024 11:53
Electron setup environment.
#!/bin/sh
echo 'https://dl-cdn.alpinelinux.org/alpine/edge/testing' > /etc/apk/repositories
echo 'https://dl-cdn.alpinelinux.org/alpine/v3.20/main' >> /etc/apk/repositories
echo 'https://dl-cdn.alpinelinux.org/alpine/v3.20/community' >> /etc/apk/repositories
apk update
apk upgrade
apk add shadow alpine-conf sudo
useradd electron
@GamePlayer-8
GamePlayer-8 / podman.json
Created January 26, 2024 08:20
Podman Default Network CNI Dual Stack config.
{
"name": "podman",
"id": "bdeaaa55acb82fd29a98ecd7424d703d3ecf7228ba01acb9a9ce71ee38c106cd",
"driver": "bridge",
"network_interface": "podman0",
"created": "2024-01-25T16:19:45.783349912-06:00",
"subnets": [
{
"subnet": "2001:db3::/64",
"gateway": "2001:db3::1"
@GamePlayer-8
GamePlayer-8 / nginx.conf
Created January 21, 2024 18:28
nginx config for debugging
worker_processes auto;
worker_rlimit_nofile 100000;
error_log logs/error.log;
events {
worker_connections 4096;
use epoll;
multi_accept on;
@GamePlayer-8
GamePlayer-8 / upowerd.log
Created January 19, 2024 10:04
upowerd log
TI:11:03:32 Acquired inhibitor lock (9, delay)
TI:11:03:32 Starting upowerd version 1.90.2
TI:11:03:32 Exported UpDevice with path /org/freedesktop/UPower/devices/DisplayDevice
TI:11:03:32 daemon now coldplug
TI:11:03:32 invalid bitmask entry for /sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1
TI:11:03:32 invalid bitmask entry for /sys/devices/LNXSYSTM:00/LNXPWRBN:00/input/input1/event1
TI:11:03:32 invalid bitmask entry for /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input2
TI:11:03:32 invalid bitmask entry for /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/LNXVIDEO:00/input/input2/event2
TI:11:03:32 no device file: /sys/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:17/PNP0C09:00/PNP0C0D:00/input/input0
TI:11:03:32 watching /dev/input/event0 (10)
@GamePlayer-8
GamePlayer-8 / udevadm_power.log
Created January 15, 2024 15:02
Logs udevadm power.
ac_charging.txt:
Udevadm info starts with the device specified by the devpath and then
walks up the chain of parent devices. It prints for every device
found, all possible attributes in the udev rules key format.
A rule to match, can be composed by the attributes of the device
and the attributes from one single parent device.
looking at device '/devices/LNXSYSTM:00/LNXSYBUS:00/PNP0A08:00/device:17/PNP0C09:00/ACPI0003:00/power_supply/AC':
KERNEL=="AC"
@GamePlayer-8
GamePlayer-8 / grub-sb.sh
Last active December 23, 2023 09:44
GRUB with Secure Boot.
#!/bin/sh
export platform="${platform:-x86_64-efi}"
export CD_MODULES="all_video
boot
btrfs
cat
chain
configfile