Skip to content

Instantly share code, notes, and snippets.

@svs14
svs14 / install-couchbase-ubuntu-14.04.sh
Created June 13, 2015 04:34
Installs Couchbase on Ubuntu 14.04
#!/bin/bash
# Installs Couchbase on Ubuntu 14.04
wget -L http://packages.couchbase.com/releases/3.0.3/couchbase-server-enterprise_3.0.3-ubuntu12.04_amd64.deb
sudo dpkg -i couchbase-server-enterprise_3.0.3-ubuntu12.04_amd64.deb
rm -f couchbase-server-enterprise_3.0.3-ubuntu12.04_amd64.deb
@svs14
svs14 / osx-10.11-install-python-scientific.sh
Last active January 3, 2016 05:23
Installs scientific python software on OS X 10.11
#!/bin/bash
#
# Installs python specific software
# for scientific applications on OSX 10.11
#
# Install gcc (includes fortran)
brew install gcc
# Install scientific packages
@svs14
svs14 / install-rstudio-osx.sh
Created January 3, 2016 03:42
Install rstudio on OSX 10.11
#!/bin/bash
#
# Installs rstudio on OSX 10.11
#
brew install homebrew/science/r
brew install Caskroom/cask/rstudio
@svs14
svs14 / osx-10.11-env_custom-bootstrap.sh
Last active January 3, 2016 03:26
Bootstraps a fresh OS X 10.11 install with env-custom (dot files) and oh-my-zsh.
#!/bin/bash
#
# Bootstraps env-custom for OSX 10.11
# additionally with oh-my-zsh.
#
# Set bash to exit immediately on failure
set -e
# Set bash statements to return failure if any piped command within it fails
@svs14
svs14 / reverse-proxy.conf
Created December 26, 2013 02:21
Setup HTTP reverse proxy in Apache. Add this configuration to /etc/apache2/conf.d/. Ensure proxy_http module for Apache is enabled.
<IfModule mod_proxy_http.c>
ProxyRequests Off
ProxyPreserveHost On
<Proxy *>
Order deny,allow
Allow from all
</Proxy>
@svs14
svs14 / ubuntu-fix-nectar.sh
Last active January 1, 2016 09:59
Fixes Ubuntu on NECTAR
#!/bin/sh
#
# Patches system settings on a NECTAR Ubuntu instance.
#
# Fix host resolution error
echo "127.0.1.1 $(hostname)" | sudo tee -a /etc/hosts
# Set default language to Australian (en_AU-UTF8) with POSIX messages
sudo locale-gen en_AU.UTF-8
@svs14
svs14 / archlinux-env_custom-bootstrap.sh
Last active January 1, 2016 02:59
Bootstraps a fresh ArchLinux install with env-custom (dot files) and oh-my-zsh.
#!/bin/bash
#
# Bootstraps env-custom for ArchLinux machine
# additionally with oh-my-zsh.
#
# Set bash to exit immediately on failure
set -e
# Set bash statements to return failure if any piped command within it fails
@svs14
svs14 / ubuntu-12.04-env_custom-bootstrap.sh
Last active December 19, 2015 18:19
Bootstraps a fresh Ubuntu 12.04 install with env-custom (dot files) and oh-my-zsh.
#!/bin/bash
#
# Bootstraps env-custom for Ubuntu machine 12.04
# additionally with oh-my-zsh.
#
# Set bash to exit immediately on failure
set -e
# Set bash statements to return failure if any piped command within it fails
@svs14
svs14 / install-arma3-ubuntu.sh
Created June 22, 2015 06:56
Install ARMA 3 on Ubuntu
#!/bin/bash
# Sets up Arma 3 server.
# Requires exports STEAM_USERNAME + STEAM_PASSWORD.
# Install dependencies for SteamCMD
sudo apt-get -y install lib32gcc1 lib32stdc++6 git
# Create new user for steam
sudo useradd -m -s /bin/bash steam
@svs14
svs14 / install-cassandra-ubuntu-14.04.sh
Last active August 29, 2015 14:23
Installs Cassandra on Ubuntu 14.04
#!/bin/bash
# Installs Cassandra on Ubuntu 14.04
echo 'deb http://www.apache.org/dist/cassandra/debian 21x main' | sudo tee /etc/apt/sources.list.d/cassandra.list
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 749D6EEC0353B12C
sudo apt-get update
sudo apt-get install -y cassandra cassandra-tools