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
tell application "Adium" | |
get title of status of first account | |
end tell |
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
# Install Nginx with Passenger and HTTP Push module. | |
# Download Nginx: | |
cd ~/tmp | |
wget http://sysoev.ru/nginx/nginx-0.8.20.tar.gz | |
tar xvfz nginx-0.8.20.tar.gz | |
# Download Nginx HTTP Push Module |
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/lib/phusion_passenger/wsgi/request_handler.py b/lib/phusion_passenger/wsgi/request_handler.py | |
index b062807..da081bc 100755 | |
--- a/lib/phusion_passenger/wsgi/request_handler.py | |
+++ b/lib/phusion_passenger/wsgi/request_handler.py | |
@@ -130,8 +130,6 @@ class RequestHandler: | |
if 'HTTP_CONTENT_LENGTH' in env: | |
env['CONTENT_LENGTH'] = env.get('HTTP_CONTENT_LENGTH') | |
- if 'PATH_INFO' not in env: | |
- env['PATH_INFO'] = env.get('REQUEST_URI','/').split("?")[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
import java.io._ | |
val buf = new BufferedReader(new InputStreamReader(System.in)) | |
println("You have no mail") | |
while (true) { | |
print("$ ") | |
buf.readLine match { | |
case "uname" => println("Punix 1.0 (scala)") | |
case "halt" => exit(0) | |
case x => println("Command " + x + " not found.") |
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 os | |
for line in open("index.m3u"): | |
os.system("wget %s" % line) |
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
/* `HTML5 Reset | |
----------------------------------------------------------------------------------------------------*/ | |
a, | |
abbr, | |
address, | |
article, | |
aside, | |
audio, | |
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
[1, 2, 3, 4, 5].map {|i| i * 2 }.find_all {|i| i > 5 } | |
# I have started monkey-patching `alias_method :filter, :find_all` in Array. |
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" | |
"http://www.w3.org/TR/html4/strict.dtd"> | |
<html lang="en"> | |
<head> | |
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"> | |
<title>Login Generator</title> | |
</head> | |
<body> |
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
alias git-stats='git log --numstat | awk -f ~/Code/Support/applebin/git-author-commits.awk' |
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 | |
git --git-dir /home/burocratik/webapps/mrg/mrgsite/.git --work-tree /home/burocratik/webapps/mrg/mrgsite reset --hard | |
PATH=/home/burocratik/webapps/mrg/apache2/bin:$PATH | |
restart |