Skip to content

Instantly share code, notes, and snippets.

@jbott
jbott / init.sh
Created Jun 19, 2015
Minecraft init script for tmux
View init.sh
#!/bin/sh
# Go to script directory
BINDIR=$(dirname "$(readlink -fn "$0")")
cd "$BINDIR"
### Configuration ###
XMS="1G"
XMX="1G"
JAR="minecraft_server.jar"
JAVA_BIN="../java/jdk1.8.0_45/bin"
@jbott
jbott / mqtt-tree.py
Last active Aug 29, 2015
MQTT Tree in python, very rough
View mqtt-tree.py
#pip install paho-mqtt
#pip install git+https://github.com/mbr/asciitree.git
import asciitree
import paho.mqtt.client as mqtt
import sys
from collections import defaultdict
from time import sleep
tr = asciitree.LeftAligned()
@jbott
jbott / add_metro_pl_models.lua
Created Jul 12, 2014
MetroPlayerModels Garry's Mod
View add_metro_pl_models.lua
AddCSLuaFile()
player_manager.AddValidModel("ranger1", "models/metro2033/nikout/ranger1.mdl")
player_manager.AddValidModel("ranger1_pl", "models/metro2033/nikout/player/ranger1.mdl")
player_manager.AddValidModel("ranger2_pl", "models/metro2033/nikout/player/ranger2.mdl")
You can’t perform that action at this time.