Skip to content

Instantly share code, notes, and snippets.

View gibron's full-sized avatar
🤙

Gibron Kury gibron

🤙
View GitHub Profile
@gibron
gibron / aem-compact-script.sh
Last active April 13, 2016 06:11 — forked from auniverseaway/aem-compact-script.sh
AEM Compaction Script
#!/bin/bash
now="$(date +'%d-%m-%Y')"
logfile="compact-$now.log"
installfolder="~"
aemfolder="$installfolder/crx-quickstart"
oakrun="$installfolder"
## Shutdown AEM
printf "Shutting down AEM.\n"
$aemfolder/bin/stop
#####import all of our friends#####
import time
import jwt
import urllib2
import json
import MySQLdb
#####Step 0: define things#####
db = MySQLdb.connect(host="127.0.0.1", # your host, usually localhost
user="user", # your username
@gibron
gibron / readme.md
Last active March 30, 2016 22:39 — forked from pcolombo/gist:0b7c82efcb8892072c6b
Generating Livefyre Tokens in C#

Creating Livefyre Tokens in C# .NET

As of April 2014 Livefyre began providing libraries to handle server-side creation of user Auth and CollectionMeta JWT (JSON Web Token) tokens. These libraries are avilabe in java, node.js, php, python and ruby.

This guide leverages legacy documentation and sample code to help customers using C# .NET to write their own methods to create these tokens.

If you would like to reference Livefyre's official libraries, we recommend using the Java Library as a starting point for C# developers.

You may also consider using the Node.js Library from the command line to generate reference tokens for yourself, and to get famliar with the method structure.