sed find and replace
Currently in the middle of a rails 3 upgrade. Here’s a quick one line fix with sed to replace all named_scope to scope due to deprecation
nginx rewrite rules for html extensions
I Just swtiched to jekyll running in nginx. It’s simple and lightning fast.
Restarting nginx
A quick how to on restarting nginx when init scripts or start scripts aren’t available. These aren’t added by default as far as I know.
rm: /PATH_TO_FILE not removed: Disc quota exceeded
This occurred whilst using Solaris on Joyent. Somewhat annoying when one can’t remove a file when Disc quota exceeded
!