Skip to content

Instantly share code, notes, and snippets.

Caleb Jones calebjones

Block or report user

Report or block calebjones

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
# A script to update an RSS feed when player events happen in minecraft server log.
# Integrate with IFTTT or other RSS reader tools to get live alerts.
# For now, just monitors player join/leave events.
# Only keeps last 10 entries in RSS file (rotating out oldest ones).
# Requires: xmlstarlet, perl, uuidgen, and other typical Linux commands.
# Does not manage pid file.
# Cron example (run daily as user specific to this process - not as user who otherwise runs tail)
calebjones / minecraft-crontab
Created Aug 14, 2015
Linux Minecraft server crontab config
View minecraft-crontab
# Minute Hour Day of Month Month Day of Week Command
# (0-59) (0-23) (1-31) (1-12 or Jan-Dec) (0-6 or Sun-Sat)
# backup server every day at 4am
0 4 * * * /home/minecraft/minecraft/bin/minecraft backup
# clean daily backups (keep daily last 7 days, weekly for last 30 days, then once a month)
30 4 * * * /home/minecraft/
calebjones /
Last active Dec 12, 2017
Linux script to rotate backup files (keeps past 7 days then switches to weekly for the past 30 days then keeps only monthly files)
# backup location with daily files
# format: .*_[DATE]_.*
# date format: YYYY-MM-DD
if [ -z "$backupLocation" ]; then
echo 'Must set $backupLocation'
exit 1
calebjones / minecraft
Last active Dec 12, 2017
Linux script to manage minecraft server
View minecraft
# Provides: minecraft
# Required-Start: $local_fs $remote_fs screen-cleanup
# Required-Stop: $local_fs $remote_fs
# Should-Start: $network
# Should-Stop: $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description: Minecraft server
calebjones /
Created Jul 10, 2015
Change-aware Minecraft backup script
dateStr="`date +"%Y%m%d%H%M"`"
#echo "tarFileName: ${tarFileName}"
cd "/Users/USERNAME/Library/Application Support/minecraft"
lastBackupFile=`ls -rt | grep $fileNamePrefix | awk 'NR==0; END{print}'`
View gist:a7b6f977eb1bfe67f27e
Verifying that +calebjones is my openname (Bitcoin username).
You can’t perform that action at this time.