Tag Archives: bash

bash history-fu

I came across a new blog (seems to have come on-line in March) http://www.epoxyjournal.com. One of the entries was about how to clear com­mand his­tory. Every­one has inad­ver­tently pasted or typed some­thing into the wrong shell. Some­times its worth­while to clean up after your­self and some­times its not. I fig­ured I would offer a sug­ges­tion

Convert maildir to mbox

Note, there is a short story before the main course. I recently had a cus­tomer leave. It’s never good to lose a cus­tomer. They left not because of any ser­vice issues but because its hard for them to under­stand that I am not a web designer. I pro­vided host­ing ser­vice for them, and I tried

Notify someone with hook when you update a git working copy

Some projects have pro­duc­tion code that runs off of a git cloned repos­i­tory. There may be a case in which you want to notify oth­ers when that clone pulls. It is a pretty easy feat with gits post-merge hook. The post-merge hook will run after a merge (think git pull). All you have to do

Benchmark hard drive performance in Linux

Bon­nie is a great tool to use to bench­mark your file sys­tem. Just a quick tip on using bonnie.

Match string and print preceding line

Text pro­cess­ing is fun. Well, fun if you like to beat your head against a wall. Most of the time I just string a few things together to get what­ever I am doing done. Its much bet­ter to find the short­est way to do some­thing, it spawns less processes, is more effi­cient and gen­er­ally a