Advanced Search
Search Results
211 total results found
Mounting a directory over the network as a chrooted user
Create a new system user that will be restricted to SSHFS mounting. sudo adduser sshfsuser --shell /usr/sbin/nologin Sort permissions of the restricted user's home folder sudo chown root:root /home/share sudo chmod 755 /home/share Due to chrooting the hom...
Generate keys and disable password login
On client ssh-keygen -t rsa -b 4096 -f ~/.ssh/share_key On server adduser $USER Copy key to server ssh-copy-id -f -i .ssh/sharekey.pub user@target.com Proxmox sidenote: In the Proxmox web UI: Go to Datacenter → Permissions → Users → Add. Add ...
Enable dropbear on boot to decrypt full disk encryption
install dropbear-initramfs put public rsa key in /etc/dropbear/initramfs/authorized_keys, prependno-port-forwarding,no-agent-forwarding,no-x11-forwarding,command="/bin/cryptroot-unlock" ssh-rsa ... if DHCP no config neccesary in /etc/dropbear/initramfs...
Wipe data from SSD/HDD
Step 1: Identify the Drive TypeRun:lsblk -d -o name,rotaROTA 1 → HDD (spinning disk)ROTA 0 → SSD---If It's an SSDUse blkdiscard + Secure Erase (if supported)1. Fast erase with blkdiscard:sudo blkdiscard /dev/sdX2. Secure erase (factory-level wipe):Check if sup...
Setup bridge
/etc/network/interfaces auto lo iface lo inet loopback iface lo inet6 loopback auto $PHYSICAL_IFACE iface $PHYSICAL_IFACE inet static address $IPV4_ADDRESS netmask $IPV4_NETMASK gateway $IPV4_GATEWAY up route add -n...
Compress dir full of PDFs
for i in *.pdf; do gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook -dNOPAUSE -dQUIET -dBATCH -sOutputFile="tmp_$i" "$i" && mv "tmp_$i" "$i"; done
Upgrade python packages using pip
0) install jq 1) backup current versions 2) Update pip list --outdated --format=json | jq -r '.[].name' | xargs -n1 pip install -U
Setup postgresql
CREATE DATABASE myprojectdb;CREATE USER myprojectuser WITH PASSWORD 'strongpassword';ALTER ROLE myprojectuser SET client_encoding TO 'UTF8';ALTER ROLE myprojectuser SET default_transaction_isolation TO 'read committed';ALTER ROLE myprojectuser SET timezone TO ...
vdo.ninja + OBS tutorial
Step-by-Step: vdo.ninja + OBS for Separate Tracks Host creates a vdo.ninja room Go to https://vdo.ninja Click Create a Room → Name it (e.g., MyPodcastRoom) You’ll get: Director Link (for you to control guests) Guest Invite Link (to ...
.htaccess for HTTP redirect to HTTPS
# .htaccess in your webrootRewriteEngine On # If not already HTTPS…RewriteCond %{HTTPS} !=on # …and not marked HTTPS by a proxy/load balancerRewriteCond %{HTTP:X-Forwarded-Proto} !https [OR]RewriteCond %{HTTP:Forwarded} !proto=https # Redirect to same host+...
Pre - recording checklist
Pre vdo.ninja session checklist: a "general rehearsal" is a must - a 10 - 15 minute session with all the speakers on the exact same computers and connections they'll be using in the talk check bandwidth with each guest with cloudflare it has a comprehensiv...
Setup DHCP for guests on proxmox host
apt install dnsmasq/etc/dnsmasq.d/vmbr0.conf interface=vmbr0 dhcp-range=10.10.10.50,10.10.10.200,12h dhcp-option=3,10.10.10.1 dhcp-option=6,9.9.9.9,149.112.112.112 /etc/network/interfaces auto vmbr0 iface vmbr0 inet static address 10.10.10.1/24 ...
Proxmox via tailscale only
/etc/default/pveproxy LISTEN_IP="$TailscaleIP"
Passwordless sudo
# visudo ALL=(ALL) NOPASSWD:ALL
Wordpress custom styles
Block Name Block Type Supports register_block_style()? Notes / Quirks core/paragraph Text ✅ Yes Works normally core/heading Text ✅ Yes All heading levels core/list Text ✅ Yes core/quote Text ✅ Yes core/pull...
Tunneling over ssh to other computers on the lan
ssh -J $USER@$DOMAIN1 -i ~/.ssh/private_key1 $USER2@$IP -i ~/.ssh/private_key2
Notes
https://warpgate.null.page/
Sharing public keys
To be able to login into our shared server, you need to share your PUBLIC key publicly - which is paired with your PRIVATE key saved locally on your computer (which you never share with anyone, and can be additionally password-protected). Your PUBLIC key can...