Create tar archive of changed/added files in a git commit

The following command first gets the changed and added files of a git commit and then creates a tar archive of those changed files.

git show {{COMMIT_ID}} --name-status | grep -Ew '^M|A' | awk '{ print $2 }' | xargs tar czf usb-passthrough.tar.gz

Continue reading »

Full migration/clone of linux installation to a new system(Without reinstalling)

I'm switching to a new laptop, but don't want to have to install Archlinux again. So instead of re-installing I will try to copy all files and hope the system will work. In this blogpost I will describe the steps and issues I encountered while doing so.

Status: Succeeded!!!!

Summary …

Continue reading »

Importing a SQL dump in postgres

I always keep forgetting how to import a SQL dump into postgres and found it always hard to find the right documentation. So I thought lets share it:

psql -d dbname -U username -f dumpfile.sql

This should also work with files created by pgdump.

Continue reading »

Installing fastboot for Ubuntu (Linux)

mkdir ~/fastboot  
cd ~/fastboot  
chmod +x fastboot  
sudo ./fastboot --help


I tested the above with Ubuntu 11.10, but it should work on any ubuntu version I think.

Continue reading »

Ubuntu 11.10 error while loading shared libraries: cannot open shared object file: No such file or directory

A quick solution is to install the libssl 0.9.8 package with the Following command:
sudo apt-get install libssl0.9.8

Thanks to Rob who commented below and provided an answer on Stackoverflow

I just upgraded from ubuntu 11.04 to 11.10 with a fresh install, by keeping …

Continue reading »