This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Given a grep expression, create a graph of occurrences of that expression | |
# in your code's history. | |
set -e | |
expr="$1" | |
datafile=$(mktemp) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# posted partly as an aide-memoire, but more usefully, as a prompt | |
# for me to make this into a proper stop-start daemon | |
# hopefully, one that won't have hardcoded machine names... | |
IPADDR=`ifconfig en0 | grep 'inet ' | awk '{print $2}' | sed 's/addr://'` | |
ssh house.husk.org -N -f -L *:3698:foil:3689 | |
dns-sd -P "foil" _daap._tcp. local 3698 foil.local. $IPADDR txtvers=1 "Database ID=BC2C8AD5" "Machine ID=BC2C8AD5" & |