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" | |
require "shellwords" | |
require "yaml" | |
CIRCLE1_DEFAULT_CACHE_DIRECTORIES = [ | |
"vendor/bundle", | |
"~/.m2", | |
"~/.bundle", |
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 bash | |
# | |
# slice.sh - split stdin lines into chunks and run given commands | |
# | |
# Examples: Run given commands once per 2 lines | |
# | |
# ```sh | |
# { echo foo | |
# echo bar | |
# echo baz |
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/sh | |
set -e | |
# default ChefDK version | |
chefdk_version="0.10.0-1" | |
while [ $# -gt 0 ]; do | |
case "$1" in | |
"-v" ) |
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 bash | |
set -e | |
set -x | |
JUPYTERHUB_HOME="/srv/jupyterhub" | |
shopt -s nullglob | |
for node_module_bin in "${JUPYTERHUB_HOME}/current/node_modules/"*"/bin"; do | |
PATH="${node_module_bin}:${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/env bash | |
set -e | |
AWSCLI_OPTIONS="" | |
tmpdir="$(mktemp -d "${TMP:-/tmp}/${BASH_SOURCE##*/}.XXXXXXXX")" | |
on_exit() { | |
rm -fr "${tmpdir}" |
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
*.swo | |
*.swp | |
/cedar | |
/cedar-12 | |
/cedar-14 |
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 "json" | |
require "msgpack" | |
require "tempfile" | |
require "zlib" | |
io = Tempfile.new(File.basename($0)) | |
gzip = Zlib::GzipWriter.new(io) | |
packer = MessagePack::Packer.new(gzip) | |
ARGF.each do |s| | |
record = JSON.parse(s) |
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 bash | |
# | |
# pem2jks.sh - convert bundled PEM certificate to JKS format | |
# | |
# Special thanks to Justin Ludwig about his article on converting PEM to JKS. | |
# http://blog.swwomm.com/2015/02/importing-new-rds-ca-certificate-into.html | |
# | |
set -e |
This file has been truncated, but you can view the full file.
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
/var/folders/rc/_9kglbjs651431bbh2736s300000gn/T/python-build.20141227152802.9648 ~ | |
Downloading Python-3.4.1.tgz... | |
HTTP/1.1 200 OK | |
Date: Sat, 27 Dec 2014 06:28:03 GMT | |
Server: GitHub.com | |
Content-Type: application/octet-stream | |
Last-Modified: Tue, 04 Nov 2014 09:32:24 GMT | |
Expires: Sat, 27 Dec 2014 04:57:53 GMT | |
Cache-Control: max-age=600 | |
Content-Length: 19113124 |
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
package main | |
import ( | |
"fmt" | |
"os" | |
"path/filepath" | |
) | |
func main() { | |
if len(os.Args) < 2 { |
NewerOlder