Skip to content

Instantly share code, notes, and snippets.

View rbramwell's full-sized avatar
Blazing a trail the likes of which has never been seen.

Rory Bramwell rbramwell

Blazing a trail the likes of which has never been seen.
View GitHub Profile
trustin /
Last active April 11, 2023 23:37
git-trigger-build: Triggers a CI build by pushing an empty commit
#!/bin/bash -e
# Stash the staged files if any.
if ! git diff --staged --exit-code >/dev/null; then
echo -ne '\033[1;32m'
echo -n 'Stashing the staged files'
echo -e '\033[0m'
git stash
abhisek / psp.yml
Created March 17, 2020 09:10
PodSecurityPolicy to Prevent hostPath Mount
View psp.yml
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
name: developers-psp
privileged: false
allowPrivilegeEscalation: false
hostNetwork: false
hostPID: false
hostIPC: false
jexp / luanda_leaks.cypher
Created February 4, 2020 11:56
Luanda Leaks Load Script for Neo4j
View luanda_leaks.cypher
create constraint on (j:Jurisdiction) assert is unique;
create constraint on (i:Industry) assert is unique;
create constraint on (c:Company) assert is unique;
create constraint on (c:Company) assert is unique;
call apoc.load.csv('') yield map as row
with,[],['N/A','Still active','?','Unknown']) as row
create (c:Company {id:row.`ICIJ company #`})
set = row.`Company name`,
c.nameChangeDate=row.`Date of Company name change (MM/DD/YYYY)`,
hazcod / cloudbuild.yaml
Last active May 13, 2020 11:27
Clean container registry images in Google Cloud Build step.
View cloudbuild.yaml
_IMG_KEEP: "3"
- name: ''
entrypoint: 'bash'
- '-c'
DaanGeurts /
Created June 20, 2019 11:11
Deleting unused images from Google Container Registry, leaving x number left
# Copyright © 2017 Google Inc.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
# Unless required by applicable law or agreed to in writing, software
mauilion / etcdclient.yaml
Last active November 8, 2021 17:44
etcdclient static pod with all the bits configured.
View etcdclient.yaml
apiVersion: v1
kind: Pod
creationTimestamp: null
component: etcdclient
tier: debug
name: etcdclient
namespace: kube-system
alexellis /
Last active July 21, 2023 10:45
Run multiple minikube Kubernetes clusters on Ubuntu Linux with KVM

Ramp up your Kubernetes development, CI-tooling or testing workflow by running multiple Kubernetes clusters on Ubuntu Linux with KVM and minikube.

In this tutorial we will combine the popular minikube tool with Linux's Kernel-based Virtual Machine (KVM) support. It is a great way to re-purpose an old machine that you found on eBay or have gathering gust under your desk. An Intel NUC would also make a great host for this tutorial if you want to buy some new hardware. Another popular angle is to use a bare metal host in the cloud and I've provided some details on that below.

We'll set up all the tooling so that you can build one or many single-node Kubernetes clusters and then deploy applications to them such as OpenFaaS using familiar tooling like helm. I'll then show you how to access the Kubernetes clusters from a remote machine such as your laptop.


  • This tutorial uses Ubuntu 16.04 as a base installation, but other distributions are supported by KVM. You'll need to find out how to install
malzzz / gist:15639fc36d069490b7709be2f3a4d522
Last active March 27, 2023 16:21 — forked from Frozenfire92/gist:3627e38dc47ca581d6d024c14c1cf4a9
Install Scala 2.12.3 and SBT using apt-get on Ubuntu 16.04
View gist:15639fc36d069490b7709be2f3a4d522
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget
sudo dpkg -i scala-2.12.3.deb
sudo apt-get update
sudo apt-get install scala
jessfraz / boxstarter.ps1
Last active December 7, 2023 16:56
Boxstarter Commands for a new Windows box.
View boxstarter.ps1
# Description: Boxstarter Script
# Author: Jess Frazelle <>
# Last Updated: 2017-09-11
# Install boxstarter:
# . { iwr -useb } | iex; get-boxstarter -Force
# You might need to set: Set-ExecutionPolicy RemoteSigned
# Run this boxstarter by calling the following from an **elevated** command-prompt:
vijayjt / Get-AzureIPRangesXMLFile.ps1
Last active July 31, 2017 12:25
PowerShell function to download the Azure Public IP Ranges file and save it locally
View Get-AzureIPRangesXMLFile.ps1
Function Get-AzurePublicIPRangesXMLFile
This function downloads the Azure IP ranges XML file to the current directory or a specified path.
This function downloads the Azure IP ranges XML file to the current directory or a specified path.
An optional parameter that is the URL to the Azure IP range XML file download page.
.PARAMETER DestinationPath