Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
python

Jekyllz

💭
python
View GitHub Profile
@thunderpoot
thunderpoot / bas.bas
Last active Nov 22, 2021
Program for running BASIC one-liners from the TH prompt
View bas.bas
0 rem bas.bas - by underwood
1 rem usage: bas <single line of BASIC code>
10 if left$(arg$,1) = " " then arg$ = mid$(arg$,1) : goto 10
20 if asc(left$(arg$,1)) > 47 and asc(left$(arg$,1)) < 58 then arg$ = mid$(arg$,1) : goto 10
21 rem strip leading spaces and line numbers
30 arg$ = "1 " + arg$
31 rem prepend our line with line number 1
@mhoofman
mhoofman / minecraft.sh
Created Aug 4, 2011
Minecraft Server Shell Script
View minecraft.sh
#!/bin/bash
# original author : Relliktsohg
# Huge thanks to Maine for his incremental backup
# Thanks to endofzero for his improved update routine
#
# Installation:
# - Copy script into you minecraft server folder.
# - Allow the script to be executed (chmod +x minecraft.sh)
# - Check the rights of the script user. Every folder specified in config has to be available.
# - Edit the script to configure it (see configure section)