This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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'" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
#fetch Gravatars | |
use strict; | |
use warnings; | |
use LWP::Simple; | |
use Digest::MD5 qw(md5_hex); | |
my $size = 90; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class people::tommeier { | |
require ruby | |
include chrome | |
include firefox | |
include iterm2::dev | |
include sublime_text_2 | |
include caffeine |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# Test run with parallel | |
import os | |
import platform | |
import json | |
import argparse | |
import re | |
import subprocess | |
import sys |
NewerOlder