Skip to content

Instantly share code, notes, and snippets.

View sgarwood's full-sized avatar

Seb Garwood sgarwood

View GitHub Profile
@mikerr
mikerr / 03-tftpboot.conf
Last active September 30, 2020 22:42
Add network boot (TFTP) to pihole (dnmasq)
# /etc/dnsmasq.d/03-tftpboot.conf
enable-tftp
tftp-root=/tftpboot
pxe-service=0,"Raspberry Pi Boot"
@DarrenN
DarrenN / get-npm-package-version
Last active June 20, 2025 19:20 — forked from yvele/get-npm-package-version.sh
Extract version from package.json (NPM) using bash / shell
# Version key/value should be on his own line
PACKAGE_VERSION=$(cat package.json \
| grep version \
| head -1 \
| awk -F: '{ print $2 }' \
| sed 's/[",]//g')
echo $PACKAGE_VERSION
@oscar6echo
oscar6echo / README.md
Last active June 13, 2022 19:20
Interactive map of the 16 federal states of Germany