Skip to content

Instantly share code, notes, and snippets.

<?php
while($i < 1000000)
{
echo $i . ' ';
$i++;
}
?>
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();
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 July 15, 2012 17:57 — forked from ajvpot/gist:3115176
Minecraft Migrated Account Session Vulnerability
                  ████▓               
               ▓█▓▓▓▓▓██▒              
             ▒██▒▒▒▒▒▒▒▓█▓             
            ▓█▓▒▒▒▒▒▒▒▒▒▒██            
           ██▒▒▒▒▓███▓▒▒▒▒▓█▒          
         ▒█▓▒▓▓▓██▓░▓█▓▓▓▓▓▓█▓         
        ▓█▓▓▓▓▓██▓   ▒██▓▓▓▓▓██▒       
      ▒██▓▓▓▓███       ███▓▓▓▓██▓      
     ▓██▓█████▒         ▒█████████     

▒█████████ ▒▓▓▓▓▓▓▓▓▒▓█████████▒

@tonybruess
tonybruess / Bukkit Entity Spawning.md
Last active November 27, 2017 18:59
Bukkit Entity Spawning

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 December 16, 2015 00:59
Jenkins Theme
/*
* 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,
@tonybruess
tonybruess / gist:5417058
Created April 18, 2013 23:41
redis-rb.rb
require "rubygems"
require "redis"
REDIS = Redis.new(:host => "localhost")
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
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 02:08
Overcast Network NCP Config
# 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