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 python | |
import ruya, logging | |
def aftercrawl(caller, eventargs): | |
page = eventargs.document | |
print 'Url: ' + page.uri.url | |
print 'Title: ' + page.title | |
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
# TODO: may want to use core.autocrlf but not sure | |
git commit --no-verify -m "Updated to work at work." #override git's whitespace finickiness |
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
# updates submodules, obviously | |
git submodule update |
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
find applescript-loader-and-module-library -iname *.applescript -exec ~/bin/flip -u '{}' \; |
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
var range = window.getSelection().getRangeAt(0); | |
var offset = range.startOffset; | |
var container = range.commonAncestorContainer; | |
var containerText = container.nodeValue; |
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
# switch to remote | |
git checkout origin/master | |
# switch back | |
git checkout master |
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
bash-3.2$ wget -m -k -K -E http://url/of/web/site |
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
wget -m -k -K -E -nv -R jpg,gif,js,css |
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
ini_set("display_errors","2"); | |
ERROR_REPORTING(E_ALL); |
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
root = "/a/b/c/d/" | |
def removeroot(path): | |
return path.replace(root, "") | |
from BeautifulSoup import BeautifulSoup | |
pathtohtml = "/Users/formido/tmp/vallejo.html" | |
import os |
OlderNewer