Skip to content

Instantly share code, notes, and snippets.

View deepthawtz's full-sized avatar
👩‍🎤
singin'

Dylan Clendenin deepthawtz

👩‍🎤
singin'
  • Venmo
  • San Francisco, CA
View GitHub Profile
git config --global url."https://${GITHUB_TOKEN}:x-oauth-basic@github.com/".insteadOf "https://github.com/"
@deepthawtz
deepthawtz / ebs_tagger.go
Last active November 14, 2017 11:58
wrote this utility to copy AWS tags from EC2 instances to the EBS volumes they mount
package main
import (
"fmt"
"log"
"time"
"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/ec2"
@deepthawtz
deepthawtz / gist:2314841
Created April 5, 2012 22:58 — forked from dx7/gist:1333785
Installing ruby-debug with ruby-1.9.3-p0
# Install with:
# bash < <(curl -L https://raw.github.com/gist/1333785)
#
# Reference: http://blog.wyeworks.com/2011/11/1/ruby-1-9-3-and-ruby-debug
echo "Installing ruby-debug with ruby-1.9.3-p0 ..."
curl -OL http://rubyforge.org/frs/download.php/75414/linecache19-0.5.13.gem
curl -OL http://rubyforge.org/frs/download.php/75415/ruby-debug-base19-0.11.26.gem
@deepthawtz
deepthawtz / kung_pao_tofu.md
Created November 21, 2011 04:37
Kung Pao Tofu that I love to make

Vegan/Gluten-Free Kung Pao Tofu

(for 4 servings)

Sauce base

  • 1/2 cup brown rice syrup
  • 1/4 cup rice wine vinegar
  • 2 1/2 teaspoons cornstarch (for thickening)
  • 2 teaspoons tamari (or soy sauce)
require "rubygems"
require "builder"
builder = Builder::XmlMarkup.new
xml = builder.bla "☃"
puts xml
__END__
<bla>&#9731;</bla>
@deepthawtz
deepthawtz / entry.xml
Created August 16, 2011 21:40 — forked from anonymous/gist:1066909
Zendesk API failing with 406
<entry>
<forum-id>21</forum-id><title><![CDATA[Quick Start]]></title><body><![CDATA[
<h1><a name="quick_start" id="quick_start">Quick Start</a></h1>
<div class="level1">
<p>
<style type="text/css">
div.quickstart {clear:both; float:left; width: 832px; margin-top: -30px;}
.quickstart ul {clear:both !important; float:left !important; line-height:0 !important; margin:0px !important; padding:0px !important;}
@deepthawtz
deepthawtz / rendering_benchmark.rb
Created July 13, 2011 18:47
this is something I see people do a lot
require "rubygems"
require "benchmark"
require "action_view"
obj = {
:stuff => %w[ ant bee cat dog eel fly gnu ],
:yeah => {
:nacho => "cheese"
},
:junk => [12,2312,223,33,434,45,454,345345,213,32,32,45,45,54,45,456,56,56,234,34,34,56,56,56,56,56,5677,567,234,34,234,345,345,435,345,3456]
require "benchmark"
N = 300_000
Benchmark.bmbm do |x|
x.report("define_method") do
class Foo
(1..N).each do |i|
define_method "method_#{i}".to_sym do
"bla_#{i}"
end
diff --git a/Library/Formula/mysql.rb b/Library/Formula/mysql.rb
index 43962b6..c504dd7 100644
--- a/Library/Formula/mysql.rb
+++ b/Library/Formula/mysql.rb
@@ -2,8 +2,8 @@ require 'formula'
class Mysql <Formula
homepage 'http://dev.mysql.com/doc/refman/5.1/en/'
- url 'http://mysql.mirrors.pair.com/Downloads/MySQL-5.1/mysql-5.1.57.tar.gz'
- md5 '8d6998ef0f2e2d1dac2a761348c71c21'