csplit command

Let’s say you have a single file (a mysql dump) containing the output of multiple database backups… and you want to split them out into individual files. Input fil: # MySQL dump 7.1 # # Host: localhost Database: Purchase_Tracking # … Lots of CREATE TABLE and INSERTS … # MySQL dump 7.1 # # Host: localhost Database: Test # … Lots of CREATE TABLE…

Using rarcrack on Ubuntu

Rarcrack is an open source rar file password cracker.  Use it when you’ve forgotten the password you put on a rar or zip file.  The current version (0.2) doesn’t work flawlessly on Ubuntu, so follow these steps. 1. Download the source: wget http://downloads.sourceforge.net/project/rarcrack/rarcrack-0.2/%5BUnnamed%20release%5D/rarcrack-0.2.tar.bz2 2. Un tar tar -xjf rarcrack-0.2.tar.bz2 3. Change directory cd rarcrack-0.2 4. Type make, hit enter.  You will likely receive an…

BASH script to remove numeric prefix from files downloaded from scribd

Scribd is a great service, offering PDF downloads of a variety of content.  Unfortunately there is an ugly 8 digit (random?) number prefixed on each file downloaded. 47432750-Book-Name-Whatever.pdf 47501680-Another-Book-Name.pdf 47502885-Yet-Another-Book-Name.pdf It’s not descriptive, and it makes alphabetic sorting of the files downloaded impossible.  Here’s a small BASH shell script that will remove the first 9 characters (8 digits and the – character) from all…

Combine multiple PDFs into a single file on Linux

One of the great features of the iPhone is the ability to load PDF files into the iBooks application… why lug paper around when you can have a huge amount of reading material right on your phone? One of the challenges of this is that many freely available materials come as 1 chapter per PDF file: Linux Device Drivers is just one example.  The…

Installing Java Runtime Engine on Turnkey LAMP Appliance

Turnkey Linux offers a LAMP (Linux Apache MySQL PHP) appliance – an ISO or VM to install or create a pre-configured Linux based web server.  The install is very streamlined offering minimal bloat, as well as many other advantages: pre-installed and configured applications, text GUI configuration on initial boot, configured for automatic updates, based on a Long Term Support (LTS) version of Ubuntu.  However,…

Using git with Xcode

About git Git is a distributed version control system that is easy to use and free.  I will describe the use of git with Xcode on Mac OS X for iPhone development.  Because git is distributed, each client has a full copy of the repository.  This results in great performance in most situations involving the management of source code files. Installation A disk image…