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
| ## Cleanly recovers from a crash event. | |
| IFS=$'\n' | |
| MC="/Users/steve/Minecraft" | |
| LOG="$MC/logs/latest.log" | |
| ALERT="$MC/scripts/alert-admin.sh" | |
| error="$2" | |
| if [ -n "$error" ]; then | |
| path="`echo "$error" | cut -f 8 -d " "`" |
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 | |
| export LANG="en_US.UTF-8" | |
| MC=/Users/steve/Minecraft | |
| # Many of these options are explaiend here: | |
| # http://stas-blogspot.blogspot.com/2011/07/most-complete-list-of-xx-options-for.html | |
| # http://www.oracle.com/technetwork/java/javase/tech/vmoptions-jsp-140102.html | |
| # http://blog.ragozin.info/2011/09/hotspot-jvm-garbage-collection-options.html |
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 | |
| ## Just a link, without the [Server] prepend. This is used by link-triggers.sh. | |
| MC="/path/to/server" | |
| WGET="/opt/local/bin/wget" | |
| W3M="/opt/local/bin/w3m" | |
| function urldecode { | |
| echo -e "$(sed 's/+/ /g;s/%\(..\)/\\x/g;')" |
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 | |
| ## A small wrapper around the mcrcon binary. | |
| ## | |
| ## See: https://forums.bukkit.org/threads/admin-rcon-mcrcon-remote-connection-client-for-minecraft-servers.70910/ | |
| MC="/path/to/server" | |
| RCON_EXEC="$MC/scripts/gits/mcrcon-code/mcrcon" | |
| RCON_HOST="127.0.0.1" | |
| RCON_PORT=25577 |
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
| // ==UserScript== | |
| // @name btc-e-no-chat | |
| // @namespace https://gist.github.com/inertia186/5298810 | |
| // @version 0.1 | |
| // @description Hide the chat window on BTC-e. | |
| // @match *://btc-e.com/* | |
| // ==/UserScript== | |
| /** | |
| * Don't like the vulgarities and idiocy in the BTC-e chat (aka troll box) |
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 | |
| MC="/Users/steve/Minecraft" | |
| LOG="$MC/server.log" | |
| MESSAGE="We are not falling for it. This is not the server you are looking for. Move along." | |
| for player in `tail -50 $LOG | grep -i "i'm\|im\|i am" | grep -i from | grep -i planet | grep -i minecraft | cut -f 4 -d " " | cut -f 2 -d \< | cut -f 1 -d \> | sort | uniq` | |
| do | |
| if [ -n "`tail -100000 $LOG | grep "Kicked $player from the game: '$MESSAGE'"`" ]; then |
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 | |
| MC="/Users/steve/Minecraft" | |
| RUBY="/Users/steve/.rvm/rubies/ruby-1.9.3-p374/bin/ruby" | |
| if [ -z "$1" ]; then | |
| echo $0 \[target\] | |
| fi | |
| target=$1 |
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
| 70.71.153.43 | |
| 111.197.56.176 | |
| 111.197.63.35 | |
| 114.250.244.70 | |
| 203.171.233.243 | |
| 221.219.250.74 | |
| 65.125.155.90 | |
| 85.227.160.171 | |
| 204.14.77.46 | |
| 174.134.89.68 |
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
| Gem::Specification.new do |s| | |
| s.name = 'mc-slap' | |
| s.version = '0.0.1' | |
| s.platform = Gem::Platform::RUBY | |
| s.author = 'Anthony Martin' | |
| s.email = '[email protected]' | |
| s.summary = 'Minecraft Slap' | |
| s.description = 'Minecraft themed slap script.' | |
| s.files = ['mc-slap.rb'] |
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
| cmd="say $1 will be banned in 15 seconds. Reason: $2" | |
| bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" | |
| sleep 15 | |
| cmd="ban $1 $2" | |
| bash -c "screen -p 0 -S minecraft -X eval 'stuff \"$cmd\"\015'" |