Skip to content

Instantly share code, notes, and snippets.

View nrb's full-sized avatar
🤔

Nolan Brubaker nrb

🤔
View GitHub Profile
@gruber
gruber / gist:1063574
Last active April 15, 2024 20:00
Walken in LA: Hot Dogs

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. Who do the latter think they are kidding? What pastime could be more rewarding than the consumption of hot dogs? I haven’t yet found one, and I don’t expect to in my lifetime. Unlike other foods, hot dogs can be eaten at any time, in any place, and it is not necessary to cook them. Now, I ask you: Why not eat hot dogs? They are delicious.

I carry a bag of hot dogs with me wherever I go. I eat them from the bag whenever I get the urge, regardless of the circumstances

@gnunicorn
gnunicorn / forms.html
Created October 13, 2011 16:02
Jinja2 WTForms macros for twitter bootstrap
{%- 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>
@bryanveloso
bryanveloso / brew-services.rb
Created December 8, 2011 09:39 — 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.)
#!/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>
@Apsu
Apsu / fix-veths.sh
Last active February 1, 2018 21:29
Find and fix veth pairs that aren't connected to LXC containers anymore
#!/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
@cloudnull
cloudnull / cobbler-osa-multi-aio.sh
Last active December 6, 2016 12:14
Full Multi-Node OpenStack deployment using a single OnMetal host from the Rackspace Public Cloud. Read more in the "About this script" comment.
echo "this gist has been moved into a project please clone from here: https://github.com/cloudnull/osa-multi-node-aio"
@ncdc
ncdc / ast.go
Created November 9, 2016 20:50
golang ast parsing to extract a variable's value
package main
import (
"fmt"
"go/ast"
"go/parser"
"go/token"
)
func main() {
@ashish-amarnath
ashish-amarnath / setup-csi.sh
Created February 11, 2020 19:33
Setting up a K8s cluster to support CSI beta snapshot APIs
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
@akutz
akutz / README.md
Last active August 17, 2022 22:56
Generic conditions, patch, simple reconciler packages in Controller-Runtime

Generic conditions, patch, simple reconciler packages

The branch feature/generic-controller leverages generics from Golang 1.18 to support the following enhancements to Controller-Runtime:

  • Port the conditions and patch utilities from Cluster API into Controller-Runtime in such a way they are reusable with any API's types
  • Introduce a new, simple reconciler type to make it even easier for people who want to write a controller using Controller-Runtime

New packages

There are four, new packages: