Skip to content

Instantly share code, notes, and snippets.

View wommy's full-sized avatar

Tommy Williams wommy

View GitHub Profile
#!/usr/bin/bash
## credits
##
## ive spent dozens and dozen of hours on zram
##
## may my blood sweat and tears benefit another
##
## loosely based on ::
## Gary Explains - How to enable ZRAM on the Raspberry Pi
#!/usr/bin/bash
## apt-cache
echo 'Acquire::http::Proxy "http://192.168.10.14:3142";' | sudo tee /etc/apt/apt.conf.d/00aptproxy
## etckeeper
sudo apt update ; sudo apt install -y etckeeper
### zram
## zram-tools
## LINKS
## https://pbs.proxmox.com/docs/backup-client.html#
## https://ed.llo:8007/#DataStore-pbs:content
proxmox-backup-client backup \
--repository ed:pbs \
--ns hosts/skylake1 \
root.pxar:/root \
etc.pxar:/etc --exclude /etc/pve
#!/bin/bash
## from https://backports.debian.org/Instructions/
## and Andrea Borman 's https://www.youtube.com/@AndreaBorman
## youtube video :: How To Update With Debian Backports On Debian Bookworm.
## https://www.youtube.com/watch?v=XDF2CB-q60M
echo 'deb http://deb.debian.org/debian bookworm-backports main contrib non-free non-free-firmware' >> /etc/apt/sources.list
apt update ; apt upgrade -y -t bookworm-backports ; apt autoremove -y
#!/bin/bash
## so we're taking the Proxmox VE Host Backup script
## former ttech
## https://community-scripts.github.io/ProxmoxVE/scripts?id=host-backup
## aka
## bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/host-backup.sh)"
## LINKS
## https://raw.githubusercontent.com/community-scripts/ProxmoxVE/main/tools/pve/host-backup.sh
#!/bin/bash
sed -i 's/#no-cgroups = false/no-cgroups = true/g' "/etc/nvidia-container-runtime/config.toml"
# Assuming you are in the target directory in a Bash terminal
# 1. Get directory name and define list file name
current_dir_name=$(basename "$(pwd)")
list_file="${current_dir_name}_list.txt"
# 2. Generate the list of files recursively into the named list file
find . -type f -name "*.mp4" | sed "s/^/file '/;s/$/'/" > "$list_file"
# 3. Define output video name and run FFmpeg -c copy

init new ct

i only tried this on an ub_ct yet

ssh-keygen -t ed25519 ; 

echo 'Acquire::http::Proxy "http://192.168.10.14:3142";' > /etc/apt/apt.conf.d/00aptproxy ; 

ln -fs /usr/share/zoneinfo/America/Detroit /etc/localtime && dpkg-reconfigure -f noninteractive tzdata ; 
@wommy
wommy / rice_wine.md
Last active March 10, 2025 20:50
how to make rice wine

videos documenting rice wine production

so recently a buddy and i have both have complaints of digestive duress from beer ( we are guessing bc of GMO grain )
and both have found that sake and soju, or rice wine, and cidre have been free of similar issues

after a couple of months of bullshitting about it cant be that hard
this serves to document a recent micro deep dive into how one would go about home production of rice wine and cidre

videos

@wommy
wommy / pve_config-bckp_tmpl.sh
Created March 5, 2025 00:22
snippet to configure the backup template on pve node
#!/bin/bash
cat << 'EOF' >> /etc/vzdump.conf
notes-template: --{{guestname}}-{{vmid}}-{{node}}
compress: zstd
zstd: 0 # use half of the available cores
EOF