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 / 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
@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 / 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 / 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 / work
Created April 23, 2013 20:35
work is a small script which attaches to a particularly named tmux session if available, and creates it if not.
#!/bin/sh
## work is written by Alexander Bauer and released under GPL 3+, the
## full text of which can be found in /usr/share/common-licenses.
#
# The purpose of this script is to attach to a tmux session of a
# particular name if it exists, or create it if it does not.
#
# SESSION is the name of the tmux session.
SESSION="$USER-work"
@alexander-bauer
alexander-bauer / downloadkey.sh
Created May 3, 2013 20:53
This script uses simple utilities to download a GPG public key over http and import it to the keyring.
#!/bin/bash
## downloadkey.sh
##
## © 2013 Alexander Bauer, released under GPL-3+
## The full text of GPL-3 can be found in /usr/share/common-licenses
##
#
# This script uses simple utilities to download a GPG public key over
# http and import it to the keyring.
#
@alexander-bauer
alexander-bauer / blog
Last active December 20, 2015 16:18
Small utility for composing trofaf blogposts
#!/bin/bash
#
## blog
#
# This script creates a temporary file with [trofaf][] header data and
# opens it with an editor. When this is saved and closed, the file is
# moved to a particular directory with a title given either as the
# first argument, or read on the command line after completion.
#
# Once the file has been successfully renamed to markdown, if REGENDIR
#!/bin/sh
#
## convert.sh
#
# This script is used to convert all of the WAV audio files of a given
# artist/album pair to a different encoding.
#
# usage:
# convert.sh [artist] [album]
@alexander-bauer
alexander-bauer / .gitignore
Last active August 29, 2015 14:01
Create printable LTO3 barcode labels with specific parameters
*.ps
*~
*#*
@alexander-bauer
alexander-bauer / keybase.md
Last active August 29, 2015 14:16
keybase.md

Keybase proof

I hereby claim:

  • I am alexander-bauer on github.
  • I am alexanderbauer (https://keybase.io/alexanderbauer) on keybase.
  • I have a public key whose fingerprint is C1B8 130E 68FA 7080 C99C 2504 8191 E21A 76AA D89B

To claim this, I am signing this object: