Skip to content

Instantly share code, notes, and snippets.

View birdayz's full-sized avatar
🔥
nerden

Johannes Brüderl birdayz

🔥
nerden
View GitHub Profile
@birdayz
birdayz / build.gradle
Last active September 23, 2018 22:43
Javalin dependencies
compile group: 'io.javalin', name: 'javalin', version: '2.2.0'
compile group: 'com.fasterxml.jackson.core', name: 'jackson-databind', version: '2.9.6'
compile group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.25'
compile group: 'org.graalvm', name: 'graal-sdk', version: '1.0.0-rc6'
@birdayz
birdayz / Main.java
Last active September 23, 2018 22:43
Javalin Hello World
public class Main {
public static void main(String[] args) {
Test t = new Test();
t.setSomeValue("Hello World!");
Javalin app = Javalin.create().start(7000);
app.get("/", ctx -> ctx.json(t));
}
}
function FindBossTarget(bossName)
local i
local bossTarget = nil
if( UnitName("playertarget") == bossName ) then
bossTarget = UnitName("playertargettarget")
else
for i = 1, GetNumRaidMembers(), 1 do
if UnitName("Raid"..i.."target") == bossName then
bossTarget = UnitName("Raid"..i.."targettarget")
break
@birdayz
birdayz / mpqextract.sh
Created April 15, 2017 08:09
Extract all MPQs
#!/bin/bash
for f in *.MPQ; do
MPQExtractor -e "*" -f $f
done
@birdayz
birdayz / gist:05fadff17483fbd451e6926475386846
Created March 22, 2017 11:21
Watch latex files in folder and build new pdf when changes occur
#!/bin/bash
while true; do inotifywait -e modify *.tex>/dev/null 2&>1; latexmk -pdf > /dev/null 2>&1; done
synclient MaxTapTime=0