Skip to content

Instantly share code, notes, and snippets.

@jim-p
jim-p / pkg-option-diff.sh
Created December 3, 2023 20:07
Script to check options for software compiled from ports for changed/non-standard options
#!/bin/sh
for p in $(pkg upgrade -n | grep 'options changed' | awk '{print $1}'); do
pkg_name=$(pkg query %n ${p})
echo ${pkg_name}
pkg query "%Ok %Ov" ${pkg_name} | while read lkey lval; do
pkg rquery -U "%Ok %Ov" ${pkg_name} | while read rkey rval; do
if [ "${lkey}" = "${rkey}" -a "${lval}" != "${rval}" ]; then
echo -e "\t${lkey}\t${lval}\t${rval}\n"
@jim-p
jim-p / byzanz-record-window.sh
Created September 2, 2015 16:02
byzanz-record-window.sh
#!/bin/bash
# Directory to output the videos
DESTDIR=~/Videos/
# Delay before starting
DELAY=10
# Sound notification to let one know when recording is about to start (and ends)
beep() {
@jim-p
jim-p / byzanz-record-region.sh
Last active September 2, 2015 15:59
Screen Record a Region to GIF with byzanz. Run, select rectangle, wait for beep and it will capture for 10sec then beep and save.
#!/bin/bash
# Directory to output the videos
DESTDIR=~/Videos/
# Delay before starting
DELAY=10
# Sound notification to let one know when recording is about to start (and ends)
beep() {
@jim-p
jim-p / keybase.md
Created June 5, 2014 18:28
keybase.md

Keybase proof

I hereby claim:

  • I am jim-p on github.
  • I am jimp (https://keybase.io/jimp) on keybase.
  • I have a public key whose fingerprint is 7653 2AC1 2E9F 551D BE84 0B06 574A 9C0D 74CC 1661

To claim this, I am signing this object: