Skip to content

Instantly share code, notes, and snippets.

Landers-MacBook-Pro:~ lander$ revel run github.com/revel/revel/samples/booking
~
~ revel! http://revel.github.io
~
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 (github.com/revel/revel/samples/booking) in dev mode
TRACE 2014/05/01 18:52:08 run.go:58: Base path: /Users/lander/go/src/github.com/revel/revel/samples/booking
TRACE 2014/05/01 18:52:08 template.go:174: Refreshing templates from [/Users/lander/go/src/github.com/revel/revel/templates]
@landaire
landaire / chrome.json
Created July 15, 2014 23:00
Invalid getBBox() values
{"x":0,"y":-0.109375,"width":0.9375,"height":0.21875}
{"x":-0.59375,"y":-0.109375,"width":0.59375,"height":0.21875}
{"x":-0.46875,"y":-0.109375,"width":0.46875,"height":0.21875}
{"x":-0.4375,"y":-0.109375,"width":0.4375,"height":0.21875}
{"x":-0.296875,"y":-0.109375,"width":0.296875,"height":0.21875}
{"x":-0.5625,"y":-0.109375,"width":0.5625,"height":0.21875}
{"x":0,"y":-0.109375,"width":1,"height":0.21875}
{"x":0,"y":-0.109375,"width":0.734375,"height":0.21875}
{"x":0,"y":-0.109375,"width":0.984375,"height":0.21875}
{"x":0,"y":-0.109375,"width":0.328125,"height":0.21875}
{"x":10,"y":-6.40625,"width":60,"height":13.015625}
{"x":-49,"y":-6.40625,"width":39,"height":13.015625}
{"x":-41,"y":-6.40625,"width":31,"height":13.015625}
{"x":-39,"y":-6.40625,"width":29,"height":13.015625}
{"x":-29,"y":-6.40625,"width":19,"height":13.015625}
{"x":-47,"y":-6.40625,"width":37,"height":13.015625}
{"x":10,"y":-6.40625,"width":65,"height":13.015625}
{"x":10,"y":-6.40625,"width":47,"height":13.015625}
{"x":10,"y":-6.40625,"width":63,"height":13.015625}
{"x":10,"y":-6.40625,"width":21,"height":13.015625}
{"x":10,"y":-6.40625,"width":60,"height":13.015625}
{"x":-49,"y":-6.40625,"width":39,"height":13.015625}
{"x":-41,"y":-6.40625,"width":31,"height":13.015625}
{"x":-39,"y":-6.40625,"width":29,"height":13.015625}
{"x":-29,"y":-6.40625,"width":19,"height":13.015625}
@landaire
landaire / header.txt
Last active August 29, 2015 14:12
Arma 3 PBO extractor header sample
Header Extension:
Name:
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
landaire / config.patch
Last active August 29, 2015 14:12
Revel config rework
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"

Keybase proof

I hereby claim:

  • I am landaire on github.
  • I am lander (https://keybase.io/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
landaire / tmux_diff.patch
Created May 15, 2015 20:16
tmux 1.9a -> 2.0 server_client_set_title diff
diff --git a/tmux.old b/tmux.new
index eae8bba..b52efd7 100644
--- a/tmux.old
+++ b/tmux.new
@@ -1,17 +1,23 @@
void
server_client_set_title(struct client *c)
{
- struct session *s = c->session;
- const char *template;
@landaire
landaire / hack.sh
Created March 31, 2012 17:32 — forked from erikh/hack.sh
OSX For Hackers
#!/usr/bin/env sh
##
# This is script with usefull tips taken from:
# https://github.com/mathiasbynens/dotfiles/blob/master/.osx
#
# install it:
# curl -sL https://raw.github.com/gist/2108403/hack.sh | sh
#
@landaire
landaire / xval.py
Created May 13, 2012 00:06
Decrypt XVal
# XVal.py By Redline99
# Decrpyts the "X:" Value from the Xbox 360 dashboard
# This can indicate if the console has been flagged
# for some types of security violations
# Originally posted at XboxHacker: http://www.xboxhacker.org/index.php?topic=16401.0
import sha, hmac, struct, sys
FLAG_SSB_NONE = 0x0000
FLAG_SSB_AUTH_EX_FAILURE = 0x0001
FLAG_SSB_AUTH_EX_NO_TABLE = 0x0002