Skip to content

Instantly share code, notes, and snippets.

View r-brown's full-sized avatar
🇩🇪
Happy Licensing!

R.Brown r-brown

🇩🇪
Happy Licensing!
View GitHub Profile
@r-brown
r-brown / manager
Created February 28, 2015 11:43
Manager :-)
Customer -> Manager > calculate 1 + 2 = ?
Manager -> Developer > FYI
Developer -> Manager > 3
Manager -> Lead > FYA
Lead -> Manager > how 3 why 3 what 3 ?
Manager -> Developer > FYI
Developer -> Manager > '+' is addition, 1 and 2 are integers
Manager -> Lead > FYA
Lead -> Manager > OK
Manager -> All > calls for a meeting
@r-brown
r-brown / swid-generator-example01
Last active August 29, 2015 14:12
SWID Tag Generator (example 01)
// prepare SWID Tag processor
SwidProcessor processor = new DefaultSwidProcessor();
((DefaultSwidProcessor) processor).setEntitlementRequiredIndicator(true)
.setProductTitle("NetLicensing")
.setProductVersion("2.1.0", 2, 1, 0, 0)
.setSoftwareCreator("Labs64", "regid.2010-04.com.labs64")
.setSoftwareLicensor("Labs64", "regid.2010-04.com.labs64")
.setSoftwareId("NLIC", "regid.2010-04.com.labs64")
.setTagCreator("Labs64", "regid.2010-04.com.labs64");
@r-brown
r-brown / gist:4b686535617c3303f532
Created June 1, 2014 20:23
Spring - inject hostname
<bean id="localhost" class="java.net.InetAddress" factory-method="getLocalHost"/>
<bean class="com.labs64.netlicensing.common.convert.schema.TokenToItemConverter">
<property name="shopURL" value="#{localhost.canonicalHostName}/app/content/shop.xhtml?shoptoken=" />
</bean>
@r-brown
r-brown / gist:7552789
Created November 19, 2013 21:20
Google gmail One Click Actions / Confirm Action
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"description": "NetLicensing Registration",
"action": {
"@type": "ConfirmAction",
"name": "Activate account",
"handler": {
"@type": "HttpActionHandler",