Skip to content

Instantly share code, notes, and snippets.

@tonybruess
tonybruess / resume.sh
Last active December 19, 2017 05:19
Resume all screen sessions
IFS=$'\n'
for line in $(screen -ls | head -n -2 | sed 1d); do
screen -r `echo $line | cut -f2`;
done
@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;
}
}
@tonybruess
tonybruess / Skin.php
Last active June 8, 2020 22:23
avatar.oc.tc
<?php
class Skin {
public static function get($username) {
$steve = in_array(strtolower($username), array("steve", "player", "default"));
if(!$steve) $contents = self::fetch('http://skins.minecraft.net/MinecraftSkins/' . $username . '.png');
$defaultImage = WideImage::load("char.png");
$defaultType = "image/png";
if ($steve || $contents === false) {
$img = $defaultImage;
@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
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
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
@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 / 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 / gist:3117912
Created July 15, 2012 17:57 — forked from ajvpot/gist:3115176
Minecraft Migrated Account Session Vulnerability
                  ████▓               
               ▓█▓▓▓▓▓██▒              
             ▒██▒▒▒▒▒▒▒▓█▓             
            ▓█▓▒▒▒▒▒▒▒▒▒▒██            
           ██▒▒▒▒▓███▓▒▒▒▒▓█▒          
         ▒█▓▒▓▓▓██▓░▓█▓▓▓▓▓▓█▓         
        ▓█▓▓▓▓▓██▓   ▒██▓▓▓▓▓██▒       
      ▒██▓▓▓▓███       ███▓▓▓▓██▓      
     ▓██▓█████▒         ▒█████████     

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