Skip to content

Instantly share code, notes, and snippets.

View alvarosanchez's full-sized avatar

Álvaro Sánchez-Mariscal alvarosanchez

View GitHub Profile
@ajbrown
ajbrown / AuthenticationToken.groovy
Created June 9, 2014 13:33
grails-spring-security-rest token storage service supporting token expiration
import org.apache.commons.lang.builder.HashCodeBuilder
class AuthenticationToken implements Serializable {
private static final long serialVersionUID = 20140401
String tokenValue
String username
Date dateCreated
#!/bin/zsh
#
# Highlight a given file and copy it as RTF.
#
# Simon Olofsson <simon@olofsson.de>
#
set -o errexit
set -o nounset
@jimbojsb
jimbojsb / gist:1630790
Created January 18, 2012 03:52
Code highlighting for Keynote presentations

Step 0:

Get Homebrew installed on your mac if you don't already have it

Step 1:

Install highlight. "brew install highlight". (This brings down Lua and Boost as well)

Step 2: