Skip to content

Instantly share code, notes, and snippets.

💭
oh bother

Don Smith theraccoonbear

💭
oh bother
  • Madison, WI
Block or report user

Report or block theraccoonbear

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@theraccoonbear
theraccoonbear / slideshow.sh
Created Sep 15, 2019
Generate a slideshow of images for cover art trivia
View slideshow.sh
#!/bin/bash
# Generate a slideshow of images for cover art trivia.
# Files should be named like {SORT-NUMBER} blah blah blah.jpg
for f in *.jpg; do
num=$(echo $f | sed -En "s/^([0-9]+).+?/\1/p")
formatNum="$((10#$num + 1 - 1))"
output=final_$num.jpg
echo "Processing $f file...";
@theraccoonbear
theraccoonbear / gist:e8a2c127b306745bf7e4
Created Oct 21, 2015
Composer Installation on HostMonster
View gist:e8a2c127b306745bf7e4
/usr/bin/php56s -d register_argc_argv=1 "./composer.phar" install
@theraccoonbear
theraccoonbear / make_db_ssh_tunnel.sh
Last active Aug 29, 2015 — forked from camsaul/make_db_ssh_tunnel.sh
Make a SSH Tunnel to a Postgres DB hosted in Vagrant VM
View make_db_ssh_tunnel.sh
#! /bin/bash
ssh -L 5555:localhost:5432 vagrant@localhost -p 2222 -i ~/.vagrant.d/insecure_private_key -fNg # local port 5555 <-> Vagrant port 5432
You can’t perform that action at this time.