Skip to content

Instantly share code, notes, and snippets.

View swarad07's full-sized avatar
💻
Working from home

Swarad swarad07

💻
Working from home
View GitHub Profile
#!/bin/bash
# Based on https://gist.github.com/ManuelTS/935155f423374e950566d05d1448038d
set -eo pipefail
# This script installs PhantomJS and Wraith along with its dependencies.
npm install -g casperjs
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root" 1>&2
@swarad07
swarad07 / PHP 5.2.17
Last active October 20, 2021 07:25
Script to compile php 5.2.17 from source, can be used with Vagrant
echo "### PROVISIONIN PHP 5.2.17..."
if [ "$(whoami)" != "root" ]
then
sudo su -s "$0"
exit
fi
# Add PostgreSQL Apt Repository (provides postgresql-server-dev-9.4)
echo "### Installing wget and other dependencies"
apt-get install -y wget
echo "deb http://apt.postgresql.org/pub/repos/apt/ trusty-pgdg main" > /etc/apt/sources.list.d/pgdg.list