Skip to content

Instantly share code, notes, and snippets.

View gmmeyer's full-sized avatar
:shipit:
shipit

Greg Meyer gmmeyer

:shipit:
shipit
View GitHub Profile

Keybase proof

I hereby claim:

  • I am gmmeyer on github.
  • I am gmmeyer (https://keybase.io/gmmeyer) on keybase.
  • I have a public key whose fingerprint is 50FA BE94 484C 16C7 D232 6928 BFAE 6C53 A44D E6C6

To claim this, I am signing this object:

#!/bin/sh
addresses='/ /another-route /yet-another-route /yet-one-more-route /route/subroute'
base_address='https://my-website-address.io'
times='20'
bash_loop(){
for address in $addresses; do
case 'redis':
// default session store for using Redis
sessionStore = 'connect-redis';
// TODO: are there default options that should be applied here?
break;
case 'connect-redis':
// TODO: are there default options that should be applied here?
break;
@gmmeyer
gmmeyer / tmux.md
Last active August 29, 2015 14:07 — forked from andreyvit/tmux.md

tmux cheat sheet

(C-x means ctrl+x, M-x means alt+x)

Prefix key

The default prefix is C-b. If you (or your muscle memory) prefer C-a, you need to add this to ~/.tmux.conf:

remap prefix to Control + a

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

# you can make a text file of request times (in ms, one number per line) and import it here, or you can use a probability distribution to simulate request times (see below where setting req_durations_in_ms)
# rq = read.table("~/Downloads/request_times.txt", header=FALSE)$V1
# argument notes:
# parallel_router_count is only relevant if router_mode is set to "intelligent"
# choice_of_two, power_of_two, and unicorn_workers_per_dyno are only relevant if router_mode is set to "naive"
# you can only select one of choice_of_two, power_of_two, and unicorn_workers_per_dyno
run_simulation = function(router_mode = "naive",
reqs_per_minute = 9000,