backreferences textmate
Don't escape group delimiters (regular round braces)
(/something)_else\n
$1_other
Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world (or not, you can keep them private!)
(/something)_else\n
$1_other
ls -R
ls -R | grep 'searchterm'
:%s'\(<stuff_to_find>\)'\1<new_stuff>'gc
ln -s /full/dir/path/to_files /full/dir/path/destination
update-rc.d updatedb_start stop 18 6 .
logger This is my message to syslog
:%s'replacethis'withthis'gc
git init git add . git commit -a git log (show previous commits and their unique ids) git status (show whats changed, and which files are new and untracked) git checkout [branch] (switch to [branch]) git checkout -b [new_branch_name] (creates branch and switches to it) git checkout -b [new_branch_name] [commit_id] (ditto, from particular commit) git pull . [branch] (merges [branch] into current branch) git reset --hard HEAD^ (undo last merge)
rails rproj cd rproj touch .gitignore touch log/.gitignore touch tmp/.gitignore vim .gitignore
log/*.log tmp/**/* Capfile doc/api doc/app
git init git add . git commit -a
git checkout -b hours
git add . git commit -a
git checkout master git pull . hours
git reset --hard HEAD^
git checkout hours [do some changes, no new files] git commit -a git checkout master git pull . hours
git branch -D hours
git log (copy the commit id for the first commit on master) git checkout -b more_features [commit_id]
git commit -a git checkout master git pull . more_features
select * into outfile '/tmp/outfile.txt' fields terminated by ',' from my_table_name;
gdb /usr/local/bin/ruby [PID]
ulimit -c 512