Skip to content

Instantly share code, notes, and snippets.

View alexander-bauer's full-sized avatar

Alexander Bauer alexander-bauer

  • Baltimore, Maryland
View GitHub Profile
@alexander-bauer
alexander-bauer / vup
Created November 7, 2012 01:03
Bash script for upping version numbers and creating git tags
#!/bin/bash
# This script bumps the version number of a Go project. The variable "Version"
# should be declared as a constant in the file that matches the name of the
# project. For example, a project contained in example/ should declare Version
# in example.go.
#
# To use: vup <level>
#
# <level> is the depth of the bump, determined by number of periods
# to the left of the number. For example, bumping v1 to v2 is a level
@alexander-bauer
alexander-bauer / gourcesave.sh
Created October 16, 2012 02:27
Small script to wrap using gource and ffmpeg to save repository visualizations to files
#!/bin/sh
# This script is meant to act as a wrapper to gource, and creates a
# movie file (with the supplied file extension,) at 60fps and of the
# given number of seconds per day.
#
# Please see https://code.google.com/p/gource for information on
# gource.
#
if [ -z $1 ]
@alexander-bauer
alexander-bauer / gitfix.sh
Created October 16, 2012 00:55
git authorship and email adjustment
#!/bin/sh
# This script uses git filter-branch to adjust author names and
# emails. No success is garuenteed. Usage is as follows:
#
# gitfix.sh --name|--email oldValue newValue
#
OLDVALUE=$2
NEWVALUE=$3
@alexander-bauer
alexander-bauer / Grey's CJDNS Password Generator
Created August 22, 2012 04:52
Script for generating credentials and formatting connection information for adding new peers on cjdns
#!/bin/bash
# usage: makepass <username>
# Requires: makepasswd
# This script is a peering details generator
# for CJDNS
# Functional script written by Grey
# Bells, whistles, and additional usefulness added by SashaCrofter