Skip to content

Instantly share code, notes, and snippets.

@jhead
jhead / fePruneBackups.sh
Created April 29, 2015 06:55
Prunes ForgeEssentials backups (probably badly)
#!/bin/bash
BASE=$(pwd)
TEMPDIR="temp"
DELAY=2
echo "Running from: $BASE"
echo "Starting in $DELAY seconds..."
sleep $DELAY
mkdir -p ./$TEMPDIR
import crypto from 'crypto';
import { EventEmitter } from 'events';
import fs from 'fs';
class ChunkedFileHasher extends EventEmitter {
constructor(path, chunkSize = 512) {
super();
this.paused = true;
@jhead
jhead / identifySpigot.sh
Last active January 18, 2016 10:04
P.S. gunfighterj - I stole your sums list ;)
#!/bin/bash
SUMS_URL="http://s3.amazonaws.com/cubedhost-prisma/spigot/sums"
JENKINS_URL="http://ci.md-5.net/job/Spigot"
if [ -z $1 ]; then
echo "A tool which tries to identify hash, build #, and full version for an arbitrary Spigot jar file."
echo
echo "Usage: ./identifySpigot <spigot.jar>"
echo
exit 1
[Unit]
Description=phantom
[Service]
Type=simple
ExecStart=/path/to/phantom-linux -server lax.mcbr.cubed.host:19132
[Install]
WantedBy=multi-user.target