Skip to content

Instantly share code, notes, and snippets.

View gajop's full-sized avatar

Gajo Petrovic gajop

  • Meltin MMI
  • Japan
View GitHub Profile
DefaultStartScript = script.txt
Fullscreen = 1
HostPortDefault = 0
VSync = 1
ShowClock = 0
ShowFPS = 0
ShowPlayerInfo = 0
MoveWarnings = 0
local cmdConfig = {
{
command = "gamerules",
description = "Sets values of specific gamerules variables",
cheat = true,
suggestions = function(cmd, cmdParts)
local suggestions = {}
local param = cmdParts[2]
for index, rule in pairs(Spring.GetGameRulesParams()) do
if type(rule) == "table" then
@gajop
gajop / bash.py
Last active December 31, 2015 00:49 — forked from kirpit/bash.py
moved self.process line before the thread execution, to ensure self.process will exist
#! /usr/bin/env python
import threading
import subprocess
import traceback
import shlex
class Command(object):
"""
Enables to run subprocess commands in a different thread with TIMEOUT option.