Skip to content

Instantly share code, notes, and snippets.

View gist:935702
<?php
while($i < 1000000)
{
echo $i . ' ';
$i++;
}
?>
View gist:999736
package org.kodejava.example.util;
import java.util.Calendar;
public class DateDifferenceExample
{
public static void main(String[] args)
{
// Creates two calendars instances
Calendar cal1 = Calendar.getInstance();
View gist:1540642
r.exists(key, function(err, obj) {
var total;
if (obj !== 1) return;
total = 0;
r.llen(key, function(err, obj) {
return total = parseInt(obj);
});
return r.lrange(key, 1, -1, function(err, checks) {
var check, good, _fn, _i, _len;
good = 0;
@tonybruess
tonybruess / gist:3117912
Created Jul 15, 2012 — forked from ajvpot/gist:3115176
Minecraft Migrated Account Session Vulnerability
View gist:3117912
                  ████▓               
               ▓█▓▓▓▓▓██▒              
             ▒██▒▒▒▒▒▒▒▓█▓             
            ▓█▓▒▒▒▒▒▒▒▒▒▒██            
           ██▒▒▒▒▓███▓▒▒▒▒▓█▒          
         ▒█▓▒▓▓▓██▓░▓█▓▓▓▓▓▓█▓         
        ▓█▓▓▓▓▓██▓   ▒██▓▓▓▓▓██▒       
      ▒██▓▓▓▓███       ███▓▓▓▓██▓      
     ▓██▓█████▒         ▒█████████     
   ▒█████████  ▒▓▓▓▓▓▓▓▓▒▓█████████▒   
@tonybruess
tonybruess / Bukkit Entity Spawning.md
Last active Nov 27, 2017
Bukkit Entity Spawning
View Bukkit Entity Spawning.md

Entities that work:

  • Arrow
  • Bat
  • Blaze
  • Boat bow charge has no effect, always spawns on player head
  • CaveSpider
  • Chicken
  • Cow
  • Creeper
  • Egg
@tonybruess
tonybruess / jenkins.css
Last active Dec 16, 2015
Jenkins Theme
View jenkins.css
/*
* Bootstrap v2.3.0
*
* Copyright 2012 Twitter, Inc
* Licensed under the Apache License v2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Designed and built with all the love in the world @twitter by @mdo and @fat.
*/
article,
View gist:5417058
require "rubygems"
require "redis"
REDIS = Redis.new(:host => "localhost")
View gist:5506006
17:57:06 [INFO] [MonsieurApple] connecting to [default]
17:57:06 [INFO] [MonsieurApple] <-> ServerConnector [lobby3] has connected
17:57:06 [INFO] [MonsieurApple] <-> ServerConnector [lobby3] has disconnected
17:57:36 [WARNING] [MonsieurApple] -> UpstreamBridge - read timed out
17:57:36 [INFO] [MonsieurApple] disconnected with: ReadTimeoutException : null
View gist:5506007
17:33:12 [INFO] [MonsieurApple] connecting to [default]
17:33:12 [INFO] [MonsieurApple] <-> ServerConnector [lobby2] has connected
17:33:12 [INFO] [MonsieurApple] <-> ServerConnector [lobby2] has disconnected
@tonybruess
tonybruess / config.yml
Created May 31, 2013
Overcast Network NCP Config
View config.yml
# Configuration generated by NoCheatPlus 3.8.0-RC-b${BUILD_NUMBER}.
savebackconfig: true
logging:
active: true
debug: false
console: true
file: true
filename: nocheatplus.log
ingamechat: true
usesubscriptions: false