Skip to content

Instantly share code, notes, and snippets.

Lander Brandt landaire

View GitHub Profile
# Created by Lander Brandt
# This script will take all existing cloned subprojects and add them as
# proper git submodules
# To use, run this script from within the main project's root directory
set -e
for submodule in `git ls-files --stage | grep 160000 | cut -f 2`; do
landaire / tmux_diff.patch
Created May 15, 2015
tmux 1.9a -> 2.0 server_client_set_title diff
View tmux_diff.patch
diff --git a/tmux.old b/
index eae8bba..b52efd7 100644
--- a/tmux.old
+++ b/
@@ -1,17 +1,23 @@
server_client_set_title(struct client *c)
- struct session *s = c->session;
- const char *template;

Keybase proof

I hereby claim:

  • I am landaire on github.
  • I am lander ( on keybase.
  • I have a public key whose fingerprint is 1189 CE80 9D1A 492F 6E91 C70A 6BC6 9BD4 7D38 92BA

To claim this, I am signing this object:

landaire / config.patch
Last active Aug 29, 2015
Revel config rework
View config.patch
diff --git a/config.go b/config.go
index 0bc9da1..7363a69 100644
--- a/config.go
+++ b/config.go
@@ -1,18 +1,27 @@
package revel
import (
+ "encoding/json"
+ "encoding/xml"
landaire / header.txt
Last active Aug 29, 2015
Arma 3 PBO extractor header sample
View header.txt
Header Extension:
Flag: 0x56657273 (ProductEntry)
Original Size: 0
Reserved: 0
Timestamp: 0 (1969-12-31 16:00:00 -0800 PST)
Data Size: 0
Extended Fields:
version: 73106
landaire /
Last active Aug 29, 2015
Xbox 360 Dev Kit Controller Disconnect

Why controllers get disconnected, and why am I making this note?

Controllers get disconnected because they fail an authentication check that Microsoft broke at some point in time. Some people are unable to obtain newer recoveries because they simply do not have contacts or access to a GDN account, and are stuck on one of these broken recoveries

What do to fix making

Patch RgcSecAuthenticateDeviceAsyncStateMachine + 0x704 (should be a bge instruction, where if cr6 -- the result of r11 >= r10 -- then the authentication succeeds) so that this always branches to the "successful" block of code leaving the auth fail code as simply dead, unreachable code.

RgcSecAuthenticateDeviceAsyncStateMachine target

View chrome.json
View chrome.json
landaire / chrome.json
Created Jul 15, 2014
Invalid getBBox() values
View chrome.json
View revel_log.txt
Landers-MacBook-Pro:~ lander$ revel run
~ revel!
INFO 2014/05/01 18:52:08 revel.go:320: Loaded module jobs
INFO 2014/05/01 18:52:08 revel.go:320: Loaded module static
INFO 2014/05/01 18:52:08 revel.go:320: Loaded module testrunner
INFO 2014/05/01 18:52:08 run.go:57: Running Booking example ( in dev mode
TRACE 2014/05/01 18:52:08 run.go:58: Base path: /Users/lander/go/src/
TRACE 2014/05/01 18:52:08 template.go:174: Refreshing templates from [/Users/lander/go/src/]
You can’t perform that action at this time.