Skip to content

Instantly share code, notes, and snippets.

View jhbruhn's full-sized avatar
energized

Jan-Henrik Bruhn jhbruhn

energized
View GitHub Profile
echo "Erdbeermarmelade!"
@jhbruhn
jhbruhn / wlan.sh
Last active August 29, 2015 13:56 — forked from sgade/wlan.sh
# Use this built-in tools
# May need to install watch
watch -n 1 cat /proc/net/wireless
# Or use wavemon (https://github.com/uoaerg/wavemon)
# Install via apt-get install wavemon
# This will be self-updating
sudo wavemon
@jhbruhn
jhbruhn / keybase.md
Last active August 29, 2015 13:58
keybase proof

Keybase proof

I hereby claim:

  • I am jhbruhn on github.
  • I am jhbruhn (https://keybase.io/jhbruhn) on keybase.
  • I have a public key whose fingerprint is 2052 0B4A D685 B452 15AB A7B2 96BC EF2B 0D4C 037A

To claim this, I am signing this object:

@jhbruhn
jhbruhn / post-receive.sh
Created July 26, 2014 15:30
Pedas PostReceive
#!/bin/bash -l
GIT_REPO=$HOME/website.git
TMP_GIT_CLONE=$HOME/tmp/git/website
PUBLIC_WWW=/var/www/virtual/$USER/html
DIR=`pwd`
unset GIT_DIR
#rm -rf $TMP_GIT_CLONE
. $HOME/.bash_profile
// ==UserScript==
// @name My Fancy New Userscript
// @namespace https://whatsremote.com/*
// @version 0.1
// @description Peda B's house
// @match http://tampermonkey.net/
// @include https://whatsremote.net/*
// @require http://audiocogs.org/codecs/js/aurora.js
// @require http://audiocogs.org/codecs/js/aac.js
// @copyright 2014, PedaB
@jhbruhn
jhbruhn / MailParse.java
Created April 5, 2012 09:52
MailParse from mail tingi Thunderbörd
package org.hans.uwe.werner;
import java.io.BufferedReader;
import java.io.DataInputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
package org.gd.mater;
public class Dayz {
/**
* @param args
*/
public static void main(String[] args) {
Runnable run1 = new Runnable() {
@Override
@jhbruhn
jhbruhn / Auto.java
Created June 25, 2012 11:47
HeinzPeda
package corp.tuamater.werkstatt;
import java.util.Random;
public class Auto {
public enum Creator {
AUDI, VW, PEUGOT, RENAULT
};
private Creator creator;
@jhbruhn
jhbruhn / Heinz.md
Created August 7, 2012 14:58
An example

Good evening ladies and gentlemen. I am an example-gist which has just one purpose: be an example. I bet you didn't know this before!

I am a heading!

Now that we know who you are, I know who I am. I'm not a mistake! It all makes sense! In a comic, you know how you can tell who the arch-villain's going to be? He's the exact opposite of the hero. And most times they're friends, like you and me! I should've known way back when... You know why, David? Because of the kids. They called me Mr Glass.

Idea

Basically, this idea was stolen from gist.io but I was bored so I rewrote it with Node.js. Here's a list of colors (in german):

  • Rot
@jhbruhn
jhbruhn / karl.rb
Created September 22, 2012 19:44
Worst code evar
message.is_a LoginMessage ? @client.puts(JSON LoginResponseMessage.new) if message.validate_login : @client.close