Skip to content

Instantly share code, notes, and snippets.

#!/bin/bash
# Usage: install_node 0.6.16
DIR=~/.node
TARGET=/Volumes/Macintosh\ HD
VER=$*
if [ ! -f ~/.node/$VER.pkg ]; then
curl --create-dirs -o $DIR/$VER.pkg http://nodejs.org/dist/v$VER/node-v$VER.pkg
fi
@bmoore
bmoore / abr.sh
Created April 26, 2013 18:26
Android build and Ant debug install tool
#!/bin/bash
android update project --path ./
if [ $? -ne 0 ]
then
exit
fi
ant debug install
if [ $? -ne 0 ]
@bmoore
bmoore / install.sh
Created December 7, 2012 21:08 — forked from padcom/install.sh
Gitorious installation on Ubuntu 12.04
#!/bin/bash
#------------------------------------------------------------------------------
# SETTINGS
#------------------------------------------------------------------------------
MYSQL_ROOT_PASSWORD=password
MYSQL_GITORIOUS_PASSWORD=password
GITORIOUS_HOST=gitorious
SYSADMIN=sysadmin
@bmoore
bmoore / Auth.php
Created July 2, 2012 15:29
The authentication library.
<?php
class Auth
{
private $hasher;
private $session;
function __construct()
{
$this->hasher = new PasswordHash(8, false);