Skip to content

Instantly share code, notes, and snippets.

@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
@GamePlayer-8
GamePlayer-8 / i2pd.conf
Created December 14, 2023 08:34
I2Pd configuration file.
## Configuration file for a typical i2pd user
## See https://i2pd.readthedocs.io/en/latest/user-guide/configuration/
## for more options you can use in this file.
## Lines that begin with "## " try to explain what's going on. Lines
## that begin with just "#" are disabled commands: you can enable them
## by removing the "#" symbol.
## Tunnels config file
## Default: ~/.i2pd/tunnels.conf or /var/lib/i2pd/tunnels.conf
@GamePlayer-8
GamePlayer-8 / upower_battery_true.log
Created December 4, 2023 19:58
Chromebook with cable unplugged after reopening lid
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: AC
power supply: yes
updated: pon, 4 gru 2023, 20:45:49 (11 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: no
icon-name: 'ac-adapter-symbolic'
@GamePlayer-8
GamePlayer-8 / upower_battery_error.log
Created December 4, 2023 19:57
Chromebook when cable is unplugged while running
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: AC
power supply: yes
updated: pon, 4 gru 2023, 20:45:26 (12 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: yes
icon-name: 'ac-adapter-symbolic'
@GamePlayer-8
GamePlayer-8 / upower_charging.log
Created December 4, 2023 19:55
Chromebook when charging
Device: /org/freedesktop/UPower/devices/line_power_AC
native-path: AC
power supply: yes
updated: pon, 4 gru 2023, 20:44:46 (32 seconds ago)
has history: no
has statistics: no
line-power
warning-level: none
online: no
icon-name: 'ac-adapter-symbolic'