Skip to content

Instantly share code, notes, and snippets.

View justinribeiro's full-sized avatar
🌩️
Darkness falls.

Dr. Justin Ribeiro, Ph.D. justinribeiro

🌩️
Darkness falls.
View GitHub Profile

Keybase proof

I hereby claim:

  • I am justinribeiro on github.
  • I am justinribeiro (https://keybase.io/justinribeiro) on keybase.
  • I have a public key whose fingerprint is 1CD2 20B8 5C1B 137E 3ADA 3E20 D749 67A6 9AC0 E195

To claim this, I am signing this object:

@justinribeiro
justinribeiro / edit-name.html
Last active March 15, 2016 12:38
Basic updating with custom Polymer element, firebase-collection, and firebase-document
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="bower_components/firebase-element/firebase-document.html">
<dom-element id="edit-name">
<template>
<style>
:host {
display: block;
padding: 1em;
}
@justinribeiro
justinribeiro / program.cs
Created June 22, 2015 16:47
setCors - simple command line program to set CORS header properties on Azure BLOB store.
using Microsoft.WindowsAzure.Storage;
using Microsoft.WindowsAzure.Storage.Auth;
using Microsoft.WindowsAzure.Storage.Shared.Protocol;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace setCors
@justinribeiro
justinribeiro / index.html
Created July 30, 2015 00:16
Access a specific record in a firebase-collection based on array bind in Polymer
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Firebase + Polymer + Array Access</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="mobile-web-app-capable" content="yes">
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
@justinribeiro
justinribeiro / aws-positivessl-cert-chain-instructions.md
Created December 2, 2015 20:26
What the "Certificate Chain" field needs for AWS, PositiveSSL edition.

Because the "Certificate Chain" field for AWS always throws me when someone asks what the order of the certs are. Every. Single. Time.

(openssl x509 -inform PEM -in COMODORSADomainValidationSecureServerCA.crt; openssl x509 -inform PEM -in COMODORSAAddTrustCA.crt)

Where's the trust root? Don't need it; you'll get an contains anchor issue when testing.

<?php
session_start ();
if (isset ( $_SESSION ['sess_user_id'] ) && isset ( $_SESSION ['sess_username'] )) {
header ( "Location: /home" );
exit ();
}
?>
... Begin HTML ...
@justinribeiro
justinribeiro / gulp-gae-deploy-task.js
Created January 29, 2016 19:08
Because sometimes you just want to deploy to GAE and pester co-workers in Slack.
var git = require('git-rev-sync');
var slackconfig = require('./slackbot.json');
var slack = require('gulp-slack')({
url: slackconfig.webhook_url,
channel: slackconfig.channel,
user: slackconfig.user,
icon_emoji: slackconfig.icon_emoji
});
@justinribeiro
justinribeiro / ssl.md
Created February 2, 2016 20:01
StartSSL and Google SSL certs, the basics
  1. Go get the intermediate cert from StartSSL. All are available at https://startssl.com/root, but you probably just need the Class 1 DV PEM: https://startssl.com/certs/sca.server1.crt
  2. Put that file with your issued cert.
  3. Concat them. $ cat yourdomain.crt sca.server1.crt > concat.crt
  4. Upload that to the PEM encoded X.509 public key certificate field on https://console.developers.google.com/appengine/settings/certificates?project=yourproject
  5. Add your private key as normal.
  6. Assign to domain.
  7. Test chain with https://www.ssllabs.com/ssltest/
  8. Open in Firefox desktop or on mobile device to verify error gone away.
@justinribeiro
justinribeiro / instructions.md
Last active October 8, 2018 01:57
The Web Platform Podcast: Pipelines for publishing

Justin's Guide to faster episodes

The follwing is my working document as I create a pipeline for faster YouTube > LibSyn / iTunes distribution. This is not complete, but really cuts down on some time.

Prerequisites

I'm a commandline guy, I like UNIX tooling philosophy. Hence, my prereqs.

  1. youtube-dl
  2. ffmpeg
  3. mutagen
@justinribeiro
justinribeiro / instructions.md
Last active February 8, 2016 19:58
Setting up your ENV

Installing all the things

  1. Install iTerm2

  2. Install Homebrew

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
  1. Install ZSH.