stupid stuff I always forget
Brain Dump
2011-05-31
Reduce your HDD spindown time for silent SSD computing
›
If you've got an SSD+HDD/optibay setup in your macbook, you probably find that the thing is damn near silent when the spinning rust goes...
2010-03-02
More vim tidbits
›
it's been a while since I put anything new up, but I have a bunch of post-it notes stuck to my monitor that I'd be mighty peeved if ...
2009-12-11
Page caching per request domain with Rails and nginx
›
At work we run a number of different sites of the same codebase, serving content based on the request's domain. we recently found some p...
2009-08-05
dynamically defined methods in ruby
›
I've been playing around with dynamically creating methods today and it's mighty cool stuff. here's a very contrived demo class:...
2009-07-28
Negative Lookbehind in vim
›
very similar to the last post, but this time for _not_ matching text that is preceded with some other text, and this time using the vim rege...
11 comments:
2009-07-26
Regular Expressions - Negative Lookahead
›
/a(?!b)/ will match an a that's not followed by a b (with the not-b character not being included in the match) this can be built upon t...
1 comment:
2009-04-02
Xcode keyboard shortcuts W.I.P
›
Xcode's automatic completion is called codesense, which helps when you're searching for information about it. pressing ESC will brin...
2009-04-01
Happy Birthday GMail
›
It's been 5 years since webmail changed. It's 5 years to the day since the introduction of GMail. I remember the announcement, I tho...
1 comment:
2009-03-26
Objective C W.I.P
›
The @ symbol (or at symbol) anything preceeded with an @ is a compiler directive. keywords have specific meanings too numerous to list . @...
8 comments:
2009-03-21
Basic Non-destructive Backup with rsync (good for music & photos)
›
#!/bin/bash EMAIL="me@myemailhost.com" HOSTNAME="fileserver" LOCAL_PATH="/mnt/data/photos/" REMOTE_PATH="...
find and execute
›
find -name "*.rar" -exec unrar e {} \; recursively searches for rar files, extracts the contents of each. matching filenames are ...
.bash_profile
›
export EDITIOR=vim sets vim to be the default editor. it's probably not kosher to leave off the path, but it varies a lot between system...
1 comment:
.inputrc
›
ok, this one is super short set completion-ignore-case On makes bash tab completion ignore case for file and directory names
VIM
›
commands :%s/find/replace/g finds and replaces all instances in file :%s/find/replace/gi finds and replaces all instances in file (ignore ca...
Blog purpose
›
If you're reading this, you're probably a bot, or wondering what the hell this random collection of unrelated crap is for. basically...
Home
View web version