Skip to content

Instantly share code, notes, and snippets.

tonybruess / autoreply.applescript
Last active August 29, 2015 14:08
AppleScript workflow for canned responses
View autoreply.applescript
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)))
tonybruess /
Last active December 5, 2022 05:58
Common App & Stanford Essays

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 / logstash.cfg
Created July 21, 2014 23:45
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 / gist:a53219b066e8e0216487
Last active June 30, 2017 23:00
New Mojang UUID API
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: will lookup single name -> uuid
[09:42:04] Dinnerbone: 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: will show you all the names a profile has been known by
[09:43:01] Dinnerbone: This concludes the public service announcement.
tonybruess /
Created June 30, 2014 16:18
How to add jdom2 to a maven repo


There's a fun dependency called jdom2. It is currenty located in our repository. If it ever gets removed, this is how you readd it.

mvn deploy:deploy-file -Dfile=jdom-2.0.5-contrib.jar -DgroupId=org.jdom -DartifactId=jdom2-contrib -Dversion=2.0.5 -Dpackaging=jar -DrepositoryId=overcast-deployment -Durl=

mvn deploy:deploy-file -Dfile=jdom-2.0.5.jar -DgroupId=org.jdom -DartifactId=jdom2 -Dversion=2.0.5 -Dpackaging=jar -DrepositoryId=overcast-deployment -Durl=
tonybruess / chat_color.rb
Created June 29, 2014 18:33
Bukkit's ChatColor implementation in ruby
View chat_color.rb
class ChatColor
@@color_char = "\u00A7"
def initialize(code)
@code = code
def +(str)
to_str + str
tonybruess / log4j2.xml
Last active August 29, 2015 14:03
Overcast's custom log4j2 config
View log4j2.xml
<?xml version="1.0" encoding="UTF-8"?>
<Configuration status="WARN" packages="net.minecraft,com.mojang.util">
<Console name="WINDOWS_COMPAT" target="SYSTEM_OUT"></Console>
<Queue name="TerminalConsole">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n"/>
<RollingRandomAccessFile name="Server" fileName="/minecraft/logs/alpha/server.log" filePattern="/minecraft/logs/alpha/server-%d{yyyy-MM-dd}-%i.log.gz">
<PatternLayout pattern="%d{yyyy-MM-dd HH:mm:ss} [%level] %msg%n"/>
tonybruess /
Last active March 12, 2022 18:40
Upgrade e1000e drivers

Upgrade e1000e drivers on Ubuntu

Simply run ./


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.

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,
tonybruess / gist:9405134
Created March 7, 2014 04:13
Username limitations for various services
View gist:9405134
Min: 6
Max: 32
Can contain: a-z A-Z 0-9 . , _ -
Other: Must start with a letter
Min: 1
Max: 15
Can contain: a-z A-Z 0-9 _