Skip to content

Instantly share code, notes, and snippets.

View wommy's full-sized avatar

Tommy Williams wommy

View GitHub Profile
#!/usr/bin/bash
## Watch This Space || full write-up, accompanying explainer doc coming soon
### zram kernel optimizations
## https://github.com/garyexplains/examples/blob/master/how_to_enable_ZRAM_Raspberry_Pi.md#kernel-parameters-to-make-better-use-of-zram
cat << 'EOF' | sudo tee /etc/sysctl.d/99-vm-zram-parameters.conf
vm.vfs_cache_pressure=500
vm.swappiness=100
vm.dirty_background_ratio=1
#!/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
#!/usr/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)"
## the only line we need is 65 or
## tar -czf "$BACKUP_PATH$BACKUP_FILE-$(date +%Y_%m_%d).tar.gz" --absolute-names "${selected_directories[@]}"
## we're going to improve this using zstd
## ssh into NAS and then SSH into Node
#!/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 &amp;&amp; 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