Skip to content

Instantly share code, notes, and snippets.

View dtjm's full-sized avatar

Sam Nguyen dtjm

  • Twilio SendGrid
  • Pacific Northwest
View GitHub Profile
$REPO=`git svn info | grep "Repository Root: " | sed -e 's/Repository Root: //'`
git branch -r | sed 's|^[[:space:]]*||' | grep -v '^tags/' > git-branch-list
svn ls $REPO/branches | sed 's|^[[:space:]]*||' | sed 's|/$||' > svn-branch-list
diff -u git-branch-list svn-branch-list | grep '^-' | sed 's|^-||' | grep -v '^trunk$' | grep -v '^--' > old-branch-list
for i in `cat old-branch-list`; do git branch -d -r "$i"; rm -rf .git/svn/refs/remotes/"$i"; done
rm -v old-branch-list svn-branch-list git-branch-list
@dtjm
dtjm / awssigner.js
Last active December 11, 2015 18:49
// Copyright 2007 Amazon Elena@AWS
// http://aws.amazon.com/code/developertools/1137
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
@dtjm
dtjm / haml_converter.rb
Created August 17, 2010 06:07 — forked from radamant/haml_converter.rb
Haml and Sass plugin for Jekyll 0.6.2
module Jekyll
require 'haml'
class HamlConverter < Converter
safe true
priority :low
def matches(ext)
ext =~ /haml/i
end