Skip to content

Instantly share code, notes, and snippets.

View seb26's full-sized avatar
🏠

Sebastian Reategui seb26

🏠
  • Sydney, Australia
View GitHub Profile
# This documents how you would take a Debian 12 cloud image and make a Proxmox template out of it.
# This script isn't really meant to be executed, but more as a reference and copy/paste for each step.
# Enjoy!
# Download the image
mkdir -p ~/debian-bookworm-build/original && cd ~/debian-bookworm-build/original
wget 'https://cloud.debian.org/images/cloud/bookworm/20240717-1811/debian-12-genericcloud-amd64-20240717-1811.qcow2'
cd ..
@RikshaDriver
RikshaDriver / 0-postgres-qnap-install.md
Last active January 26, 2025 17:22
Installing PostgreSQL 13 on QNAP for Davinci Resolve

Installing PostgreSQL 13 on QNAP for Davinci Resolve

This guide aims to provide an updated overview on installing PostgreSQL 13 within a QNAP NAS for use as a database inside Davinci Resolve.

The previous guide(s) created by QNAP are somewhat irrelevant as Davinci Resolve, Container Station and QTS/QuTS have since undergone major upgrades.

These original guides are linked below for reference:

https://www.qnap.com/en/how-to/tutorial/article/how-can-i-migrate-my-davinci-resolve-studio-database-to-a-newer-version-of-qts

@johndturn
johndturn / launchd-for-services.md
Last active April 20, 2025 04:56
Overview of using launchd to set up services on a macOS machine.

launchd - Script Management in macOS

What is it?

  • Used on macOS for managing agents and daemons and can be used to run scripts at specified intervals
    • macOS's competitor to cron, along with other things
  • Runs Daemons and Agents

What is a Daemon?

@mergwyn
mergwyn / zfsbench
Last active March 13, 2025 08:36
ZFS benchmarking using fio
#!/usr/bin/env bash
set -o errexit
echo $(date):Random read
fio --filename=test --sync=1 --rw=randread --bs=4k --numjobs=1 \
--iodepth=4 --group_reporting --name=test --filesize=10G --runtime=300 && rm test
echo $(date):Random write
fio --filename=test --sync=1 --rw=randwrite --bs=4k --numjobs=1 \
@loganvolkers
loganvolkers / Byte Formatting for Google Sheets.md
Last active April 19, 2025 05:21
Byte formatting for Google Sheets
@dews
dews / Limit mac bandwidth.md
Last active February 14, 2025 18:43
Limit mac bandwidth

Mac limit bandwidth

Enable firewall

Apple menu -> System Preferences -> Security & Privacy -> Firewall

sudo pfctl -e

Example

sudo dnctl pipe 1 config bw 10Kbit/s

@jwalanta
jwalanta / OpenWrt detect new device and send text message.md
Last active March 31, 2025 18:22
Detect new network devices connecting to OpenWrt and send text message
@MohamedAlaa
MohamedAlaa / tmux-cheatsheet.markdown
Last active April 19, 2025 12:44
tmux shortcuts & cheatsheet

tmux shortcuts & cheatsheet

start new:

tmux

start new with session name:

tmux new -s myname
@nrk
nrk / command.txt
Created April 2, 2012 19:19
Using ffprobe to get info from a file in a nice JSON format
ffprobe -v quiet -print_format json -show_format -show_streams "lolwut.mp4" > "lolwut.mp4.json"