Skip to content

Instantly share code, notes, and snippets.

View pironic's full-sized avatar
💭
taking names and chewing bubblegum

Michael Writhe pironic

💭
taking names and chewing bubblegum
View GitHub Profile
@pironic
pironic / config.yml
Created April 8, 2011 16:06
WorldEdit default Config file.
#
# WorldEdit's configuration file
#
# About editing this file:
# - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
# you use an editor like Notepad++ (recommended for Windows users), you
# must configure it to "replace tabs with spaces." In Notepad++, this can
# be changed in Settings > Preferences > Language Menu.
# - Don't get rid of the indents. They are indented so some entries are
# in categories (like "max-blocks-changed" is in the "limits"
@pironic
pironic / config.yml
Created April 8, 2011 16:09
WorldGuard config file
#
# WorldGuard's configuration file
#
# About editing this file:
# - DO NOT USE TABS. You MUST use spaces or Bukkit will complain. If
# you use an editor like Notepad++ (recommended for Windows users), you
# must configure it to "replace tabs with spaces." In Notepad++, this can
# be changed in Settings > Preferences > Language Menu.
# - Don't get rid of the indents. They are indented so some entries are
# in categories (like "enforce-single-session" is in the "protection"
@pironic
pironic / getServerWeather.php
Created April 20, 2011 16:46
minecraft server weather... mcr
<?php
require("nbt.class.php");
$nbt = new nbt();
// change to point to your world's level.dat file
$nbt->loadFile("E:/cc/level.dat");
$a=array();
foreach($nbt->root[0]['value'][0]['value'] as $dat) {
$t = $dat['value'];
@pironic
pironic / index.php
Created June 16, 2011 14:22
Overviewer Timestamp bottom right
<div align="center" style="font-size:70%; position:relative; top:5px; left:5px; background-color:grey;opacity:0.8;">Last Update Finished <?php echo writhem_time(GetCorrectMTime(@'updated.json')); ?></div>
<?php
function GetCorrectMTime($filePath)
{
$time = filemtime($filePath);
$isDST = (date('I', $time) == 1);
@pironic
pironic / markers.json
Created March 19, 2012 14:43
PlayerMarkers JSON Input format.
[{"id":4,"z":309.375,"msg":"pironic","y":88.5,"world":"1_2_vanilla","x":-392.3125},{"timestamp":"20120314 14:19:24","id":4,"z":201.53125,"msg":"CounterPillow","y":105.53125,"world":"cc","x":-487.5},{"timestamp":"20120314 14:19:38","id":4,"z":157.81684502508196,"msg":"tswsl1989","y":68.0,"world":"1_2_vanilla","x":-580.2873761323399}]
@pironic
pironic / cacti.php
Created March 22, 2012 19:53
cacti plugins
<?php
// put this file on your remote server and then use the url in the script config.
error_reporting(0);
if (ini_get('disable_functions')) {
$disabled_funcs=array_map('trim',explode(',',ini_get('disable_functions')));
}
$action=$_GET["action"];
@pironic
pironic / settings.py
Created July 3, 2012 16:51
Overviewer Settings File.
worlds["cc"] = "E:/cc"
worlds["flatland-projects"] = "E:/flatland"
worlds["exmaple"] = "E:/src/overviewer/Minecraft-Overviewer-Addons/exmaple"
spawn_overlay = [
ClearBase(),
EdgeLines(),
SpawnOverlay()
]
var markers={
"Kalimdor": [
{
"createInfoWindow": true,
"icon": "chest.png",
"displayName": "Locations",
"groupName": "Towns-Kalimdor"
},
{
"createInfoWindow": true,
wave 1:
wave 2:
wave 3:
wave 4:
wave 5:
overviewer.models = {};
/* WorldModel
* Primarily has a collection of TileSets
*/
overviewer.models.WorldModel = Backbone.Model.extend({
initialize: function(attrs) {
attrs.tileSets = new overviewer.models.TileSetCollection();
this.set(attrs);
}