This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# from kencochrane.net | |
emacs /opt/django/.bashrc | |
# | |
# User specific aliases and functions | |
has_virtualenv() { | |
if [ -e .venv ]; then | |
deactivate >/dev/null 2>&1 | |
source bin/activate | |
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!upstart | |
description "Accountable" | |
author "mattmcmanus" | |
start on (local-filesystems and net-device-up IFACE=eth0) | |
stop on shutdown | |
respawn | |
respawn limit 5 60 # give up restart after 5 respawns in 60 seconds |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Converts a list of files to mp3 format | |
# uses avconv, and requires ubuntu-restricted-extras package for the libmp3lame encoder. | |
# Example usage of this script: | |
# ./[scriptname] ./file_list.txt | |
# Notes on this script: | |
# - !!!IT DELETES THE INPUT FILE!!! (you can remove the line below in the do loop that rm's the input file) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Based on https://github.com/sass/libsass/wiki/Building-with-autotools | |
# Install dependencies | |
apt-get install automake libtool | |
# Fetch sources | |
git clone https://github.com/sass/libsass.git | |
git clone https://github.com/sass/sassc.git libsass/sassc | |
# Create configure script |