Skip to content

Instantly share code, notes, and snippets.

View jschumann's full-sized avatar

James Schumann jschumann

  • 08:21 (UTC -04:00)
View GitHub Profile
@jschumann
jschumann / hubot.service
Created November 9, 2016 19:24 — forked from praseodym/hubot.service
Hubot systemd service file
[Unit]
Description=Hubot
Requires=network.target
After=network.target
[Service]
Type=simple
WorkingDirectory=/opt/hubot
User=hubot
# This is a list of matchers that we use in our RSpec tests at Causes.
# *** CAPYBARA MATCHERS ***
#
# To check for content on a page, don't use `include`, use `have_content`:
response.body.should have_content 'A header'
# As opposed to `include`, this Capybara matcher will only look for content
# (ignoring tags and meta-info etc). And the error message is slightly easier to
#!/bin/bash
# A simple script to make live backups of an organization's GitHub repositories.
# Where to store the backup files
GHBU_BACKUP_DIR=${GHBU_BACKUP_DIR-"==/FULL/PATH/TO/BACKUPDIR=="}
# The GitHub organization whose repos will be backed up
GHBU_ORG=${GHBU_ORG-"==ORGANIZATION=="}
# GitHub API token.
@jschumann
jschumann / rubyMatching
Last active December 10, 2015 00:49 — forked from anonymous/rubyMatching
#Functions# {{{
def parse_team_name(line)
teamName = /[[:alpha:]]*/.match(line)
end
def parse_record(line)
record = /[[:digit:]]*-[[:digit:]]/.match(line)
end
def parse_player_name(line)