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 a user's twitter stream using cowsay. | |
# | |
# Usage: | |
# | |
# % twittercowsay <user> | |
# | |
# http://jeffpalm.com/twitterer | |
# |
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
/* | |
* Bookmarklet to favorite tweets on a page with a frequency of 5 seconds. | |
* | |
* Usage | |
* ===== | |
* Copy the link "Favorite tweets" from http://jsfiddle.net/bfCnZ/1/ to your | |
* toolbar and this will favorite items at a frequency of 5 seconds. | |
*/ | |
(function() { |
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
========================================== ========================================== | |
TMUX COMMAND WINDOW (TAB) | |
========================================== ========================================== | |
List tmux ls List ^b w | |
New -s <session> Create ^b c | |
Attach att -t <session> Rename ^b , <name> | |
Rename rename-session -t <old> <new> Last ^b l (lower-L) | |
Kill kill-session -t <session> Close ^b & |
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
(function() { | |
/* | |
* Bookmarklet to view reddit with a sidebar and send the images to a chrome | |
* cast. To use: | |
* | |
* 1. Go to http://reddit.com/r/pics | |
* 2. Start casting | |
* 3. Click the link in http://jsfiddle.net/erkdp48b/ | |
* | |
* When you click links on the left, the images will be sent to your |
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> |
OlderNewer