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
[filter "media"] | |
required = true | |
clean = git media clean %f | |
smudge = git media smudge %f | |
[user] | |
name = Your Name | |
email = [email protected] | |
[alias] | |
rmbranch = !sh -c 'echo "Removing local branch $0" && git branch -d $0' | |
rmrbranch = !sh -c 'echo "Removing remote branch $0..." && git push origin :$0' |
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 | |
<<COMMENT | |
Dependencies: | |
1. This script assumes that Test Kitchen provisioned instances have name prefixes begining with "kitchen". | |
2. You must have jq installed | |
3. You must have the python aws-cli tool installed | |
4. You must have the appropriate IAM role assigned to the machine that will be running this script if you dont want to provide the access key and secret key |
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 | |
clear | |
function header { | |
dt=$(date) | |
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - | |
echo " EStop :: $1 :: Last Update - $dt" | |
printf '%*s\n' "${COLUMNS:-$(tput cols)}" '' | tr ' ' - |
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
''' | |
Simple LocustIO testing script with basic auth | |
''' | |
import random, gzip, StringIO, threading, urllib2, re, getpass | |
from locust import HttpLocust, TaskSet, task, web | |
from random import randint | |
from urlparse import urlparse | |
#resource.setrlimit(resource.RLIMIT_NOFILE, (999999, 999999)) | |
USER_AGENTS = [ |
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
func is_whitespace(ch rune) bool { return ch == ' ' || ch == '\t' || ch == '\n' } | |
func is_alpha(ch rune) bool { return (ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z') } | |
func is_numeric(ch rune) bool { return (ch >= '0' && ch <= '9') } |
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
gpg --with-fingerprint [KEY_FILE] |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# Vagrantfile API/syntax version. Don't touch unless you know what you're doing! | |
VAGRANTFILE_API_VERSION = "2" | |
$startup_script = <<SCRIPT | |
if [ ! -d "/opt" ]; then | |
mkdir /opt | |
fi |
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
#!/usr/bin/php | |
<?php | |
/**************************************** | |
Requirements: | |
- Python 2.7+ | |
- aws-cli | |
- osascript | |
*****************************************/ | |
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
execute "fix apt-cache" do | |
command 'apt-get update' | |
only_if do | |
acp = Mixlib::ShellOut.new('apt-cache policy autoconf') | |
acp.run_command | |
acp.error? | |
end | |
end.run_action( :run ) |
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
package main | |
import ( | |
"bytes" | |
"fmt" | |
) | |
// Example: http://play.golang.org/p/Q34HEmWMXh | |
func main() { |