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 Stack Exchange search box grower 1.0 | |
// @namespace stackoverflow | |
// @description Make Stack Exchange search box grow incrementally | |
// @include http://stackoverflow.com/* | |
// @include http://*.stackoverflow.com/* | |
// @include http://*.stackexchange.com/* | |
// @include http://serverfault.com/* | |
// @include http://superuser.com/* | |
// @include http://stackapps.com/* |
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
echo '/usr/local/lib/python2.6/site-packages/' | sudo tee /Library/Python/2.6/site-packages/homebrew.pth |
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
# Repository developers | |
cd /path/to/somewhere | |
git clone https://github.com/kergoth/git-hooks | |
export PATH=/path/to/somewhere/git-hooks:$PATH | |
cd /path/to/project | |
git hooks --install |
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
diff --git a/buildlibxml.py b/buildlibxml.py | |
index bfcf3e4..7bf36e5 100644 | |
--- a/buildlibxml.py | |
+++ b/buildlibxml.py | |
@@ -284,8 +284,11 @@ def build_libxml2xslt(download_dir, build_dir, | |
}) | |
else: | |
env.update({ | |
- 'CFLAGS' : "-arch ppc -arch i386 -arch x86_64 -O2", | |
- 'LDFLAGS' : "-arch ppc -arch i386 -arch x86_64", |
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
SELECT LENGTH(REPLACE(BIN(7), '0', '')); |
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
;(global-set-key "\C-h" 'backward-delete-char) | |
; | |
;(global-font-lock-mode t) | |
;(setq transient-mark-mode t) | |
;(set-face-background 'region "indianred") | |
;(tool-bar-mode 0) | |
;(show-paren-mode t) | |
;(setq w3m-home-page "http://www.google.com") |
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 | |
for f in $@ | |
do | |
ctime=`stat -f "%SB" -t "%Y:%m:%d %H:%M:%S" "$f"` | |
exiv2 -k -M"set Exif.Image.DateTime Ascii $ctime" "$f" | |
done |
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
(println (seq (.getURLs (java.lang.ClassLoader/getSystemClassLoader)))) |
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
import traceback, StringIO | |
fp = StringIO.StringIO() | |
traceback.print_exc(file=fp) | |
print fp.getvalue() |
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
<html> | |
<head> | |
<meta id="viewport" name="viewport" content="width=320, height=500" /> | |
</head> | |
<body> | |
<div>Here comes an iframe.</div> | |
<iframe src="../336c3060c233f1662ad7461e0f0514543bc79093/included.html"> | |
</iframe> | |
<div>End of iframe.</div> | |
</body> |