Skip to content

Instantly share code, notes, and snippets.

View taikedz's full-sized avatar

Tai Kedzierski taikedz

View GitHub Profile
@taikedz
taikedz / setup-jitsi-server.sh
Created November 13, 2026 10:36
Set up an internal Jitsi server with Docker
#!/usr/bin/env bash
#set -euo pipefail
# Set up an emergency Jitsi Meet server internally
# Following https://jitsi.github.io/handbook/docs/devops-guide/devops-guide-docker
if [[ "$(ls jitsi* stable* 2>/dev/null|wc -l)" != 0 ]]; then
echo "Setup is already done/partway done. Only run this script in an empty folder."
exit 1
@taikedz
taikedz / sum.py
Last active October 12, 2026 13:39
Calculate accurate sum of `dh -sh` outputs
#!/usr/bin/env python3
"""
deets() { sudo ls "$1"|sed -r "s|^|$1/|"| grep -vP '^/(proc|run|media|mnt)' | xargs sudo du -sh | python3 sum.py ; }
deets / # will show size on each subdir
"""
import sys
import re
@taikedz
taikedz / mindustry.sh
Last active September 11, 2026 08:40
Run Mindustry
#!/usr/bin/env bash
# Simple launcher script for Mindustry
# JDK path is as per Linux
set -euo pipefail
action="${1:-}"; shift || {
echo "specify 'setup', 'build', 'serve' or 'play'"
exit 1
@taikedz
taikedz / README.md
Last active September 10, 2026 10:27
tcp dump capture and show

tcpdump capture/show example

@taikedz
taikedz / install.ps1
Last active August 25, 2026 11:52
YT DLP for Windows
mkdir music-stash
cd music-stash
# Assumes you have python installed here
& 'C:\Program Files\Python314\python.exe' -m venv ytdl.venv
.\ytdl.venv\Scripts\activate.bat
& .\ytdl.venv\Scripts\python.exe -m pip install --upgrade pip
& .\ytdl.venv\Scripts\pip.exe install yt-dlp
# This requires admin access:
@taikedz
taikedz / install-docker.sh
Last active July 22, 2026 10:11
Install real docker
#!/usr/bin/env bash
set -euo pipefail
[[ "$UID" != 0 ]] || {
echo "Run as regular user with sudo privileges."
exit 1
}
# From https://docs.docker.com/engine/install/ubuntu/
@taikedz
taikedz / avg.py
Last active July 9, 2026 14:48
Detecting network flapping
import sys
import re
import argparse
def getargs():
par = argparse.ArgumentParser()
par.add_argument("--threshold", "-T", default=14, type=float)
par.add_argument("--window-size", "-W", default=10, type=int)
par.add_argument("--verbose", "-V", action="store_true")
return par.parse_args()
@taikedz
taikedz / set-static-nmcli.sh
Last active June 29, 2026 13:54
Set static IP on Ubuntu / via nmcli
sudo nmcli connection show "Wired connection 1" |grep IP4 |tee ip4-old.txt
sudo nmcli connection modify "Wired connection 1" ipv4.addresses 192.168.110.6/24
sudo nmcli connection modify "Wired connection 1" ipv4.gateway 192.168.110.1
sudo nmcli connection modify "Wired connection 1" ipv4.dns "192.168.110.10,192.168.110.11,1.1.1.1"
sudo nmcli connection up "Wired connection 1"
sudo nmcli connection show "Wired connection 1" |grep IP4 |tee ip4-new.txt
@taikedz
taikedz / packetcap.py
Last active June 22, 2026 08:25
Quick cheat for tcpdump cpature and view
"""
Quick cheat for tcpdump capture and view
packetcap.py capture [-I interface] [-P portslist] PCAPFILE
packetcap.py view [--no-resolve-names|-N] PCAPFILE
To just start capturing packets to a file, run
python3 packetcap.py capture my-packets.pcap
@taikedz
taikedz / README.md
Created April 30, 2026 16:02
Rudimentary ADO pipeline imports

Basic ADO pipline importing

Not covered: the ability to use extends

Given a sub_pipe.yml with

parameters:
  - name: warcry
 type: string