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
Show hidden characters
{ | |
"terminal": "C:/Program Files/Console2/Console.exe", | |
// In Console2 "Shell" section, have just "bash" with no args in a profile called "Terminal" | |
"parameters": ["-t", "Terminal", "-r", "/bin/xhere /bin/bash.exe", "`%CWD%`"] | |
} |
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
{ | |
"terminal": "C:/cygwin/bin/mintty.exe", | |
"parameters": ["/bin/env", "CHERE_INVOKING=1", "/bin/xhere", "/bin/bash", "`%CWD%`"] | |
} |
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
$(".binsold").each(function () {$(this).closest("td").css("backgroundColor","red")}); | |
$(".bidsold").each(function () {$(this).closest("td").css("backgroundColor","green")}); |
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
//http://pitchfork.com/festivals/chicago/2012/ | |
$(".appearance a").map(function () { return $(this).html().split("<")[0].trim() }) |
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
#!/usr/bin/env ruby | |
class String | |
def -(other) | |
self.index(other) == 0 ? self[other.size..self.size] : nil | |
end | |
end | |
if ARGV.length < 2 | |
puts |
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
SSH_ENV="$HOME/.ssh/environment" | |
# start the ssh-agent | |
function start_agent { | |
echo "Initializing new SSH agent..." | |
# spawn ssh-agent | |
ssh-agent | sed 's/^echo/#echo/' > "$SSH_ENV" | |
echo succeeded | |
chmod 600 "$SSH_ENV" | |
. "$SSH_ENV" > /dev/null |
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
match = 'nowplaying' | |
ngrep_command = "ngrep -W byline '#{match}' port 5353" | |
puts "Watching network for iTunes mDNS #nowplaying announces..." | |
IO.popen(ngrep_command).each do |line| | |
if line.match(/\##{match}/) | |
pattern = /nowplaying-title=(?<title>[\w ]+).+nowplaying-artist=(?<artist>[\w ]+).+nowplaying-album=(?<album>[\w ]+)/ |
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
require 'cgi' | |
match = 'track.updateNowPlaying' | |
ngrep_command = "ngrep -W byline '#{match}'" | |
puts "Watching network for iTunes Store now playing previews..." | |
IO.popen(ngrep_command).each do |line| | |
if line.match(/\=#{match}/) |
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
var dupeIds = [], dupeIdsString; | |
$('[id]').each(function(){ | |
var ids = $('[id="' + this.id + '"]'); | |
if (ids.length > 1 && ids[0] == this) { | |
dupeIds.push(this.id); | |
} | |
}); | |
dupeIdsString = dupeIds.concat(", "); |
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
#setting the stage... creating 3 separate repos | |
mkdir animals; cd animals/; echo "Animals" > README; git init; git add .; git commit -m "Animals readme"; cd .. | |
mkdir dogs; cd dogs/; echo "Dogs" > README; git init; git add .; git commit -m "Dogs readme"; cd .. | |
mkdir cats; cd cats/; echo "Cats" > README; git init; git add .; git commit -m "Cats readme"; cd .. | |
#putting stuff in boxes for the move... | |
cd cats; mkdir cats #making /cats inside of cats, because in /animals we want /cats to be a subdir | |
git mv README cats #this line needs to me more appropriate to the contents of your actual child repo | |
git commit -m "Prepare cats for merge into animals"; cd .. |