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
ssh family_computer | |
sudo su | |
su wife -c "osascript -e 'tell application \"iTunes\"' -e 'set the sound volume to 0' -e 'pause' -e 'end tell'" | |
afplay path/to/tom_waits.mp3 | |
su wife -c "osascript -e 'tell application \"iTunes\"' -e 'set the sound volume to 100' -e 'play' -e 'end tell'" | |
exit | |
exit |
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
require 'date' | |
d1 = Date.parse('Apr 1, 2011') | |
d2 = Date.parse('Feb 1, 2011') | |
if d2 > d1 | |
p "#{d2} comes before #{d1}" | |
elsif d1 > d2 | |
p "#{d1} comes before #{d2}" | |
else |
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
$ nodester app create synynyms | |
nodester info creating app: synynyms server.js | |
nodester info successfully created app synynyms to will run on port 12398 from server.js | |
nodester info run nodester app init synynyms to setup this app. | |
$ | |
$ | |
$ nodester app info synynyms | |
nodester info Gathering information about: synynyms | |
nodester warn synynyms on port 12398 running: false (pid: unknown) | |
nodester info gitrepo: git@nodester.com:/node/git/rschenk/4245-08cf4fe1d8242013d68cca50d4f02eb5.git |
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
# Bedazzle terminal with Git branch information | |
NO_COLOR="\[\033[0m\]" | |
BLACK="\[\033[0;30m\]" | |
RED="\[\033[0;31m\]" | |
GREEN="\[\033[0;32m\]" | |
YELLOW="\[\033[0;33m\]" | |
BLUE="\[\033[0;34m\]" | |
PURPLE="\[\033[0;35m\]" | |
CYAN="\[\033[0;36m\]" | |
GRAY="\[\033[0;90m\]" |
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
= javascript_include_tag "https://ajax.googleapis.com/ajax/libs/jquery/1.6.2/jquery.min.js" | |
-# Local fallback for if/when Google decides to stop hosting jQuery | |
:javascript | |
!window.jQuery && document.write(unescape(#{URI::escape javascript_include_tag("jquery.1.6.2.min.js")})); |
NewerOlder