This file contains 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/sh | |
tshark=/Applications/Wireshark.app/Contents/Resources/bin/tshark | |
$tshark -i "en1" -x -f "ip src pandora.com" | awk -F" " '/^$/ {print} /^[0-9a-f]{4}/ {printf("%s",$2)}' | perl -n -e 'm/".name"\s*\:\s*"([^"]+)"/ && ($n=$1) || ($n=~s/\s+/%20/g) && print "http://www.rdio.com/#/search/$n/artists/\n"' |
This file contains 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
# | |
# Creates aliases for all your mac applications in $PATHS (defined | |
# below) without name clashes. e.g. 'preview' would open | |
# '/Applications/Preview.app'. To use, add this to your .bashrc. | |
# | |
# if [ -f ~/.applications.sh ]; then | |
# . ~/.applications.sh | |
# fi | |
# | |
PATHS="/Applications /Developer/Applications" |
This file contains 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
#!/usr/bin/env jruby | |
# | |
# Pops up a little alert window. | |
# | |
require 'java' | |
JFrame = javax.swing.JFrame | |
JPanel = javax.swing.JPanel | |
JLabel = javax.swing.JLabel |
This file contains 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
#!/usr/bin/env ruby | |
# -*- ruby -*- | |
# | |
# Repl for exploring git. More here: | |
# | |
# http://www.jeffpalm.com/blog/archives/002194.html | |
# | |
require 'rubygems' | |
require 'hubruby' |
This file contains 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/sh | |
# | |
# Removes the files that were extracted locally from a tar file. This | |
# can be used when a tarball doesn't contain a directory of files and | |
# extracts a bunch of files into the pwd. | |
# | |
# Example: | |
# | |
# % undotar file.tar | |
# % undotar file.tar.gz |
This file contains 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
<a href='javascript:(function() {function main() {var width=300;var as=document.getElementsByTagName("A");for (var i=0; i<as.length; i++) {var a=as[i];var src=a.href;var el=document.createElement("DIV");var img=document.createElement("IMG");img.src=src;img.setAttribute("src",src);img.width=width;img.setAttribute("width",width);el.appendChild(img);a.parentNode.appendChild(el);}}main();})();'>chrome history images</a> |
This file contains 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
// ==UserScript== | |
// @name Gmail Title | |
// @namespace http://jeffpalm.com/gmailtitle | |
// @description Makes the gmail title somewhat useful | |
// @include https://mail.google.com/mail/* | |
// ==/UserScript== | |
(function() { | |
var ignoreNextChange = false; |
This file contains 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
#!/usr/bin/env ruby | |
# | |
# Sends an email about alerts for NJ transit trains. | |
# | |
# Usage: | |
# | |
# njtransit email? city? | |
# | |
# Examples: | |
# |
This file contains 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/sh | |
# | |
# Prints out the targets available to make. | |
# | |
# Usage: maketargets file? | |
# | |
# On windows probably pipe into sort and uniq, e.g. | |
# | |
# maketargets | sort | uniq | |
# |
This file contains 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/sh | |
n=`which cowsay` && $n "`cat $n`" |
OlderNewer