Skip to content

Instantly share code, notes, and snippets.

View ruxkor's full-sized avatar

Andor Goetzendorff ruxkor

View GitHub Profile
@ruxkor
ruxkor / mount-ecryptfs-dir.sh
Created February 6, 2012 12:03
mount ecryptfs home directory
#!/bin/bash
# ecryptFS mount script
# taken and slightly modified version
# original at http://superuser.com/questions/227713/ecryptfs-how-to-mount-a-backup-of-an-encrypted-home-dir
# ROOT should be the parent of the .ecryptfs and .Private folders
if [ ! -d "$1" -o "$2" == "" ]; then
echo "usage: $0 /home/.ecryptfs/USER /mnt/USER"
exit 1
@ruxkor
ruxkor / git-relevant-files.py
Created February 1, 2012 01:06
get the most changed files of a git repository by analyzing its log
#!/usr/bin/env python
# Usage:
# pipe, or pass as a file something identical to the
# following command:
#
# git log --pretty="format:COMMIT %h %at %f" --numstat
#
#
#