Skip to content

Instantly share code, notes, and snippets.

@tonybruess
tonybruess / gist:9405134
Created Mar 7, 2014
Username limitations for various services
View gist:9405134
Skype
Min: 6
Max: 32
Can contain: a-z A-Z 0-9 . , _ -
Other: Must start with a letter
Twitter
Min: 1
Max: 15
Can contain: a-z A-Z 0-9 _
@tonybruess
tonybruess / 00.md
Last active Sep 26, 2021
Common App & Stanford Essays
View 00.md

Common App & Stanford Essays

The following are my responses to the main Common App essay and the Stanford application questions. You're welcome to read them to try and understand how I got "in" to Stanford, or just for fun. Whatever you choose to try and take away from these essays, I hope you get something out of them. Or nothing at all, that works too. Enjoy.

A Brief Note

There's no secret formula. There are a lot of people more qualified than me that got denied. Even though they may have been more qualified, I beat them when it came to the essays. The most important part of your application is your essays, so I would encourage you to spend a lot of time on them. Spend time reflecting on who you are and how you can use your essays to communicate that. The readers of the over 40,000 Stanford applicants know a fake essay from a mile away. If you want to have a chance at admission, your essays need to be 100% authentic you, not 90% authentic you and 10% your mom/tutor/fake self.

If you plan to apply, I

@tonybruess
tonybruess / logstash.cfg
Created Jul 21, 2014
Overcast's logstash config for parsing log files created by our custom log4j2 config
View logstash.cfg
input {
file {
path => "/minecraft/logs/*/server.log"
type => "server"
# stacktrace java as one message
codec => multiline {
pattern => "^([0-9\-: ]+ \[[A-Z]+\] )?(((\w+\.)+\w+Exception.*)|((\s|\t)+at .+)|(\s+... \d+ more)|(\s*Caused by:.+))"
what => "previous"
multiline_tag => "stacktrace"
@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 / README.md
Last active Nov 10, 2019
Upgrade e1000e drivers
View README.md

Upgrade e1000e drivers on Ubuntu

Simply run ./upgrade.sh.

Information

Make sure to run shutdown -r now after completing installation.

Also, use lshw -C network to verify the driver installation.

If the driver is still outdated after reboot, make sure /etc/modules contains e1000e.

@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
@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
@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
View mongobackup.pp
class overcast::mongobackup {
file { '/root/mongo-backup':
source => 'puppet:///modules/overcast/mongo-backup',
mode => 0755,
}
cron { 'daily mongo backup':
command => '/root/mongo-backup',
user => 'root',
hour => 4,
View gist:a53219b066e8e0216487
[09:41:22] Dinnerbone: For those who care about it: there are new public API routes for name changes
[09:41:38] Dinnerbone: https://api.mojang.com/users/profiles/minecraft/KrisJelbring will lookup single name -> uuid
[09:42:04] Dinnerbone: https://api.mojang.com/users/profiles/minecraft/KrisJelbring?at=1405612800 will lookup single name -> uuid as of a certain timestamp
[09:42:14] Dinnerbone: (So even if he changes his name now, that link will return him)
[09:42:46] Dinnerbone: https://api.mojang.com/user/profiles/7125ba8b1c864508b92bb5c042ccfe2b/names will show you all the names a profile has been known by
[09:43:01] Dinnerbone: This concludes the public service announcement.