$ kubectl run -i --tty load-generator --image=busybox /bin/sh
Hit enter for command prompt
$ while true; do wget -q -O- http://graph-api-staging.default.svc.cluster.local:443/graph/graphiql.html; done
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 nocompatible "be iMproved | |
filetype off " necessary to make sure vundle does something | |
set modelines=0 "security hole involving modelines, probably patched by now? | |
" General Options | |
" ------------------------------------- | |
" Automatically set up vundle and install all bundles if vundle is not installed. | |
let iCanHazVundle=1 | |
let vundle_readme=expand('~/.vim/bundle/vundle/README.md') | |
if !filereadable(vundle_readme) |
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
git diff-tree --no-commit-id --name-only -r HEAD |
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
codemod 'defmodule ([a-zA-Z]*) do' 'defmodule Models.\1 do' --extensions exs |
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 | |
AURORA_USERNAME= | |
AURORA_PASS= | |
MYSQL_HOST= | |
mycli --host=$MYSQL_HOST -u $AURORA_USERNAME --password=$AURORA_PASS --database=session -e "SHOW processlist" | awk '$2 == "tpt3_app" {print $1}' > /tmp/process_ids | |
while read id; do | |
echo "killing process_id $id" |
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
%s;^\(\s\+\);\=repeat(' ', len(submatch(0))/2);g |
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 'date' | |
require 'optparse' | |
options = {} | |
OptionParser.new do |opts| | |
opts.banner = "Usage: ./bump_version.rb -d <path to cookbook> [options]" | |
opts.separator "" | |
opts.separator "Increases the specified cookbook's version in metadata.rb+environments/staging.json" |
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 csv | |
import urllib | |
from PIL import Image, ImageChops | |
def same_image(image1, image2): | |
return ImageChops.difference(img1, img2).getbbox() is None | |
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
Summersville Lake Dam | |
- take 19 North until you get to Summersville Lake Rd | |
- There will be a gas station/"travel plaza" to the right, take a left at that light. (You'll know you're at the right place because there will be a billboard with Southern X-Posure facing north.) | |
- Take the road all the way until you cross over the Dam, it will be obvious. | |
- When you get across the dam, look for a park entrance on your left, right past the yellow with black arrow sign. Take the road all the way down to the camping area. |