Subscribe

Welcome to my corner of the internet.

Here, you will find information, snippets, tips and tricks for Ruby, Rails, Objective-C, etc, as well as discover my attempts at artistic stuff like design and writing. If you're lucky, you might even find Enlightenment.

Most recent post

Purging a user on Ubuntu/Debian

I wrote a bash script that, given a user, finds all instances of his/her public keys, deletes them, then deletes the user. It’ not perfect and it’s my first bash script that actually uses control structures.

To use it, run this:

bash -c "`curl -L http://gist.github.com/raw/282619/cafe0b353672a4de292586951f88ab82d0b50a1c/purge_user.sh`"

View the source on Gist