Skip to content

Instantly share code, notes, and snippets.

@AsaAyers
AsaAyers / CleanBranches.sh
Last active June 2, 2021 15:03
Script for cleaning up merged branches
#!/bin/bash
# This script was written with the following assumptions:
# * you have two remotes: `upstream` and `origin`.
# * you only ever push to `origin`
# For most projects this would be master, but dev is our main branch
DEFAULT_BRANCH="dev"
@miletbaker
miletbaker / map_tile.rb
Created October 9, 2011 19:11
Ruby script to scale and crop an image into overlay or map tiles for use with Google Maps API, Javascript for display custom map tiles below.
#! /usr/bin/ruby -w
require 'rubygems'
require 'rmagick'
require 'fileutils'
include Magick
ARGV.each do |file|
puts "Processing #{file}"