Skip to content

Instantly share code, notes, and snippets.

View thomasv314's full-sized avatar

Thomas Vendetta thomasv314

View GitHub Profile
vim.g.terraform_module_path = '/Users/%s/new/code/terraform-modules/%s'
local function extract_and_replace_source()
local line_number = vim.api.nvim_win_get_cursor(0)[1]
local line = vim.api.nvim_get_current_line()
local git_match = line:match 'source%s*=%s*"[email protected]:[^/]+/[^/]+.git//([^?"]+)'
if git_match then
local module_path = git_match
### Keybase proof
I hereby claim:
* I am thomasv314 on github.
* I am vendetta (https://keybase.io/vendetta) on keybase.
* I have a public key ASDKtr6vos3dFvA3NhT9jEwoAT91qJfOLs4eS2t-Xdyh5Qo
To claim this, I am signing this object:
@thomasv314
thomasv314 / aws_glue_catalog_table recreate err.txt
Created April 3, 2019 16:10
aws_glue_catalog_table recreate err
aws_glue_catalog_database.aws_glue_catalog_database: Refreshing state... (ID: XXXXXXXXXX:TvendettaMyCatalogDatabase)
aws_glue_catalog_table.aws_glue_catalog_table: Refreshing state... (ID: XXXXXXXXXX:TvendettaMyCatalogDatabase:MyCatalogTable)
Error: Error refreshing state: 1 error(s) occurred:
* aws_glue_catalog_table.aws_glue_catalog_table: 1 error(s) occurred:
* aws_glue_catalog_table.aws_glue_catalog_table: aws_glue_catalog_table.aws_glue_catalog_table: Error reading Glue Catalog Table: EntityNotFoundException: Table mycatalogtable not found.
status code: 400, request id: xxx
{ "foo": "bar" }

Hi everyone, I'm Chris Wanstrath.

When Jeremy asked me to come talk, I said yes. Hell yes. Immediately. But then I took a few moments and thought, Wait, why? Why me? What am I supposed to say that's interesting? Something about Ruby, perhaps. Maybe the future of it. The future of something, at least. That sounds keynote-y.

name team list
thomas cloudeng foo,bar,etc
travis data abc,def,ghi
# prefix + r to source config
unbind r
bind r source-file ~/.tmux.conf
# Mouse mode
set-option -g mouse on
# address vim mode switching delay (http://superuser.com/a/252717/65504)
set -s escape-time 0
#!/bin/bash
instance_id=$(curl http://169.254.169.254/latest/meta-data/instance-id)
echo "$instance_id-server" > /etc/hostname
hostname -F /etc/hostname
#!/bin/bash
SQUID_DOCKER_IMAGE="sameersbn/squid"
SQUID_DOCKER_VERSION="3.3.8-23"
SQUID_DOCKER_FQN="$SQUID_DOCKER_IMAGE:$SQUID_DOCKER_VERSION"
CONTAINER_NAME="squid"
function pull_image_if_missing() {
docker inspect $SQUID_DOCKER_FQN &> /dev/null
image_exists=$?