This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
SPP=150 | |
#WIDTH=950 | |
#HEIGHT=540 | |
WIDTH=1920 | |
HEIGHT=1080 | |
CPULOAD=100 | |
THREADS=3 | |
SCENE=syc_zig |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# vim: set filetype=python: | |
def townFilter(poi): | |
if poi['id'] == 'Town': | |
return poi['name'] | |
def signFilter(poi): | |
if poi['id'] == 'Sign' or poi['id'] == 'minecraft:sign': | |
if poi['Text1'].startswith('Image:'): | |
poi['icon'] = "painting_icon.png" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
SVRMSG=$1 | |
USERNAME='mc' | |
BOT='AardMC' | |
CHANNEL='#minecraft' | |
SERVICE='AardMC.jar' | |
SCREEN='mc' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# $Id: minecraft,v 1.9 2011/10/04 04:29:02 cnaude Exp $ | |
# | |
# /etc/rc.d/minecraft | |
# PROVIDE: minecraft | |
# REQUIRE: LOGIN | |
#Settings |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static void main(String[] args) { | |
randomGenerator = new Random(); | |
int c = 4; | |
int count = 0; | |
for (int x = 0; x <= 30; x++) { | |
int r = randomGenerator.nextInt(100); | |
if (r >= c) { | |
System.out.println("Drop: " + r); | |
} else { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
my $date = localtime(time); | |
my $log_file = "/home/mc/tekkit/server.log"; | |
my $re = '^\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d \[SEVERE\] The server has stopped responding.*?'; | |
print "[$date] Watching $log_file\n"; | |
print "[$date] RE: $re\n"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
use strict; | |
for my $i (1..16420) { | |
system("wget -O data/bf.$i.html 'http://forums.bukkit.org/members/?page=$i'"); | |
sleep 2; | |
} |
NewerOlder