Skip to content

Instantly share code, notes, and snippets.


Ryan Hall halloffame

View GitHub Profile
halloffame / cleanup-site-branches.rb
Created Aug 27, 2021
Ruby script to delete *-site branches older than X days
View cleanup-site-branches.rb
#!/usr/bin/env ruby
require 'octokit'
DOIT = ENV["DOIT"] == "true"
client = ACCESS_TOKEN)
client.auto_paginate = true

Keybase proof

I hereby claim:

  • I am halloffame on github.
  • I am halloffame ( on keybase.
  • I have a public key ASBDdv1x_eg764aqyNYS1UxcPa-62t8QlvhiYUJcnsgR6Qo

To claim this, I am signing this object:

halloffame /
Last active Dec 8, 2016
Brief overview of some basic web technologies we use.


Git provides basic version control for your code. It also enables you to easily collaborate on shared code with other people.

Basic commands

# Initialize a new local git repository
git init
halloffame / api_auth_version_test.rb
Last active Sep 15, 2016
Tests v1.4 migration path for api-auth
View api_auth_version_test.rb
require 'rack'
# Since the requests are time-sensitive, you will need to regenerate the
# mock client requests for each of the versions before testing them
# against the different API versions. Otherwise they will all just return false.
# gem 'api-auth', '1.3.2'
# gem 'api-auth', '1.4.1'
# gem 'api-auth', '1.5.0'
halloffame / slack_deploy
Created Apr 28, 2016
Drop this guy into /usr/local/bin folder for command line deployment through slack through rundeck.
View slack_deploy
# Drop this guy into /usr/local/bin folder for command line deployment through slack through rundeck.
# exit on failure
set -e
usage() {
cat << EOF
Usage: $0 -t <token> -r <room id> -e <environment> -b <branch>
or: $0 <environment> <branch>
halloffame / white_pages-template.html
Last active Feb 13, 2016 — forked from adamcrown/white_pages-template.html
A simple Liquid template for "White Pages" reports with the applyfor app
View white_pages-template.html
<title>RA White Pages</title>
<style type="text/css">
* {
font-family: Arial, sans-serif;
font-size: 10pt;
halloffame / dropbox_dump.rb
Created Dec 2, 2015
Ruby script to recursively download a given directory from your dropbox.
View dropbox_dump.rb
require 'dropbox_sdk' # gem install dropbox-sdk
require 'fileutils'
require 'thread'
# Example: downloads entire dropbox
#'your_access_token', '/download/destination').download("/")
class DropboxDump
attr_accessor :client, :dest, :work_q, :worker_count
def initialize(access_token, dest, max_workers = 3)
halloffame / print_department_list.rb
Created Feb 17, 2015
Get a nested list of departments from directory
View print_department_list.rb
def department_children(parent_id)
children = {}
Department.where(parent_department_id: parent_id).each do |dept|
children[dept.title] = department_children(
def print_list(list, padding=0)
list.keys.sort.each do |key|
View chapels.json
{"id":822,"title":"LABOR DAY (No Chapel)","summary":"","scripture":"","starts_at":"2014-09-01T09:30:00-07:00","ends_at":"2014-09-01T10:20:00-07:00","slug":"822-labor-day-no-chapel","type":"Bible Series","speakers":[],"series":[],"location":null},
{"id":825,"title":"Word Chapel - Genesis 1-2: Creation","summary":"Where we let teaching from the Word pierce our hearts (Heb. 4:12) as we explore our annual theme in Scripture, which this year is \u201cLife Together\u201d (2 Corinthians 7:3).","scripture":"Genesis 1","starts_at":"2014-09-08T09:30:00-07:00","ends_at":"2014-09-08T10:20:00-07:00","slug":"825-word-chapel-genesis-1-2-creation","type":"Bible Series","speakers":[
{"id":1704,"name":"Behzad Varamini","original_photo_url":"","profile_photo_url":"","thumbnail_photo_url":"
View menu.json
"days": [
"date": "2015-02-11",
"cafes": {
"17": {
"name": "Café Biola",
"menu_id": "69850",
"dayparts": [