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 / hello.liquid
Created April 30, 2022 19:10
hello.liquid
<h1>OUTSIDE RAW</h1>
hello testy
My email is {{ user.email }}
My name is {{ user.name }}
{% raw %}
{% raw %}
<h1>RAW</h1>
{% endraw %}
kubectl version
VBoxManage -version
rm ~/Library/VirtualBox/HostInterfaceNetworking-vboxnet*-Dhcpd.leases
minikube start --memory 8192 --disk-size 200g --cpus 4 --vm-driver=virtualbox
minikube ssh "docker run --rm --net=host -v /var/lib/minikube:/var/lib/minikube:ro sectionio/section-init"
minikube service -n section-shared developer-pop &
eval $(minikube docker-env)
docker image ls
minikube dashboard &
@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
# login to http://10.211.55.100:7180
# swappiness needs to be fixed, its set to 60, should be less than 10
# vagrant plugin install vagrant-hostmaster
# also cachier, this can bork
$master_script = <<SCRIPT
#!/bin/bash
apt-get install curl -y
REPOCM=${REPOCM:-cm5}
@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 / 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
# 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 / 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'
@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 / gist:8294579
Last active January 2, 2016 11:09
warts and all deis install on precise NOTE there is an error in documentation around the berks install and I got confused about paths etc based on 3 docs http://docs.deis.io/en/latest/contributing/localdev/ http://docs.deis.io/en/v0.2.1/installation/vagrant/ https://github.com/opdemand/deis/tree/master/contrib/vagrant and one messy issue https:/…
# deis install
clear
sudo apt-get remove --purge openssh-server avahi-daemon
sudo mv /var/run/avahi-daemon /var/run/avahi-daemon_bak
sudo apt-get remove --purge openssh-server avahi-daemon
clear
sudo apt-get install fail2ban python-software-properties curl apt-transport-https -y
sudo reboot now
cd /home/niccolox/Projects/deis/deisvagrant
cd deis