Skip to content

Instantly share code, notes, and snippets.

@hktang
hktang / after.sh
Created February 4, 2017 14:44 — forked from cluppi/after.sh
Turning SSL on for Homestead
#!/bin/sh
# Config for SSL.
echo "--- Making SSL Directory ---"
mkdir /etc/nginx/ssl
echo "--- Copying $i SSL crt and key ---"
openssl req -nodes -new -x509 -keyout /etc/nginx/ssl/server.key -out /etc/nginx/ssl/server.crt -subj "/C=US/ST=NY/L=NYC/O=Dis/CN=www.example.com"
echo "--- Turning SSL on in nginx.conf. ---"
@hktang
hktang / TimelineJsAutoplayLoop.js
Last active August 29, 2015 14:16
Add a quick and clean autoplay loop for your display/exhibit using TimelineJS
/**
* Loop your Timeline.js timeline, for your display/exhibit.
* @Inspiredby discussions at:
* https://groups.google.com/forum/#!topic/verite-timeline/h9fOiKCqGZs
* Demo at: http://www.apn-gcr.org/visual/timeline/
*/
(function($){
var delay = 10000; // interval between slides, in miliseconds
var loop = true; // play timeline in loops if set to true