Skip to content

Instantly share code, notes, and snippets.

View catsby's full-sized avatar
🏠
Working from home

Clint catsby

🏠
Working from home
View GitHub Profile
@catsby
catsby / pr1234.patch
Created June 9, 2017 18:00
Test migration thing
From adc36385f91aeba390f3e095f2b584e792ba4399 Mon Sep 17 00:00:00 2001
From: clint shryock <clint@ctshryock.com>
Date: Thu, 8 Jun 2017 17:17:43 -0500
Subject: [PATCH 1/2] provider/aws: Add tag support for ebs_volume_snapshot
---
builtin/providers/aws/resource_aws_ami_test.go | 7 +++++++
builtin/providers/aws/resource_aws_ebs_snapshot.go | 14 ++++++++++++++
website/source/docs/providers/aws/r/ebs_snapshot.html.md | 7 ++++++-
3 files changed, 27 insertions(+), 1 deletion(-)
@catsby
catsby / keybase.md
Created November 28, 2016 16:29
keybase.md

Keybase proof

I hereby claim:

  • I am catsby on github.
  • I am catsby (https://keybase.io/catsby) on keybase.
  • I have a public key whose fingerprint is 887D 77A2 28F1 463A DB2A 17E1 675B B383 AB48 9648

To claim this, I am signing this object:

@catsby
catsby / etl.go
Created June 18, 2014 23:40
exercisms
package etl
import (
"strings"
)
func Transform(input map[int][]string) map[string]int {
m := make(map[string]int)
for k, v := range input {
@catsby
catsby / nope
Last active August 29, 2015 13:57
test
curl -X POST -d '{"text":"===== ===== ======= \n A B A and B \n===== ===== ======= \nFalse False False \nTrue False False \nFalse True False \nTrue True True \n===== ===== ======= \n"}' https://api.github.com/markdown
<p>===== ===== =======<br>
A B A and B<br>
===== ===== =======<br>
False False False<br>
True False False<br>
False True False<br>
True True True<br>
===== ===== ======= </p>%
@catsby
catsby / keybase.md
Created March 7, 2014 20:39
keybase.md

Keybase proof

I hereby claim:

  • I am catsby on github.
  • I am catsby (https://keybase.io/catsby) on keybase.
  • I have a public key whose fingerprint is A9E3 2F18 B535 5BDB AA6D 0A1D D468 181B 2818 F49A

To claim this, I am signing this object:

@catsby
catsby / rails_console.sh
Created January 23, 2014 20:29
rails issues
$ curl -i https://api.github.com/repos/rails/rails/issues\?per_page\=2 ⏎
HTTP/1.1 200 OK
Server: GitHub.com
Date: Thu, 23 Jan 2014 20:29:14 GMT
Content-Type: application/json; charset=utf-8
Status: 200 OK
X-RateLimit-Limit: 60
X-RateLimit-Remaining: 55
X-RateLimit-Reset: 1390512520
Cache-Control: public, max-age=60, s-maxage=60
@catsby
catsby / puma.rb
Created October 17, 2013 14:28
Example config/puma.rb file
preload_app!
min_threads = Integer(ENV['MIN_THREADS'] || 0)
max_threads = Integer(ENV['MAX_THREADS'] || 5)
threads min_threads, max_threads
workers Integer(ENV['WORKER_COUNT'] || 3 )
on_worker_boot do
ActiveSupport.on_load(:active_record) do
@catsby
catsby / shards.yml
Created October 10, 2013 19:12 — forked from eprothro/shards.yml
<%
require 'cgi'
require 'uri'
def attribute(name, value, force_string = false)
if value
value_string =
if force_string
'"' + value + '"'
else
@catsby
catsby / octopus.rb
Created October 10, 2013 19:00 — forked from eprothro/octopus.rb
module Octopus
def self.shards_in(group=nil)
config[Rails.env].try(:[], group.to_s).try(:keys)
end
def self.followers
shards_in(:followers)
end
class << self
alias_method :followers_in, :shards_in
alias_method :slaves_in, :shards_in