Skip to content

Instantly share code, notes, and snippets.

View ccwoolf's full-sized avatar

Charlie Woolf ccwoolf

View GitHub Profile

Keybase proof

I hereby claim:

  • I am ccwoolf on github.
  • I am ccwoolf (https://keybase.io/ccwoolf) on keybase.
  • I have a public key ASDuOjE8eS9O7lqpCgHV0ChqesFPWJc3bGmJZVzzmlBMYwo

To claim this, I am signing this object:

@ccwoolf
ccwoolf / pcap-all-interfaces.sh
Last active March 15, 2021 11:14
Captures all packets (except port 22) on all interfaces for a given timeout
#!/usr/bin/env bash
if [ "$1" = "--help" ] || [ "$1" = "-h" ]; then
echo "Capture packets across all network interfaces for the given duration (default 1m)."
echo ""
echo "USAGE:"
echo " $0 [DURATION]"
echo ""
echo "Captured packets can be found in a tar.gz archive with a pcaps_ prefix, followed by the date and time of the capture."
echo "Specify the optional duration in timeout(1)'s duration syntax."
@ccwoolf
ccwoolf / pfsense_node_exporter.md
Last active May 29, 2024 17:03
Install node_exporter on PFSense and start on boot

Install Prometheus node_exporter on PFSense and start on boot

Install node_exporter

Check FreeBSD Ports for the latest version.

Log in via SSH or otherwise somehow execute the following command:

pkg install http://pkg.freebsd.org/FreeBSD:11:amd64/latest/All/node_exporter-0.18.1.txz
@ccwoolf
ccwoolf / compress.sh
Last active March 3, 2019 20:32
Compression scripts
#!/usr/bin/env bash
# Compresses all input files into a single archive
7za a -m0=lzma2 -ms=on -mfb=273 -md=1536m -mmt=on archive.7z *.ext
@ccwoolf
ccwoolf / obd_test.py
Last active August 29, 2015 14:16
Quick test script for determining OBD reader supported commands
# Usage: obd_test.py DEVICE
# Example: obd_test.py /dev/pts/4
# Prints supported OBD commands to the console, along with their current values.
import sys
import time
import obd
import json