Skip to content

Instantly share code, notes, and snippets.

View falkirks's full-sized avatar

noa falkirks

View GitHub Profile
@falkirks
falkirks / DisplayID.phar
Last active August 29, 2015 14:06
Request response generated with RequestTool
@falkirks
falkirks / key.pde
Last active August 29, 2015 13:59
Check for multiple key presses in Java Processing.
class bindKey {
IntList keylist;
public bindKey() {
keylist = new IntList();
}
public void pressKey(int key) {
if (!keylist.hasValue(key)) keylist.append(key);
}
public void releaseKey(int key) {
if (keylist.hasValue(key)) {
@falkirks
falkirks / getUDID.php
Created March 28, 2014 18:26
Tiny iOS UDID retrieval script
<?
if (isset($_GET["udid"])) exit($_GET["udid"]);
elseif (isset($_GET["grab"])) exit(header("Location: ". $_SERVER["PATH_INFO"] . "?udid=" . substr(strstr(strstr($HTTP_RAW_POST_DATA, '</dict>', true),"<string>"),8,40), true, 301));
header('Content-type: application/x-apple-aspen-config; chatset=utf-8');
echo('<?xml version="1.0" encoding="UTF-8"?>');
?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
@falkirks
falkirks / addPlayer.php
Created March 26, 2014 13:50
PocketMine fake players
<?php
/*
__PocketMine Plugin__
name=AddPlayer
description=Add a player to the game
version=0.1
author=Falk
class=addP
apiversion=12,13
*/