Skip to content

Instantly share code, notes, and snippets.

@tristanoneil
tristanoneil / setup.sh
Last active February 17, 2016 19:42 — forked from hubertlepicki/setup.sh
PhantomJS 2.1.0
PHANTOMJS_URL="https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-2.1.1-linux-x86_64.tar.bz2"
set -e
rm -rf ~/.phantomjs
wget --continue "${PHANTOMJS_URL}" -O "${HOME}/cache/phantomjs"
tar xvfj "${HOME}/cache/phantomjs"
ln -s "${HOME}/cache/phantomjs" "${HOME}/bin/"
chmod +x "${HOME}/bin/phantomjs"