This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| [Unit] | |
| Description=Hubot | |
| Requires=network.target | |
| After=network.target | |
| [Service] | |
| Type=simple | |
| WorkingDirectory=/opt/hubot | |
| User=hubot |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #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) |