Skip to content

Instantly share code, notes, and snippets.

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
@rbramwell
rbramwell / etcdclient.yaml
Created Dec 3, 2020 — forked from mauilion/etcdclient.yaml
etcdclient static pod with all the bits configured.
View etcdclient.yaml
apiVersion: v1
kind: Pod
metadata:
creationTimestamp: null
labels:
component: etcdclient
tier: debug
name: etcdclient
namespace: kube-system
spec:
@rbramwell
rbramwell / Vagrantfile
Created Nov 11, 2020 — forked from leifg/Vagrantfile
Add a second disk to system using vagrant
View Vagrantfile
file_to_disk = './tmp/large_disk.vdi'
Vagrant::Config.run do |config|
config.vm.box = 'base'
config.vm.customize ['createhd', '--filename', file_to_disk, '--size', 500 * 1024]
config.vm.customize ['storageattach', :id, '--storagectl', 'SATA Controller', '--port', 1, '--device', 0, '--type', 'hdd', '--medium', file_to_disk]
end
@rbramwell
rbramwell / ansible-summary.md
Created Dec 15, 2017 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick
View ansible-summary.md

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@rbramwell
rbramwell / psp.yml
Created Aug 18, 2020 — forked from abhisek/psp.yml
PodSecurityPolicy to Prevent hostPath Mount
View psp.yml
apiVersion: policy/v1beta1
kind: PodSecurityPolicy
metadata:
name: developers-psp
spec:
privileged: false
allowPrivilegeEscalation: false
hostNetwork: false
hostPID: false
hostIPC: false
@rbramwell
rbramwell / binarySearchTree.py
Created Apr 7, 2020 — forked from jakemmarsh/binarySearchTree.py
a simple implementation of a Binary Search Tree in Python
View binarySearchTree.py
class Node:
def __init__(self, val):
self.val = val
self.leftChild = None
self.rightChild = None
def get(self):
return self.val
def set(self, val):
@rbramwell
rbramwell / cloudbuild.yaml
Last active Jan 23, 2020 — forked from hazcod/cloudbuild.yaml
Clean container registry images in Google Cloud Build step.
View cloudbuild.yaml
substitutions:
_IMG_KEEP: "3"
steps:
- name: 'gcr.io/cloud-builders/gcloud-slim'
entrypoint: 'bash'
args:
- '-c'
@rbramwell
rbramwell / housekeeping_images.sh
Created Jan 23, 2020 — forked from DaanGeurts/housekeeping_images.sh
Deleting unused images from Google Container Registry, leaving x number left
View housekeeping_images.sh
#!/bin/bash
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@rbramwell
rbramwell / housekeeping_images.sh
Created Jan 23, 2020 — forked from DaanGeurts/housekeeping_images.sh
Deleting unused images from Google Container Registry, leaving x number left
View housekeeping_images.sh
#!/bin/bash
# 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
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
@rbramwell
rbramwell / gist:8f1a6cb5043ee22e6a9e07ff6b22ce8d
Created May 2, 2019 — forked from malzzz/gist:15639fc36d069490b7709be2f3a4d522
Install Scala 2.12.3 and SBT using apt-get on Ubuntu 16.04
View gist:8f1a6cb5043ee22e6a9e07ff6b22ce8d
## Java
sudo apt-get update
sudo apt-get install default-jdk
## Scala
sudo apt-get remove scala-library scala
sudo wget https://downloads.lightbend.com/scala/2.12.3/scala-2.12.3.deb
sudo dpkg -i scala-2.12.3.deb
sudo apt-get update
sudo apt-get install scala
@rbramwell
rbramwell / docx2md.md
Created Apr 26, 2017 — forked from aembleton/docx2md.md
Convert a Word Document into MD
View docx2md.md

Converting a Word Document to Markdown in One Move

The Problem

A lot of important government documents are created and saved in Microsoft Word (*.docx). But Microsoft Word is a proprietary format, and it's not really useful for presenting documents on the web. So, I wanted to find a way to convert a .docx file into markdown.

Installing Pandoc

On a mac you can use homebrew by running the command brew install pandoc.

The Solution