Skip to content

Instantly share code, notes, and snippets.

View nsmith's full-sized avatar
🍕
Eat pizza get strong

Nathan Smith nsmith

🍕
Eat pizza get strong
  • Amazon
  • Seattle, WA
View GitHub Profile
/usr/bin/etcdctl set /databases/mysql-1 `/usr/bin/docker run --link mysql-1:mysql --rm mysql sh -c 'echo mysql://root:$MYSQL_ENV_MYSQL_ROOT_PASSWORD@$MYSQL_PORT_3306_TCP_ADDR:$MYSQL_PORT_3306_TCP_PORT/wink_hub_api'`
/usr/bin/docker run -i --link mysql-1:mysql --rm mysql sh -c 'exec mysql -u root -p"$MYSQL_ENV_MYSQL_ROOT_PASSWORD" -h"$MYSQL_PORT_3306_TCP_ADDR" -P"$MYSQL_PORT_3306_TCP_PORT"' < /home/core/create.sql
/usr/bin/etcdctl set /domains/winkapp <winkapp domain example http://10.0.1.1:3000/hubs/me>
/usr/bin/etcdctl set /agent-ips/agent-1 <public ip example 10.0.1.1>
#!/bin/sh
# Some things taken from here
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
# Set the colours you can use
black='\033[0;30m'
white='\033[0;37m'
red='\033[0;31m'
green='\033[0;32m'
@nsmith
nsmith / hammerspoon.lua
Created April 2, 2018 04:11
Hammerspoon Config
local mash = {"cmd", "alt", "ctrl"}
local mashshift = {"cmd", "alt", "shift"}
ext = {}
ext.grid = {}
ext.grid.MARGINX = 5
ext.grid.MARGINY = 5
ext.grid.GRIDWIDTH = 3