Skip to content

Instantly share code, notes, and snippets.

@tonybruess
tonybruess / resume.sh
Last active Dec 19, 2017
Resume all screen sessions
View resume.sh
IFS=$'\n'
for line in $(screen -ls | head -n -2 | sed 1d); do
screen -r `echo $line | cut -f2`;
done
View A.java
public class A {
protected static final A instance = new A();
public static A getInstance() {
return instance;
}
}
@tonybruess
tonybruess / Skin.php
Last active Jun 8, 2020
avatar.oc.tc
View Skin.php
<?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
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
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
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:5417058
require "rubygems"
require "redis"
REDIS = Redis.new(:host => "localhost")
@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,
@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 / gist:3117912
Created Jul 15, 2012 — forked from ajvpot/gist:3115176
Minecraft Migrated Account Session Vulnerability
View gist:3117912
                  ████▓               
               ▓█▓▓▓▓▓██▒              
             ▒██▒▒▒▒▒▒▒▓█▓             
            ▓█▓▒▒▒▒▒▒▒▒▒▒██            
           ██▒▒▒▒▓███▓▒▒▒▒▓█▒          
         ▒█▓▒▓▓▓██▓░▓█▓▓▓▓▓▓█▓         
        ▓█▓▓▓▓▓██▓   ▒██▓▓▓▓▓██▒       
      ▒██▓▓▓▓███       ███▓▓▓▓██▓      
     ▓██▓█████▒         ▒█████████     
   ▒█████████  ▒▓▓▓▓▓▓▓▓▒▓█████████▒