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
@auniverseaway
auniverseaway / aem-compact-script.sh
Last active November 26, 2018 09:47
AEM Compaction Script
#!/bin/bash
now="$(date +'%d-%m-%Y')"
logfile="compact-$now.log"
installfolder="/data/aem"
aemfolder="$installfolder/crx-quickstart"
oakrun="$installfolder/help/oak-run-1.0.18.jar"
## Shutdown AEM
printf "Shutting down AEM.\n"
$aemfolder/bin/stop
@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.

URN Resolver API

Many Livefyre APIs use Livefyre URNs as ids of the resources they describe.

The URN Resolver API allows a client to resolve a Livefyre URN to a related URL that describes or manages the resource indicated by the URN.

Use Cases

  • Given knowledge of a Livefyre Collection's Network, Site ID, and Article ID, I can create a link to manage that Collection in Livefyre Studio's web UI.
@crofty
crofty / index.html
Last active October 22, 2021 08:24
A example of using Google Map tiles with the Leaflet mapping library - http://matchingnotes.com/using-google-map-tiles-with-leaflet
<!DOCTYPE html>
<html>
<head>
<title>Leaflet</title>
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" />
<script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
<script src="http://maps.google.com/maps/api/js?v=3.2&sensor=false"></script>
<script src="http://matchingnotes.com/javascripts/leaflet-google.js"></script>
</head>
<body>