Monthly Archives: March 2011
Date magic on the command line
Need a quick handy way to timestamp your files in a semi readable manner? No problem, here ya go #!/usr/bin/env bash cur_ts=$(date +%Y-%m-%d_%H%M%S) mv "$1" "$1.bak.$cur_ts"
Fun with find – power commands in bash for mere mortals
Table of Contents Actually Finding Stuff Doing Stuff With What You Find Command Glue Some Common Examples Many people bemoan the command line. Many people bemoan the GUI. I understand both sides and I say, right tool for the right … Continue reading
Awesome Sauce Bash Prompt Howto
Let’s get busy! Put the following lines in your ~/.bashrc or ~/.bash_profile and next time you open a terminal it should just work. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 black=$(tput -Txterm setaf … Continue reading
Setting up “no password” server access with SSH public keys
When logging in with SSH, normally you are asked for your password. This is insecure for a number of reasons that are explained in depth else where and that may bore you. There is another option for login that is … Continue reading
Setting up clean rooms for python with virtualenv
Virtualenv is a handy python utility that lets you run separate applications with their own versions of things. In other words you can run one project on Django 1.1 and another on Django 1.2. This means you can develop your … Continue reading
Getting common dev headers needed for compiling python packages and ruby gems
If you want to use python with web projects like Django then there are some common extras you’ll want like MySQL and PostgreSQL database support and image processing from the Python Image Library or PIL. You may commonly want XML, … Continue reading
