Skip to content

Instantly share code, notes, and snippets.

View kingdonb's full-sized avatar
🍹

Kingdon Barrett kingdonb

🍹
View GitHub Profile
@bf4
bf4 / Gemfile
Created September 7, 2012 18:20
Ruby Time and Timezone walkthrough
source "https://rubygems.org"
gem "rack"
gem "tzinfo"
@brundage
brundage / database.yml
Created November 16, 2012 22:05
Use sqlite in-memory database for rspec testing
test:
adapter: sqlite3
encoding: utf8
pool: 5
timeout: 5000
database: ":memory:"
verbosity: quiet
@msroot
msroot / gitconfig
Created August 11, 2013 20:20
better git log in ~/.gitconfig
[alias]
l = log --date-order --date=iso --graph --full-history --all --pretty=format:'%x08%x09%C(red)%h %C(cyan)%ad%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08%x08 %C(bold blue)%aN%C(reset)%C(bold yellow)%d %C(reset)%s'
@julionc
julionc / 00.howto_install_phantomjs.md
Last active June 7, 2024 11:29
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

Version: 1.9.8

Platform: x86_64

First, install or update to the latest system software.

sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
@BitOfUniverse
BitOfUniverse / coverage_reporters.rb
Created April 10, 2016 18:21
Use CodeClimate + Coversall + SimpleCov locally at the same time
# Allows to post coverage data to remote services like Codeclimate & Coversall and use simplecov locally
# to view coverage locally, run: rake spec COV=true
# add file on the top for spec_helper: require 'coverage_reporters.rb'
require 'simplecov'
require 'coveralls'
require "codeclimate-test-reporter"
reporters = [
(Coveralls::SimpleCov::Formatter if Coveralls.will_run?),
(CodeClimate::TestReporter::Formatter if CodeClimate::TestReporter.run?),
@mgoodness
mgoodness / helm-rbac.md
Last active October 30, 2021 17:04
Helm RBAC setup for K8s v1.6+ (tested on minikube)
kubectl -n kube-system create sa tiller
kubectl create clusterrolebinding tiller --clusterrole cluster-admin --serviceaccount=kube-system:tiller
helm init --service-account tiller
@croxton
croxton / SSL-certs-OSX.md
Last active March 3, 2024 18:58 — forked from leevigraham/Generate ssl certificates with Subject Alt Names on OSX.md
Generate ssl certificates with Subject Alt Names

Generate ssl certificates with Subject Alt Names on OSX

Open ssl.conf in a text editor.

Edit the domain(s) listed under the [alt_names] section so that they match the local domain name you want to use for your project, e.g.

DNS.1   = my-project.dev

Additional FQDNs can be added if required:

@negz
negz / kubedump.sh
Last active March 6, 2024 18:42
Dump Kubernetes cluster resources as YAML
#!/usr/bin/env bash
set -e
CONTEXT="$1"
if [[ -z ${CONTEXT} ]]; then
echo "Usage: $0 KUBE-CONTEXT"
exit 1
fi
@reitraced
reitraced / GUIDE.MD
Last active February 20, 2024 14:59
a getting started guide to urbit (how original)

introduction

hey, glad you could make it! this is a basic guide (with gifs) on how to install urbit and boot a comet. this guide howeever will also be going into some of my own qol tricks, but youll see a bit later.

okay so lets get started!

oh and also sorry about the extremely low quality of all my gifs. its 2 am and ive never done this kind of thing before, so bare with me

prerequesites

#!/bin/bash
# 0 * * * * /Users/imiell/git/work/bin/home/slack_start_stop.sh start
# 3-59 * * * * /Users/imiell/git/work/bin/home/slack_start_stop.sh stop
DO_START=0
DO_STOP=0
while [ "$1" != "" ]; do
case $1 in