This file contains 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
__author__ = 'schwa' | |
import os | |
import subprocess | |
import glob | |
from github import Github # pip install PyGithub | |
from bitbucket.bitbucket import Bitbucket # pip install --user bitbucket-api | |
GH_USERNAME = 'jwight@mac.com' | |
GH_PASSWORD = '1234' |
This file contains 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
#!/usr/bin/env ruby | |
require 'fileutils' | |
# Originally -- Dave Deriso -- deriso@gmail.com | |
# Contributor -- G. Richard Bellamy -- rbellamy@terradatum.com | |
# If you contribute, put your name here! | |
# To get your team ID: | |
# 1. Go to your GitHub profile, select 'Personal Access Tokens', and create an Access token | |
# 2. curl -H "Authorization: token <very-long-access-token>" https://api.github.com/orgs/<org-name>/teams | |
# 3. Find the team name, and grabulate the Team ID |
This file contains 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
use Struct.new(:app) { | |
def call(env) | |
env["rack.errors"] = $stdout | |
app.call(env) | |
end | |
} | |
use Rack::Logger, $your_log_level | |
use Rack::CommonLogger | |
run YourApp |