Skip to content

Instantly share code, notes, and snippets.


Jesse Dearing jessedearing

View GitHub Profile
detiber /
Last active Dec 21, 2018
Cluster API Provider AWS Demo

Cluster API Provider AWS Demo script

Pre-demo Prep

Build and install the artifacts

make clean
export$(gcloud config get-value project)
make clusterctl clusterawsadm docker-build-dev docker-push-dev
yanofsky /
Last active Mar 4, 2021
A script to download all of a user's tweets into a csv
#!/usr/bin/env python
# encoding: utf-8
import tweepy #
import csv
#Twitter API credentials
consumer_key = ""
consumer_secret = ""
access_key = ""
ssh-rsa AAAAB3NzaC1yc2EAAAABIwAAAQEA4n/M/hGnsDZgrJ6acSstQ0+HuhF/iZziU/nXR35vZn4tWFU/3UgDS2/7kQM1KMFVdkbzUv2VmoHPEI3XWGIBn6a8aBDwoJvXDfuepXvBnhERkRair/53uD8qseG9djxpbkudO2eJPSyR9678aTjb5jkzErM1cwFdT126JnrzlnYpl79lscTMfbzjY1gGtW/2UC5qgqS4+nQHgVFi9d9EmWFnUM4hPQV3SQtqsA76uqtChjrTCGFJ/FqSg2fO+SWpqE8BKoROa1Ad0CVPSBqpO7UdDNadIyzR3G0ZTyLLqb7E25qDs9eGg1ZyaARmZmtsOAEKQUVy6Hdy7wcYDy+9kw==
erikh /
Created Mar 31, 2012 — forked from DAddYE/
OSX For Hackers
#!/usr/bin/env sh
# This is script with usefull tips taken from:
# install it:
# curl -sL | sh
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
# ===============================================================
# [<sudo>] `brew services` `list`<br>
# [<sudo>] `brew services` `restart` <formula><br>
# [<sudo>] `brew services` `start` <formula> [<plist>]<br>
View vim

#Vim Cheat Sheet

  • gqip - Reformats paragraph to textwidth
  • gq - Reformats selection
  • :Tab /= - Equally spaces based on the = symbol (requires Tabular vim plugin)
  • :setf language - Changes current language
  • :set language=language - Changes current language
  • <C-a> - Increments the number under the cursor
  • <C-x> - Decrements the number under the cursor
  • ~ - Toggles case and moves to next character in normal mode
View campfire-emoji.txt
Surround these with : e.g. :calling:
dnagir / rspec-syntax-cheat-sheet.rb
Created Nov 5, 2010
RSpec 2 syntax cheat sheet by example
View rspec-syntax-cheat-sheet.rb
# RSpec 2.0 syntax Cheet Sheet by
# defining spec within a module will automatically pick Player::MovieList as a 'subject' (see below)
module Player
describe MovieList, "with optional description" do
it "is pending example, so that you can write ones quickly"
it "is already working example that we want to suspend from failing temporarily" do
pending("working on another feature that temporarily breaks this one")
View gist:206253
# unicorn_rails -c /data/github/current/config/unicorn.rb -E production -D
rails_env = ENV['RAILS_ENV'] || 'production'
# 16 workers and 1 master
worker_processes (rails_env == 'production' ? 16 : 4)
# Load rails+github.git into the master before forking workers
# for super-fast worker spawn times
preload_app true