Skip to content

Instantly share code, notes, and snippets.

@hexparrot
hexparrot / install_mineos
Last active March 17, 2020 22:03
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems.
#!/bin/sh
# update repositories
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install screen python-pip rdiff-backup git openjdk-7-jre-headless
pip2 install cherrypy==3.2.3
# download the most recent mineos web-ui files from github
@hexparrot
hexparrot / install_mineos
Last active September 8, 2018 05:04 — forked from hexparrot/install_mineos
Downloads, installs and configures components required for the MineOS Web User Interface on yum based systems.
#!/bin/sh
# download the necessary prerequisite components for mineos
yum -y install screen git wget java-1.7.0-openjdk.x86_64 openssl openssl-devel
yum -y groupinstall "Development tools"
# download rdiff-backup rpm
mkdir -p ~/mineos-setup
cd ~/mineos-setup
wget http://pkgs.repoforge.org/rdiff-backup/rdiff-backup-1.2.8-4.el6.rf.x86_64.rpm
@hexparrot
hexparrot / install_mineos
Last active August 29, 2015 13:58 — forked from hexparrot/install_mineos
Downloads, installs and configures components required for the MineOS Web User Interface on pacman based systems.
#!/bin/sh
# download the necessary prerequisite components for mineos
pacman -S --noconfirm screen wget git rsync rdiff-backup python2-pip jre7-openjdk
pip2 install cherrypy==3.2.3
# download the most recent mineos web-ui files from github
mkdir -p /usr/games
cd /usr/games
git clone git://github.com/hexparrot/mineos minecraft
@hexparrot
hexparrot / mineos_monitor
Created June 17, 2014 22:22
Minecraft Server Status Monitor
#!/usr/bin/env python2.7
"""A python script to manage minecraft servers
Designed for use with MineOS: http://minecraft.codeemo.com
Will start servers based on the [onreboot][start] value in server.config
"""
__author__ = "William Dizon"
__license__ = "GNU GPL v3.0"
__version__ = "0.6.0"
__email__ = "wdchromium@gmail.com"
@hexparrot
hexparrot / install_mineos
Last active August 29, 2015 14:04 — forked from hexparrot/install_mineos
Downloads, installs and configures components required for the MineOS Web User Interface on zypper-based systems.
#!/bin/sh
# download the necessary prerequisite components for mineos
zypper -n remove patterns-openSUSE-minimal_base-conflicts
zypper -n install screen
zypper -n install openssl
zypper -n install libopenssl-devel
zypper -n install git
zypper -n install java-1_7_0-openjdk-headless
zypper -n install python-xml
@hexparrot
hexparrot / install_mineos-node
Last active June 18, 2022 14:44
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems.
#!/bin/sh
# update repositories
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install nodejs supervisor git rdiff-backup screen build-essential default-jre-headless
# download the most recent mineos web-ui files from github
@hexparrot
hexparrot / install_mineos-node
Last active October 4, 2020 03:55
Downloads, installs and configures components required for the MineOS Web User Interface on apt-get based systems using systemd.
#!/bin/sh
# update repositories
curl -sL https://deb.nodesource.com/setup_10.x | bash -
apt-get update
# download the necessary prerequisite components for mineos
apt-get -y install -y nodejs git rdiff-backup screen build-essential openjdk-8-jre-headless
# download the most recent mineos web-ui files from github
@hexparrot
hexparrot / install_mineos-node
Last active August 30, 2018 17:11
Downloads, installs and configures components required for the MineOS Web User Interface on pacman based systems using systemd.
#!/bin/sh
# download the necessary prerequisite components for mineos
pacman -S --noconfirm git rsync rdiff-backup screen jre8-openjdk-headless nodejs npm base-devel
# download the most recent mineos web-ui files from github
mkdir -p /usr/games
cd /usr/games
git clone https://github.com/hexparrot/mineos-node.git minecraft
cd minecraft
@hexparrot
hexparrot / install_mineos-node
Last active February 10, 2020 15:45
Downloads, installs and configures components required for the MineOS Web User Interface on rpm based systems using systemd.
#!/bin/sh
# update repositories
#yum update
# download the necessary prerequisite components for mineos
curl -sL https://rpm.nodesource.com/setup_10.x | bash -
yum -y install screen git wget java-1.8.0-openjdk-headless.x86_64 openssl openssl-devel
yum -y groupinstall "Development tools"
yum -y install nodejs
@hexparrot
hexparrot / fwtest.js
Created November 12, 2015 18:40
Fireworm broadcasts events twice
var fireworm = require('fireworm')
var path = require('path')
var fs = require('fs')
var mkdirSync = function (path) {
try {
fs.mkdirSync(path);
} catch(e) {
if ( e.code != 'EEXIST' ) throw e;
}