Skip to content

Instantly share code, notes, and snippets.

@dustydecapod
dustydecapod / gist:fb1b834cc287710efacfbc441564c90d
Created June 28, 2017 06:12
ES-Rally results from c4.8xlarge
------------------------------------------------------
_______ __ _____
/ ____(_)___ ____ _/ / / ___/_________ ________
/ /_ / / __ \/ __ `/ / \__ \/ ___/ __ \/ ___/ _ \
/ __/ / / / / / /_/ / / ___/ / /__/ /_/ / / / __/
/_/ /_/_/ /_/\__,_/_/ /____/\___/\____/_/ \___/
------------------------------------------------------
| Lap | Metric | Operation | Value | Unit |
|------:|-------------------------------:|-----------------------:|------------:|-------:|
@dustydecapod
dustydecapod / gist:e80feba56b654c9548e8595b7321ffd4
Created June 28, 2017 06:14
ES-Rally results from i3.16xlarge
------------------------------------------------------
_______ __ _____
/ ____(_)___ ____ _/ / / ___/_________ ________
/ /_ / / __ \/ __ `/ / \__ \/ ___/ __ \/ ___/ _ \
/ __/ / / / / / /_/ / / ___/ / /__/ /_/ / / / __/
/_/ /_/_/ /_/\__,_/_/ /____/\___/\____/_/ \___/
------------------------------------------------------
| Lap | Metric | Operation | Value | Unit |
|------:|-------------------------------:|-----------------------:|------------:|-------:|
@dustydecapod
dustydecapod / 0_reuse_code.js
Created July 19, 2017 01:39
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console

Keybase proof

I hereby claim:

  • I am zoidbb on github.
  • I am zoidbb (https://keybase.io/zoidbb) on keybase.
  • I have a public key ASBwt0C_JvpMBgorvxdbKSHXLCvXEwfl4k5oCa2bAB25GAo

To claim this, I am signing this object:

aws-env () {
if [[ -n "$1" ]]; then
if [[ ! -f ~/.aws/credentials ]]; then
print -P "%F{red}No AWS Credentials Found%f"
return
fi
if [[ $(grep -F \[$1\] ~/.aws/credentials) = "" ]]; then
print -P "%F{red}Environment '$1' not found in AWS credentials file%f"
return
fi
from __future__ import print_function
import os, re, sys
func_regex = re.compile("((def)|(class)) (?P<funcname>[^\(]+)\([^\)]*")
for stdin_line in sys.stdin.read().splitlines():
filename, _lineno, _ = stdin_line.split(":", 2)
lineno = int(_lineno)
fd = open(filename)
import cacheops, sys
from django import setup
setup()
from redis import Redis
from apps.feature_flags.backends.smart_redis import SmartRedisDict
from django.conf import settings
storage = Redis(**settings.FEATURE_FLAG_DB['connection'])
redis_dict = SmartRedisDict('gutter', storage)
encoded = {x:redis_dict.encoding.encode(y) for x,y in redis_dict.items()}
import json