Skip to content

Instantly share code, notes, and snippets.

View rm's full-sized avatar
💭
👋

Roshan Mathews rm

💭
👋
View GitHub Profile
@rm
rm / purge.sh
Created February 18, 2014 07:03 — forked from adrienbrault/purge.sh
#!/bin/sh
# Credits to:
# - http://vstone.eu/reducing-vagrant-box-size/
# - https://github.com/mitchellh/vagrant/issues/343
aptitude -y purge ri
aptitude -y purge installation-report landscape-common wireless-tools wpasupplicant ubuntu-serverguide
aptitude -y purge python-dbus libnl1 python-smartpm python-twisted-core libiw30
aptitude -y purge python-twisted-bin libdbus-glib-1-2 python-pexpect python-pycurl python-serial python-gobject python-pam python-openssl libffi5
@rm
rm / colloquy-transform
Last active January 4, 2016 02:59
Convert colloquy transcripts to HTML. You might need to change the variables RESOURCE_DIR, XSLT_FILE and CSS_FILE. I save the file as colloquy-transform in ~/bin/ and chmod 0755 it.
#!/usr/bin/env python
# -*- mode: python; backup-inhibited: t -*-
import glob
import os
import re
import subprocess
import sys
RESOURCE_DIR = ('/Users/roshan/Library/Application Support/Colloquy/'
@rm
rm / show-ip-before-login.sh
Created September 25, 2012 06:03
Set up VM to show IP address before login.
#!/bin/sh
# based on http://offbytwo.com/2008/05/09/show-ip-address-of-vm-as-console-pre-login-message.html
# need to be root to write out these files
if [ `id -u` != 0 ]; then
echo "Need to run as root. Maybe use sudo..."
exit
fi
GET_IP_ADDRESS='/usr/local/bin/get-ip-address'
@rm
rm / gist:2844454
Created May 31, 2012 16:10
Emacs - regexp sort

Region is:

Rajendra Prasad
Sarvepalli Radhakrishnan
Zakir Hussain
Varahagiri Venkata Giri
Fakhruddin Ali Ahmed
Neelam Sanjiva Reddy
Giani Zail Singh

Ramaswamy Venkataraman