Skip to content

Instantly share code, notes, and snippets.

View gibron's full-sized avatar
🤙

Gibron Kury gibron

🤙
View GitHub Profile
these releate more to a picture of a solution and not so much exact requirements of a tool
Toggle =~ Feature Flag
• Would like a schema/common pattern for Toggle
• Ability to enable or disable Toggles without requiring software deployment
• Ability to list Toggles with values to audit a User, Group, or Org
• "Works with IMS"
• Through a UI, an administrative user can configure access to features at a user or group of users level
• Native support for feature management on client-side (JavaScript) and server-side (Java/~Scala, Node support)
@gibron
gibron / Folder List API Request cURL
Last active July 15, 2016 00:06
Asset POC API List cURLs & Responses
curl 'http://zibtek-dev-aem.admin.fyre.co/services/frontline/api/v4/assetManager/zibtek-dev-aem.fyre.co/assetLibrary/zibtek-dev-aem.fyre.co/folders?limit=50' -H 'Authorization: lftoken eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJkb21haW4iOiJ6aWJ0ZWstZGV2LWFlbS5meXJlLmNvIiwidXNlcl9pZCI6IlRFTVAtMzBmYWIyOGUzNTYyZGI3MSIsImRpc3BsYXlfbmFtZSI6IkFQSV9UZXN0aW5nIiwiZXhwaXJlcyI6MTQ4MzUzOTc3Mi41NjV9.ppDi87hLJngdilCdWW4l5XFIZuHs-RSADrqWOX-V-b0' --compressed
@gibron
gibron / init_2.sh
Last active April 19, 2016 01:32
Foundational shell script intending to instantiate AEM against a fresh ubuntu image
## Starting with a base ubuntu image
#### Setup Env ####
sudo apt-get update && sudo apt-get upgrade
sudo apt-get dist-upgrade
sudo apt-get autoremove
sudo apt-get autoclean
### JRE
sudo apt-get install default-jre
@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.

@gibron
gibron / generate_email.py
Last active August 29, 2015 14:01
Generate Test Email
from lfcore.conv.models import CommentOpine
from lfcore.notification.tasks.notification_email_compile import create_email
from lfcore.common.tasks import email
import pdb;pdb.set_trace()
ntype = 'like'
comment = Comment.objects.all()[0]
conv = Conv.objects.all()
conv = conv[0]