lamehacks

Stuff is fun

Posts Tagged ‘linux’

Archive your tomboy notes

Sunday, December 7th, 2008

Tomboy is my favorite note taking application. It’s as close as it can get to paper and an pencil. It’s a relatively new application so new features are still popping up here and there written by many different people. This lame script is my small contribution to this awesome piece of software. (more…)

Timestamped tarballs

Monday, November 3rd, 2008

There is a ton of version control software solutions out there. Personally I find them all overkill when it comes to provide version control to a project maintanined by one single person.
Simplicity is beautiful and efficient, for this purpose I can’t think of anything simpler than timestamped tarballs. Save this script, make it executable and place it somewhere where your environment can see it.

#!/bin/bash
#
# Author: Pedro
# Description: A quick timestamped.tar.gz archiver
# Date:19-09-2008
# License: I don't care.
# Check out http://lamehacks.net for more little tricks
#
if [[ "$1" = "" || "$1" = "--help" ]]; then
        echo "

        Usage: timestamptarball 

        "
        exit 1
fi

date "+%Y.%m.%d-%H.%m_" | xargs -I {} tar -cvvzf  {}`basename $1`.tar.gz  $1
. .

Entries (RSS) and Comments (RSS).