Skip to content

Instantly share code, notes, and snippets.

View tommeier's full-sized avatar

Tom Meier tommeier

View GitHub Profile
@tommeier
tommeier / upgrade_postgres_9.0.4-9.1.4.sh
Created July 17, 2012 04:35 — forked from databyte/upgrade_postgres_9.0-9.1.sh
Upgrade PostgreSQL from 9.0.4 to 9.1.4
#!/bin/sh
#
# Upgrade PostgreSQL from 9.0.4 to 9.1.4 via HomeBrew on Mac OSX
#
# by David Sommers (tweaked by me)
#
brew update
brew update postgres
@tommeier
tommeier / rsync_backup.sh
Created March 20, 2012 00:05
RSync backup script for Mac OSX from External drive
#!/bin/sh
echo "Running..."
PROG=$0
RSYNC="/usr/bin/rsync"
SCRIPT_MOUNTED='false'
MOUNT_VOLUME="/Volumes/Qdownload"
SRC="$MOUNT_VOLUME/transmission/completed/"
DST="/Users/tom/Dumping Ground/Qnap Downloads"
@tommeier
tommeier / install_rvm.sh
Created February 10, 2011 00:20
Install RVM via bash script - Flawless Victory!
function install_rvm {
#Instructions : http://rvm.beginrescueend.com/rvm/install/
echo "===> Installing RVM >>"
bash < <( curl http://rvm.beginrescueend.com/releases/rvm-install-head )
#Reload shell
. ~/.rvm/scripts/rvm
result=`type rvm | head -1`
echo "===> Result of testing RVM : '$result'"
@tommeier
tommeier / xvfb_daemon.sh
Created April 27, 2011 10:44
Xvfb startup init script for headless selenium with multiple displays for Jenkins or Teamcity CI server
#!/bin/bash
# /etc/init.d/xvfb_daemon
# Xvfb startup script.
# Tom Meier <tom@venombytes.com>
#
### BEGIN INIT INFO
# Provides: xvfb
# Short-Description: Start/stop/restart daemon
# Description: Controls the Xvfb daemon which starts/stops the X Virtual Framebuffer server
# Example Use:
@tommeier
tommeier / .htaccess
Last active August 19, 2020 03:55
Qnap Serviio Update Scripts
# reload after change "/etc/init.d/Qthttpd.sh restart"
php_value magic_quotes_gpc off
AuthName "Serviio - Admin Restricted Access (Use NAS admin credentials)"
AuthType Basic
# AuthUserFile /mnt/HDA_ROOT/rootfs_2_3_6/root/.htpasswd
AuthUserFile /mnt/HDA_ROOT/.config/shadow
AuthGroupFile /dev/null
# require valid-user
@tommeier
tommeier / avatar.perl
Created September 14, 2012 05:37
Run Gource over your git repo
#!/usr/bin/perl
#fetch Gravatars
use strict;
use warnings;
use LWP::Simple;
use Digest::MD5 qw(md5_hex);
my $size = 90;
@tommeier
tommeier / autorun-plexconnect.sh
Last active January 11, 2020 04:10
Plexconnect for Qnap (Intel - tested on 439 with Apple TV 3). Streaming media to Apple TV 3 from Qnap 439.
#!/bin/sh
# /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
# chmod +x /share/MD0_DATA/.qpkg/autorun/autorun-plexconnect.sh
curl -L https://gist.github.com/tommeier/6255771/raw/update_plex_connect.sh | bash &
@tommeier
tommeier / tommeier.pp
Last active October 18, 2019 18:07
Boxen puppet file to load my local box
class people::tommeier {
require ruby
include chrome
include firefox
include iterm2::dev
include sublime_text_2
include caffeine
@tommeier
tommeier / image_save.sh
Created July 16, 2012 01:00
Bash script to download list of image urls to a location
while read p; do
echo "SAVING : $p"
filename=$(basename "$p")
extension="${filename##*.}"
filename="${filename%.*}"
echo " -- Filename : $filename"
curl -o "/file/save/location/$filename.$extension" "$p"
done < /soure/url/list/image_list.txt
@tommeier
tommeier / oclint-json-compilation-database-parallel
Created August 29, 2014 01:25
oclint-json-compilation-database with parallel execution
#!/usr/bin/env python
# Test run with parallel
import os
import platform
import json
import argparse
import re
import subprocess
import sys