Skip to content

Instantly share code, notes, and snippets.

user nginx;
worker_processes 5;
error_log /var/log/nginx.error.log;
pid /var/run/nginx.pid;
events {
worker_connections 1024;
}
TextMate
--------
Default File Pattern:
---------------------
!(/\.(?!htaccess)[^/]*|\.(tmproj|o|pyc)|/Icon\r|/svn-commit(\.[2-9])?\.tmp)$
Default Folder Pattern:
-----------------------
!.*/(\.[^/]*|CVS|_darcs|_MTN|\{arch\}|blib|.*~\.nib|.*\.(framework|app|pbproj|pbxproj|xcode(proj)?|bundle))$
#!/bin/bash
#
# The Bash shell script executes a command with a time-out.
# Upon time-out expiration SIGTERM (15) is sent to the process. If the signal
# is blocked, then the subsequent SIGKILL (9) terminates it.
#
# Based on the Bash documentation example.
# Dmitry V Golovashkin <[email protected]>
scriptName="${0##*/}"
@virgild
virgild / psgrep
Created January 25, 2011 02:42
useful psgrep
alias psgrep='ps aux | grep $(echo $1 | sed "s/^\(.\)/[\1]/g")'
#!/bin/bash
function parse_git_branch {
ref=$(git symbolic-ref HEAD 2> /dev/null) || return
echo "("${ref#refs/heads/}")"
}
# Color codes
RED='\[\033[01;31m\]'
GREEN='\[\033[01;32m\]'
@virgild
virgild / git show changed files
Created March 1, 2011 19:14
git list files that have changed since a commit
git diff SHA1...SHA2 --name-only
group :dev do
gem 'ruby-debug19', :require => 'ruby-debug'
gem 'merb-colorful-logger'
end
# Ruby debugger connection:
# Just '$ touch tmp/debug.txt' and '$ rdebug -c' to connect
if File.exists?(File.join(Merb.root, "tmp", "debug.txt"))
require 'ruby-debug'
Debugger.wait_connection = true
Debugger.start_remote
File.delete(File.join(Merb.root, "tmp", "debug.txt"))
end
{
{I have|I've} been {surfing|browsing} online more than {three|3|2|4} hours today, yet I never found any interesting article like yours. {It's|It
is} pretty worth enough for me. {In my opinion|Personally|In my view}, if all {webmasters|site owners|website owners|web owners} and bloggers made good content as
you did, the {internet|net|web} will be {much more|a lot more}
useful than ever before.|
I {couldn't|could not} {resist|refrain from} commenting. {Very well|Perfectly|Well|Exceptionally well} written!|
{I will|I'll} {right away|immediately} {take hold of|grab|clutch|grasp|seize|snatch}
your {rss|rss feed} as I {can not|can't} {in finding|find|to find} your {email|e-mail} subscription {link|hyperlink} or {newsletter|e-newsletter} service. Do {you have|you've} any?
{Please|Kindly} {allow|permit|let} me {realize|recognize|understand|recognise|know} {so that|in order that} I {may just|may|could} subscribe.
Thanks.|
Pragma: akamai-x-cache-on, akamai-x-cache-remote-on, akamai-x-check-cacheable, akamai-x-get-cache-key, akamai-x-get-extracted-values, akamai-x-get-nonces, akamai-x-get-ssl-client-session-id, akamai-x-get-true-cache-key, akamai-x-serial-no