Skip to content

Instantly share code, notes, and snippets.

View YellowSharkMT's full-sized avatar

The Yellow Shark YellowSharkMT

View GitHub Profile
@edouard-lopez
edouard-lopez / libsass-install.bash
Last active October 17, 2019 17:17
Installing/Compiling libsass and sassc on Ubuntu 14.04+/Linux Mint 17+ (needed by node-sass)
# 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
anonymous
anonymous / convertToMp3.sh
Created May 15, 2013 00:05
Bash script to convert a list of files to MP3 format.
#!/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)
#!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
@alanthonyc
alanthonyc / .bashrc_auto_virtualnv
Created June 27, 2011 11:30
.bashrc to auto activate a virtualenv
# 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