Skip to content

Instantly share code, notes, and snippets.

View harridu's full-sized avatar

Harri harridu

  • 07:32 (UTC +01:00)
View GitHub Profile
@johnbianchi
johnbianchi / pfctl-cheatsheet.txt
Last active November 4, 2025 17:50
pfctl cheat sheet
#### General PFCTL Commands ####
$ pfctl -d disable # packet-filtering
$ pfctl -e enable # packet-filtering
$ pfctl -q # run quiet
$ pfctl -v -v # run even more verbose
#### Loading PF Rules ####
$ pfctl -f /etc/pf.conf # load /etc/pf.conf
$ pfctl -n -f /etc/pf.conf # parse /etc/pf.conf, but dont load it
$ pfctl -R -f /etc/pf.conf # load only the FILTER rules
$ pfctl -N -f /etc/pf.conf # load only the NAT rules
@olih
olih / jq-cheetsheet.md
Last active November 28, 2025 12:04
jq Cheet Sheet

Processing JSON using jq

jq is useful to slice, filter, map and transform structured json data.

Installing jq

On Mac OS

brew install jq