Skip to content

Instantly share code, notes, and snippets.

View nedix's full-sized avatar
🍀

Hans van der Woude nedix

🍀
View GitHub Profile
@nedix
nedix / apt_firefox_install.sh
Last active December 31, 2023 18:18
Aptitude firefox snapshot install
#!/usr/bin/env sh
FIREFOX_VERSION=117.0.1-1
test -n "$ARCHITECTURE" || case $(uname -m) in \
amd64|x86_64) ARCHITECTURE=amd64; ;; \
arm64|aarch64|armv8b|armv8l) ARCHITECTURE=arm64; ;; \
*) echo "Unsupported architecture, exiting..."; exit 1; ;; \
esac \
&& echo "deb http://deb.debian.org/debian stable main" > /etc/apt/sources.list \
@nedix
nedix / kubectl_neat_directory.sh
Last active September 7, 2023 19:09
Kubernetes neat on all files in the current directory
#!/usr/bin/env bash
find . -type f -print0 | xargs -0 -I {} sh -c 'OUTPUT=$(kubectl neat -f {}); echo "$OUTPUT" > {}'