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
# set enviroment | |
sudo chown `id -u` /etc/environment | |
cat <<EOT > /etc/environment | |
PATH="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games" | |
LANG=en_US.UTF-8 | |
LANGUAGE=en_US.UTF-8 | |
LANG=en_US.UTF-8 | |
LC_ALL=en_US.UTF-8 | |
EOT |
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 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
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 |
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
1. open cmd | |
2. ensure your env is up | |
`docker-machine ls` | |
3. run `set DOCKERENV='your env name'` | |
4. run the following command ` echo @echo off > %TEMP%\%DOCKERENV%.bat && ( docker-machine.exe env %DOCKERENV% | sed 's/export/set/' | |
| sed 's,\\\\\\\\,\\\\,g' | sed 's,#,rem,g') >> %TEMP%\%DOCKERENV%.bat && %TEMP%\%DOCKERENV%.bat %% del | |
%TEMP%\%DOCKERENV%.bat` |
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
This is a placeholder to set the gistName |
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
""" uploads files to azure and reports to dashboard """ | |
import sys | |
import argparse | |
import os | |
from azure.storage import BlobService | |
import logging | |
LOG_LEVEL = 'WARNING' |
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
from bottle import route, request, redirect, view | |
from apiclient import discovery | |
# from apiclient import errors | |
from oauth2client import client | |
import httplib2 | |
import json | |
import os | |
CLIENT_ID = 'YOURCLIENTID.apps.googleusercontent.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
#!/usr/bin/env node | |
/** | |
* Module dependencies. | |
*/ | |
var program = require('commander'); | |
program | |
.version('0.0.1') |
OlderNewer