Skip to content

Instantly share code, notes, and snippets.

View thomasem's full-sized avatar
👻

Thomas Maddox thomasem

👻
View GitHub Profile
@thomasem
thomasem / .zshrc
Created June 26, 2018 13:55 — forked from bmhatfield/.zshrc
OSX Keychain Environment Variables
# If you use bash, this technique isn't really zsh specific. Adapt as needed.
source ~/keychain-environment-variables.sh
# AWS configuration example, after doing:
# $ set-keychain-environment-variable AWS_ACCESS_KEY_ID
# provide: "AKIAYOURACCESSKEY"
# $ set-keychain-environment-variable AWS_SECRET_ACCESS_KEY
# provide: "j1/yoursupersecret/password"
export AWS_ACCESS_KEY_ID=$(keychain-environment-variable AWS_ACCESS_KEY_ID);
export AWS_SECRET_ACCESS_KEY=$(keychain-environment-variable AWS_SECRET_ACCESS_KEY);
@thomasem
thomasem / diablo3.md
Last active September 17, 2017 15:56
Diablo III Cheatsheet

Diablo III Cheatsheet (Season 11)

Gem notes

  • 27 Imperial + 2 Death's Breath = Flawless Royal
  • 9 Flawless Imperial + 2 Death's Breath = Flawless Royal
  • Upgrade all gems to imperial, no further (Imperial gems are used for re-rolling jewelry).
  • When upgrading Legendary Gems, remember to get 100% chance of upgrade, the GR level must be 14 above the current level of the gem. Don't forget to account for the progression of the gem while upgrading. So, if you have expect 5 chances for upgrade, you'll actually need to go for 19 GR levels above the gem's current level.
  • Numlock Auto Caster - Numpad N + Numlock, Release

Paragon Priorities

@thomasem
thomasem / .bash_profile
Created April 4, 2017 20:17
Handy ~/.bash_profile for showing current global python and virtualenv from pyenv
# SETUP CONSTANTS
# Bunch-o-predefined colors. Makes reading code easier than escape sequences.
# I don't remember where I found this. o_O
# Reset
Color_Off="\[\033[0m\]" # Text Reset
# Regular Colors
Black="\[\033[0;30m\]" # Black
Red="\[\033[0;31m\]" # Red
@thomasem
thomasem / errors
Created January 31, 2017 22:17
Craton functional tests failing on Mac OS X (10.12.3 (16D32)) w/ Docker for Mac 1.13.0
...
======================================================================
ERROR: craton.tests.functional.test_cell_calls.APIV1CellTest.test_cell_create_with_duplicate_name_fails
----------------------------------------------------------------------
testtools.testresult.real._StringException: Traceback (most recent call last):
File "/Users/thom6165/openstack/craton/craton/tests/functional/test_cell_calls.py", line 7, in setUp
super(APIV1CellTest, self).setUp()
File "/Users/thom6165/openstack/craton/craton/tests/functional/__init__.py", line 180, in setUp
setup_database(self.service_ip)
$ docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
8df9cbff0a7f cirros "sh -c 'while true; d" 9 minutes ago Up About a minute 7c35d9cb-7ec0-4d20-9b0c-3c7394914e99-n1/test-default
0e0969bbd43f carina/consul "/entrypoint.sh agent" 4 days ago Up About a minute 7c35d9cb-7ec0-4d20-9b0c-3c7394914e99-n1/carina-svcd