Skip to content

Instantly share code, notes, and snippets.

@tonybruess
tonybruess / A.java
Last active December 24, 2015 04:59
public class A {
protected static final A instance = new A();
public static A getInstance() {
return instance;
}
}
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 / gist:5417058
Created April 18, 2013 23:41
redis-rb.rb
require "rubygems"
require "redis"
REDIS = Redis.new(:host => "localhost")
@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:3117912
Created July 15, 2012 17:57 — forked from ajvpot/gist:3115176
Minecraft Migrated Account Session Vulnerability
                  ████▓               
               ▓█▓▓▓▓▓██▒              
             ▒██▒▒▒▒▒▒▒▓█▓             
            ▓█▓▒▒▒▒▒▒▒▒▒▒██            
           ██▒▒▒▒▓███▓▒▒▒▒▓█▒          
         ▒█▓▒▓▓▓██▓░▓█▓▓▓▓▓▓█▓         
        ▓█▓▓▓▓▓██▓   ▒██▓▓▓▓▓██▒       
      ▒██▓▓▓▓███       ███▓▓▓▓██▓      
     ▓██▓█████▒         ▒█████████     

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

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;
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();
<?php
while($i < 1000000)
{
echo $i . ' ';
$i++;
}
?>
@tonybruess
tonybruess / autoreply.applescript
Last active August 29, 2015 14:08
AppleScript workflow for canned responses
on run {input, parameters}
tell application "System Events"
set frontmost of process "Automator Runner" to true
end tell
set the_path to "Macintosh HD:Users:tony:Desktop:Overcast:Replys"
set the_files to list folder the_path
set the_file to {choose from list the_files}
set input to (do shell script "cat " & quoted form of (POSIX path of (the_path & ":" & the_file)))