Skip to content

Instantly share code, notes, and snippets.

View taikedz's full-sized avatar

Tai Kedzierski taikedz

View GitHub Profile
@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
@taikedz
taikedz / Readme.md
Last active April 30, 2026 08:31
Example git backdoor

An innocuous example of a significant git backdoor.

Expanding the Base64 encoded tarball payload will result in a minimal example git repository.

base64 -di | tar xz

# (paste the base64 data, hit return, then press Ctrl+D)
# You will have a new repo folder called `ouchy`
@taikedz
taikedz / add-filename-number.py
Last active April 13, 2026 09:32
Add file number by creation date
#!/usr/bin/env python3
""" List files in order of time (see default for `ls -t`)
Add a numeric prefix to each file name.
If multiple folders are specified, the count restarts from one for each folder.
"""
import os
@taikedz
taikedz / list-zim.py
Created April 4, 2026 12:03
Show Wikipedia ZIMs
#!/usr/bin/env python3
import os
import re
import argparse
def download():
os.system("wget https://dumps.wikimedia.org/kiwix/zim/wikipedia/ -O zim.html")
@taikedz
taikedz / README.md
Last active April 30, 2026 09:12
Find out NIC details

Read 'ip a' and show NIC details

Utility to read the output of ip a and print most pertinent details

Allows filtering on inet/inet6 scope values

By default, prints summarised information from the NIC entries

$> python3 read_ipa/read-ipa.py 
@taikedz
taikedz / 0-readme.md
Last active January 8, 2026 15:34
Create new files

Create new things

Quick scriptlets to create new little assets for various scripting and experimentation

@taikedz
taikedz / README.md
Created January 8, 2026 12:33
Directory walking notes

Directory walk

Piecing together some basic directory walking techniques in Go (golang)

Python's method gives some level of completeness, Go's simpler setup means reaching for other libraries to do path operations.

Not hard, just needed to figure that out...

@taikedz
taikedz / sum.py
Last active December 3, 2025 12:12
Sum of `du -sh` sizes
"""
du -sh * | python3 sum.py
"""
import sys
import re
numpat = re.compile("(^[0-9.]+)([a-zA-Z]*)")
total = 0.0
@taikedz
taikedz / README.md
Last active September 25, 2025 05:07
d[N] dice chances

dN range roller

Quick script to see, when rolling a dice set complement of d6, d8, d10, d12, d20 , which are the most frequent numbers to appear.

Use this to determine how to subdivide your Foe Pool

See also fate chances

Then, aggregating those percentage point chances, what likelihood a given range would be hit.

@taikedz
taikedz / README.md
Created February 19, 2025 14:55
Install linuxbrew

Install Linuxbrew

Very basic linuxbrew installer for general use-case

I've done this in a podman container as root with success; should work in a native environment

Not tried yet in regular user/sudo mode.