Skip to content

Instantly share code, notes, and snippets.

View niccolox's full-sized avatar
🍀
lucky

Nicholas Roberts niccolox

🍀
lucky
View GitHub Profile
@niccolox
niccolox / Vagrantfile
Last active August 29, 2015 13:56
Devshop Vagrantfile - use install.vagrant.sh to run this ... "./install.vagrant.sh" do not use sudo, use regular Vagrant user
# -*- mode: ruby -*-
# vi: set ft=ruby :
$devshop_hosts = <<SCRIPT
#!/bin/bash
cat > /etc/hosts <<EOF
127.0.0.1 localhost
# The following lines are desirable for IPv6 capable hosts
::1 ip6-localhost ip6-loopback
@niccolox
niccolox / install.vagrant.sh
Created February 11, 2014 19:06
Run as normal user i.e. "./install.vagrant.sh" and you will need to say yes a couple of times i.e. select an additional package to install and Postfix...
#!/bin/bash
vagrant up
vagrant ssh -c 'cd /vagrant; sudo ./install.debian.sh'
# This kickstart allows to do base installation of Fedora 14 x86_64 with
# contextualisation scripts for StratusLab.
install
text
#url --url http://download.fedoraproject.org/pub/fedora/linux/releases/14/Everything/x86_64/os/
#url --url http://mirrors.ircam.fr/pub/fedora/linux/releases/14/Everything/x86_64/os/
url --url http://dl.fedoraproject.org/pub/alt/stage/21-Alpha-T2/Server/x86_64/os/
#repo --name=Quattor --baseurl=http://quattorsrv.lal.in2p3.fr/packages/os/fedora14-x86_64/updates/
#repo --name=StratusLab --baseurl=http://quattorsrv.lal.in2p3.fr/packages/stratuslab/
@niccolox
niccolox / user-data
Last active August 29, 2015 14:19
deis coreos user-data
#cloud-config
---
coreos:
etcd:
# generate a new token for each unique cluster from https://discovery.etcd.io/new
# uncomment the following line and replace it with your discovery URL
# discovery: https://discovery.etcd.io/12345693838asdfasfadf13939923
addr: $private_ipv4:4001
peer-addr: $private_ipv4:7001
# give etcd more time if it's under heavy load - prevent leader election thrashing
@niccolox
niccolox / ubuntu-ansible-new.sh
Last active August 29, 2015 14:20
buntu-ansible.sh
#!/bin/bash
# https://gist.githubusercontent.com/niccolox/1707872f2798b3ca0994/raw/ac44252649d6ed74e91805ad7b85075e7e1063a1/ubuntu-ansible.sh
sudo apt-get install software-properties-common -yq
sudo apt-add-repository ppa:ansible/ansible -y
sudo apt-get update
sudo apt-get install -yq ansible
sudo apt-get install -yq nano
sudo apt-get install -yq byobu
@niccolox
niccolox / trusty-tweaks.sh
Last active October 2, 2015 01:18
trusty-tweaks.sh
sudo gsettings set com.canonical.Unity.Lenses disabled-scopes "['more_suggestions-amazon.scope', 'more_suggestions-u1ms.scope', 'more_suggestions-populartracks.scope', 'music-musicstore.scope', 'more_suggestions-ebay.scope', 'more_suggestions-ubuntushop.scope', 'more_suggestions-skimlinks.scope']"
sudo gsettings set com.canonical.desktop.interface scrollbar-mode normal
sudo gsettings set org.gnome.nautilus.preferences enable-interactive-search false
sudo add-apt-repository -y ppa:peterlevi/ppa
sudo apt-get update
sudo apt-get install variety -yq
sudo apt-get install unity-tweak-tool -yq
sudo add-apt-repository -y ppa:tiheum/equinox
sudo apt-get update
sudo apt-get install -yq faience-theme
@niccolox
niccolox / cartodb20_build.sh
Last active December 19, 2015 00:49 — forked from ericmagnuson/cartodb20_build.sh
hackish script for cartodb2 on precise
cd cartodb20
git checkout master
git submodule update
git submodule foreach git checkout master
sudo aptitude install -y unp
# Install GDAL, GEOS, PROJ, JSON-C, and PostGIS
echo 'yes' | sudo add-apt-repository ppa:ubuntugis/ubuntugis-unstable
sudo apt-get update
sudo apt-get install -y libgdal-dev libgeos-dev libproj-dev gdal-bin postgis postgresql-plpython-9.1 libjson0 libjson0-dev python-gdal
@niccolox
niccolox / precise-desktop-tweaks.sh
Last active December 28, 2015 22:19
precise devops ux misc script
sudo apt-get update && apt-get upgrade -y
sudo apt-get install python-software-properties
sudo add-apt-repository -y ppa:webupd8team/themes
sudo apt-get update
sudo apt-get install mediterraneannight-gtk-theme
sudo add-apt-repository -y ppa:webupd8team/java
sudo apt-get update
sudo apt-get install oracle-java7-installer -y
sudo add-apt-repository -y ppa:tualatrix/ppa
sudo apt-get update
## WARNING - this one needs some major love
sudo apt-get --purge remove byobu
sudo apt-get install openssh-server openssh-client
sudo apt-get install python-software-properties
sudo apt-get install apt-show-versions
sudo apt-get -f install
sudo apt-get install perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl apt-show-versions python
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.660_all.deb
sudo dpkg --install webmin_1.660_all.deb
cd ~/Downloads
@niccolox
niccolox / boa213-drupal.sh
Last active December 30, 2015 15:09
A simple rsync bash script that sucks down platforms from the excellent Aegir BOA open hosting platform into a Drupalpro shared folder for easy development
#!/bin/bash
# to dos
# 1. remove existing sites from existing platforms
# i.e. works best on a clean install
# 2. generalize for regex of platforms?
# 3 all platforms?
echo "Aegir BOA 213 to Drupalpro Shared Folder"
echo "This is where it starts"