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 node | |
/** | |
* Module dependencies. | |
*/ | |
var program = require('commander'); | |
program | |
.version('0.0.1') |
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
https://docs.atlassian.com/jira/REST/latest/ | |
var files = [], | |
tickets =[]; | |
var finishrun = false; | |
var request = require('request'); | |
while(!finishrun){ | |
var result; | |
request('https://jira.atlassian.com/rest/api/2/search/',function (error, response, body) { | |
if (!error && response.statusCode == 200) { |
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
INFO global: Vagrant version: 1.4.0 | |
INFO global: Ruby version: 2.0.0 | |
INFO global: RubyGems version: 2.0.14 | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/box/plugin.rb | |
INFO manager: Registered plugin: box command | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/destroy/plugin.rb | |
INFO manager: Registered plugin: destroy command | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/halt/plugin.rb | |
INFO manager: Registered plugin: halt command | |
DEBUG global: Loading core plugin: C:/HashiCorp/Vagrant/embedded/gems/gems/vagrant-1.4.0/plugins/commands/help/plugin.rb |
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
# bourne shell functions below take 1 argument, the file_to_hash. | |
# prints hex digest on stdout | |
md5() { | |
perl -MDigest::MD5=md5_hex -le'print md5_hex(<> or die)' "$1" | |
# ruby -rdigest/md5 -e"puts Digest::MD5.file'/dev/null'" | |
# python -sBc "import hashlib;print hashlib.md5(open('$1','rb').read()).hexdigest()" | |
# md5 "$1"|cut -d' ' -f4 # mac/bsd | |
# md5sum "$1"|cut -d' ' -f1 # linux | |
} |
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
module.exports = function(grunt) { | |
"use strict"; | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
watch: { | |
files: ['./koans/*.py'], | |
tasks: ['pythonrun'] | |
} | |
}); | |
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
import subprocess | |
import re | |
import os | |
import sys | |
import tempfile | |
import shutil | |
# if you change this array you need to change the function that gets the mapping as well | |
OWNERS = { 'svnusername': 'firstname.lastname@company.com', | |
} |
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
import requests | |
from bs4 import BeautifulSoup | |
import getpass | |
import steamapi # from https://github.com/smiley/steamapi | |
import sys | |
import re | |
username = raw_input('Humble Bundle Username:') | |
password = getpass.getpass('Humble Bundle Password:') | |
steamUserName = raw_input('Steam User Name:') |
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
import optparse | |
import os | |
import plistlib | |
import sys | |
import traceback | |
PLIST_START = '<?xml' | |
PLIST_END = '</plist>' | |
def parse_provisioning(fn): | |
fn = os.path.expanduser(fn) |
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
#!/bin/bash | |
# An set of disks to ignore from partitioning and formatting | |
BLACKLIST="/dev/sda|/dev/sdb" | |
# Base directory to hold the data* files | |
DATA_BASE="/media" | |
usage() { | |
echo "Usage: $(basename $0) <new disk>" | |
} |
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
import sys | |
import requests | |
import os | |
import cookielib | |
from lxml import html | |
EMAIL = "USEREMAIL" | |
PASSWORD = "PASSWORD" | |
URL = "https://rink.hockeyapp.net/users/sign_in" | |
# Start a session so we can have persistant cookies |
OlderNewer