Skip to content

Instantly share code, notes, and snippets.

Avatar

Gibron Kury gibron

  • Adobe
  • San Francisco, CA
View GitHub Profile
View gist:3decb0ba3fc6e7088d3aabb6374a1fc8
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 Jul 15, 2016
Asset POC API List cURLs & Responses
View Folder List API Request cURL
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 Apr 19, 2016
Foundational shell script intending to instantiate AEM against a fresh ubuntu image
View init_2.sh
## 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
View aem-compact-script.sh
#!/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
View cron_job.py
#####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 Mar 30, 2016 — forked from pcolombo/gist:0b7c82efcb8892072c6b
Generating Livefyre Tokens in C#
View readme.md

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 Aug 29, 2015
Generate Test Email
View generate_email.py
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]