Skip to content

Instantly share code, notes, and snippets.

@hrabbit
hrabbit / crunchbuntu.sh
Last active September 15, 2017 12:33 — forked from brianly/crunchbuntu.sh
Install a very basic version of Ubuntu and then make it like CrunchBang (original source: http://crunchbang.org/forums/viewtopic.php?id=36252)
# do mini-install from http://archive.ubuntu.com/ubuntu/dists/trusty/main/installer-amd64/current/images/netboot/mini.iso
# next do wget http://pastebin.com/raw.php?i=K8AmdciE -O- | tr -d '\r' > install.sh && chmod +x install.sh && ./install.sh
# OR
# curl "https://gist.githubusercontent.com/hrabbit/13c6754e36541cca4039b639942ea22c/raw/39bf1a66f8ff03a79aaf9302ae40387b5e886537/crunchbuntu.sh" | sh
mkdir crunchbuntu && pushd crunchbuntu
# libvala dependency was renamed to vala in trusty, get an older package
wget -c https://launchpad.net/~vala-team/+archive/ubuntu/ppa/+files/libvala-0.10-0_0.10.4-1ubuntu1~lucid1_amd64.deb
sudo dpkg -i libvala-*
@hrabbit
hrabbit / phabricator_readme.md
Created July 28, 2016 02:14 — forked from sparrc/phabricator_readme.md
Phabricator Ubuntu Installation Guide

Phabricator Ubuntu Installation Guide

This is a supplement to the official Phabricator Installation Guide, because their guide will leave you with all kinds of permission and config errors and ~15,000 setup issues on startup.

Install bonus packages:

# apt-get install mercurial subversion python-pygments sendmail imagemagick

Create necessary users and add phd-user to sudoers:

@hrabbit
hrabbit / gist:636
Created July 22, 2008 03:53
rotating backup
#shsql tools
SH_PATH=/usr/local/shsql/
shsqlstart=${SH_PATH}shsqlstart
shsql=${SH_PATH}shsql
shsqlend=${SH_PATH}shsqlend
shsqlline=${SH_PATH}shsqlline
SHSQL=mysql; export SHSQL
HANDLE=`${shsqlstart} "host=${SQL_HOST} dbname=${SQL_DBNAME} user=${SQL_USERNAME} password=${SQL_PASSWORD}"`