Skip to content

Instantly share code, notes, and snippets.

View mykelalvis's full-sized avatar
🏠
Working from home

Mykel Alvis mykelalvis

🏠
Working from home
View GitHub Profile
#!/bin/bash
# hubot
# chkconfig: 345 20 80
# description: hubot
# processname: hubot
# REFERENCE: http://werxltd.com/wp/2012/01/05/simple-init-d-script-template/
HUBOT_INSTALL=${HUBOT_INSTALL:-/opt/hubot}
source ${HUBOT_INSTALL}/hubot.env
[DEBUG] Deploying to 'github:http://deliver8r.github.io/deliver8r-parent/site/0.0.4-SNAPSHOT/',
Using credentials from server id 'githubd8r'
[DEBUG] configureWagon
[DEBUG] configureWagon server ossrh
[DEBUG] configureWagon server central
[DEBUG] configureWagon server snapshots
[DEBUG] configureWagon server remote-repos
[DEBUG] configureWagon server githubd8r
[DEBUG] configureWagon server github
[DEBUG] repository protocol github
@mykelalvis
mykelalvis / Rip.java
Last active August 29, 2015 14:20 — forked from swankjesse/Rip.java
/*bin/mkdir /tmp/rip 2> /dev/null
javac -d /tmp/rip $0
java -cp /tmp/rip Rip "$@"
exit
*/
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;
import java.util.regex.Matcher;
#!/bin/bash
#
# transcode-video.sh
#
# Copyright (c) 2013-2014 Don Melton
#
# This script uses `HandBrakeCLI` (see: <http://handbrake.fr/>) to transcode a
# video file or disc image directory into a format and size similar to videos
# available for download from the iTunes Store.
#
DAYS=
cd /home
for a in *
do
pushd ${a}
find . -mtime +${DAYS} > /tmp/${a}.find
L=$(wc -l /tmp/${a}.find)
# [ ${L} -gt 2 ] && zip -mrq /tmp/${a}.zip .
popd
done