Skip to content

Instantly share code, notes, and snippets.

Avatar
🌴
No longer a maintainer on Velero.

Nolan Brubaker nrb

🌴
No longer a maintainer on Velero.
View GitHub Profile
@ashish-amarnath
ashish-amarnath / setup-csi.sh
Created Feb 11, 2020
Setting up a K8s cluster to support CSI beta snapshot APIs
View setup-csi.sh
echo "Creating a Kubernetes 1.17 cluster using Kind..."
kind create cluster --image=kindest/node:v1.17.0 --name csi-117
# https://github.com/ashish-amarnath/csi-driver-host-path/tree/deploy-1.17
cd /Users/ashisham/work/kubernetes/src/code/csi-driver-host-path/
echo "Deploying hostpath plugin from $(PWD), from branch $(git branch | grep "*") *"
read -p "Press enter to deploy"
./deploy/kubernetes-1.17/deploy-hostpath.sh
# from https://github.com/ashish-amarnath/external-snapshotter/tree/deploy-1.17
@cloudnull
cloudnull / cobbler-osa-multi-aio.sh
Last active Dec 6, 2016
Full Multi-Node OpenStack deployment using a single OnMetal host from the Rackspace Public Cloud. Read more in the "About this script" comment.
View cobbler-osa-multi-aio.sh
echo "this gist has been moved into a project please clone from here: https://github.com/cloudnull/osa-multi-node-aio"
@Apsu
Apsu / fix-veths.sh
Last active Feb 1, 2018
Find and fix veth pairs that aren't connected to LXC containers anymore
View fix-veths.sh
#!/usr/bin/env bash
# Create associative arrays
declare -A interior=()
declare -A exterior=()
# Make sure ethtool is installed on this host
apt-get install -y ethtool
# For each container
@bryanveloso
bryanveloso / brew-services.rb
Created Dec 8, 2011 — forked from lwe/brew-services.rb
External script for homebrew to simplify starting services via launchctl, out of the box support for any formula which implements #startup_plist. (This version fixes the deprecation warning raised on Formula.resolve_alias.)
View brew-services.rb
#!/usr/bin/env ruby -w
# brew-services(1) - Easily start and stop formulas via launchctl
# ===============================================================
#
# ## SYNOPSIS
#
# [<sudo>] `brew services` `list`<br>
# [<sudo>] `brew services` `restart` <formula><br>
# [<sudo>] `brew services` `start` <formula> [<plist>]<br>
@gnunicorn
gnunicorn / forms.html
Created Oct 13, 2011
Jinja2 WTForms macros for twitter bootstrap
View forms.html
{%- macro form_field_label(field) -%}
<label for="{{ field.id }}">{{ field.label.text }}
{%- if field.flags.required -%}
<abbr title="Diese Feld muss angegeben werden">*</abbr>
{%- endif %}</label>
{% endmacro %}
{%- macro form_field_description(field) -%}
{% if field.description %}
<span class="descr">{{ field.description }}</span>
@gruber
gruber / gist:1063574
Last active May 19, 2021
Walken in LA: Hot Dogs
View gist:1063574

By Christopher Walken

Do you enjoy eating hot dogs? I hope you won't be put off by my frankness when I tell you that I absolutely love them. In fact, I enjoy no food item more than a freshly-boiled hot dog. Now, I've done a lot of movies, and it's true that I've worked with quite a few celebrities who did not share this opinion. I'm sorry to say that these people have always angered me.

There are two types of people in this world: those who eat hot dogs whenever it is possible to do so, and those who opt to do other things with their free time.