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 requests.auth import HTTPBasicAuth | |
import csv | |
import getpass | |
username = input('enter username:') | |
key = getpass.getpass("Enter your password: ") | |
user_emails = [] | |
"""authorize via zendesk""" |
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
$msbuild = "C:\Program Files\Google Apps Directory Sync\sync-cmd.exe" | |
$arguments = "-a -o -c config.xml" | |
while ($true) { | |
start-Process -FilePath $msbuild $arguments | |
Start-Sleep -Seconds 600 | |
} | |
<# | |
-a,--apply |
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
/* globals $driver $browser */ | |
var request = require('request') | |
function elementIsPresent (ele) { | |
$browser.findElements(ele).then(function (found) { | |
return found.length > 0 | |
}) | |
} | |
function performBrowserClickTest (path) { |
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/python2.7 | |
import boto3 | |
import datetime | |
import pytz | |
import os | |
ec2 = boto3.resource('ec2') | |
def lambda_handler(event, context): |
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/python3 | |
import subprocess | |
import os | |
import sys | |
path = %teamcity.build.checkoutDir% | |
sfdx = 'sfdx' | |
alias = "cheeseburger" | |
auth = %env.auth_key% |
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/python3 | |
import subprocess | |
import os | |
import sys | |
path = (os.environ['bamboo_build_working_directory']) | |
sfdx = 'sfdx' | |
alias= "cheeseburger" | |
auth_key= (os.environ['AUTH_KEY']) |
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 | |
checkroot() { | |
if [ $UID -ne 0 ] ; then | |
echo "User has insufficient privilege." | |
exit 4 | |
fi | |
} | |
install_deps () { |
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 | |
checkroot() { | |
if [ $UID -ne 0 ] ; then | |
echo "User has insufficient privilege." | |
exit 4 | |
fi | |
} |
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
install_deps () | |
{ | |
apt-get -y install \ | |
subversion | |
} | |
git_tomcat_configs () | |
{ | |
cd / | |
svn export --force svn+ssh://svn.kqed.org/var/svn/repo/config/trunk/tomcat/tomcat_config_java_7/ . | |
ls -ls /vagrant |
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 | |
setjdk() { | |
if [ $# -ne 0 ]; then | |
removeFromPath '/System/Library/Frameworks/JavaVM.framework/Home/bin' | |
if [ -n "${JAVA_HOME+x}" ]; then | |
removeFromPath $JAVA_HOME | |
fi | |
export JAVA_HOME=`/usr/libexec/java_home -v $@` | |
export PATH=$JAVA_HOME/bin:$PATH | |
fi |