Skip to content

Instantly share code, notes, and snippets.

@makinde
makinde / gist:1904652
Created February 24, 2012 23:44
Pure Arc Setup
#!/bin/bash
mkdir ~/.arc_install
cd ~/.arc_install
git clone git://github.com/facebook/libphutil.git
git clone git://github.com/facebook/arcanist.git
echo
echo
echo "DONE *************************************************"
@makinde
makinde / arc_setup.sh
Created February 3, 2012 21:46
Arc Setup (Ubuntu)
#!/bin/bash
if ! hash git &> /dev/null || ! hash php &> /dev/null; then
echo -e " *****\n ***** INSTALLING GIT AND PHP\n *****"
if hash apt-get &> /dev/null; then
sudo apt-get install git-core php5-cli php5-curl
elif hash port &> /dev/null; then
sudo port install php5-curl
elif hash fink &> /dev/null; then
!function() {
var doc = document,
htm = doc.documentElement,
lct = null, // last click target
nearest = function(elm, tag) {
while (elm && elm.nodeName != tag) {
elm = elm.parentNode;
}
return elm;
};