Skip to content

Instantly share code, notes, and snippets.

Avatar

Thomas Vendetta thomasv314

View GitHub Profile
View gist:2c9b3d4947d6d2017802161e8aa5d138
### 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:
View aws_glue_catalog_table recreate err.txt
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
View gist:47959b9db923aff6d50b4a73400220e2

Video: http://rubyhoedown2008.confreaks.com/08-chris-wanstrath-keynote.html

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.

View test.csv
name team list
thomas cloudeng foo,bar,etc
travis data abc,def,ghi
View tmux.conf
# 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
View featured_streamers_controller.rb
View set-hostname-from-ec2-metadata.sh
#!/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
View run_local_squid_proxy.sh
#!/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=$?
View setup-cloudwatch-logs.py
#!/usr/bin/python
# Copyright 2014 Amazon.com, Inc. or its affiliates. All Rights Reserved.
#
# Licensed under the Amazon Software License (the "License"). You may not use
# this file except in compliance with the License. A copy of the License is
# located at http://aws.amazon.com/asl/ or in the "license" file accompanying
# this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
# CONDITIONS OF ANY KIND, either express or implied. See the License for the specific
# language governing permissions and limitations under the License.