Skip to content

Instantly share code, notes, and snippets.

View Laurian's full-sized avatar

Laurian Gridinoc Laurian

  • Creative Technologist ※ Knight-Mozilla OpenNews Fellow ※ Visual analytics × Computational Linguistics × Semantic Web
  • Cyberspace
  • X @gridinoc
View GitHub Profile
(function($) {
$.fn.oembed = function(url, options, callback) {
options = $.extend(true, $.fn.oembed.defaults, options);
return this.each(function() {
var container = $(this),
resourceURL = (url != null) ? url : container.attr("href"),
provider;
gistup
@Laurian
Laurian / 0_reuse_code.js
Created May 27, 2014 12:44
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
<!DOCTYPE html>
<html>
<head>
<base href="http://www.jasondavies.com/maps/raster/satellite/">
<meta charset="utf-8">
<title>Drones</title>
<style>
@import url(../../maps.css);
#map {
@Laurian
Laurian / index.html
Last active August 29, 2015 14:03
The Perplex & Other Stories
<div role=main class=single>
<article id="post-374" class="post-374 post type-post status-publish format-standard hentry category-mojo category-mozilla tag-hyperlink tag-hypertext tag-metadata tag-pingback tag-ted-nelson">
<header class=entry-header>
<h1 class=entry-title>The Perplex <span class="amp">&amp;</span> Other Stories</h1>
<div class=entry-meta>
<a href="/archive/2011/06/the-perplex-and-other-stories/index.html" title="22:09" rel="bookmark"><time class="entry-date" datetime="2011-06-05T22:09:26+00:00" pubdate>June 5, 2011</time></a><span class="by-author"> <span class="sep"> by </span> <span class="author vcard"><a class="url fn n" href="/archive/profile/index.html" title="View all posts by Laurian Gridinoc" rel="author">Laurian Gridinoc</a></span></span> </div>
</header>
@Laurian
Laurian / 20mirror-outside-files
Created July 13, 2014 13:17
20mirror-outside-files
#!/bin/sh
set -e
# Based on nealmcb's + ErebusBat's script from http://serverfault.com/questions/211425/
# If you want other configuration data or files on the system also
# opportunistically tracked via etckeeper, use this script to copy them in.
# If there is a hook of some sort available related to the files
# you're mirroring, you can call etckeeper directly and track them
@Laurian
Laurian / app.js
Created September 13, 2014 06:05
var Ctx = Morearty.createContext(React, Immutable,
{ // initial state
page: 'HOME',
zoom: 5,
cursor: 0,
videos: {},
segments: [],
speakers: {}
},
{ // configuration

Current stack

  • AWS ElasticBeanstalk for node.js deployments
  • source code in GitHub
  • CI/CD with Codeship.com, which deploys to AWS ElasticBeanstalk and sends notifications to Slack
  • Slack.com for team communication
  • CommonKey.com for team password management
  • Librato.com for AWS monitoring and custom metrics (via Librato node lib), alerts in Librato wil post to Slack
  • Papertrail.com for aggregating node.js logs from AWS EB instances, custom searches and triggers will post to Slack
  • Filepicker.io for user uploads directly to S3
export CI_BRANCH2=`echo $CI_BRANCH | sed "s/\//-/"`
sed -i "s/trint-v1-dev/trint-v1-$CI_BRANCH2/" .ebextensions/01papertrail.config
//
CmdUtils.CreateCommand({
names: ["share command"],
// icon from http://mitcho.com/blog/projects/the-ubiquity-favicon-a-very-important-question/
icon: "http://mitcho.com/blog/wp-content/uploads/2009/06/ubiquibot-favicon3.png",
description: "Share the last Ubiquity command",
help: "How to use your command.",
author: {name: "Laurian Gridinoc", email: "laurian@gridinoc.name"},
license: "GPL",
homepage: "http://namebound.com/ubiquity/share/",