For educational reasons I've decided to create my own CA. Here is what I learned.
Lets get some context first.
# | |
# Slightly tighter CORS config for nginx | |
# | |
# A modification of https://gist.github.com/1064640/ to include a white-list of URLs | |
# | |
# Despite the W3C guidance suggesting that a list of origins can be passed as part of | |
# Access-Control-Allow-Origin headers, several browsers (well, at least Firefox) | |
# don't seem to play nicely with this. | |
# |
d3.csv("data/gates_money.csv", function(data) { | |
custom_bubble_chart.init(data); | |
custom_bubble_chart.toggle_view('all'); | |
}); | |
$(document).ready(function() { | |
$('#view_selection a').click(function() { | |
var view_type = $(this).attr('id'); | |
$('#view_selection a').removeClass('active'); | |
$(this).toggleClass('active'); |
#!/usr/bin/env python | |
from __future__ import division, print_function | |
""" | |
This script generates a file to use for building authorea papers, and then runs | |
latex on them. | |
Requires python >= 2.6 (3.x should work, too) | |
The key assumptions are: |
#!/bin/sh | |
# | |
# install_xcode.sh | |
# | |
# Created by Andrew McKnight on 9/24/15 | |
# | |
# takes a downloaded .dmg containing Xcode and installs it to a specified location/name, or defaults to /Applications and the DMG's filename | |
# |
node { | |
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1' | |
echo 'No quotes, pipeline command in single quotes' | |
sh 'echo $BUILD_NUMBER' // 1 | |
echo 'Double quotes are silently dropped' | |
sh 'echo "$BUILD_NUMBER"' // 1 | |
echo 'Even escaped with a single backslash they are dropped' | |
sh 'echo \"$BUILD_NUMBER\"' // 1 | |
echo 'Using two backslashes, the quotes are preserved' | |
sh 'echo \\"$BUILD_NUMBER\\"' // "1" |
Principles of Adult Behavior
index.js | |
index.d.ts | |
example.js | |
example.d.ts | |
node_modules/ |
#!/usr/bin/env bash | |
# This script is meant to build and compile every protocolbuffer for each | |
# service declared in this repository (as defined by sub-directories). | |
# It compiles using docker containers based on Namely's protoc image | |
# seen here: https://github.com/namely/docker-protoc | |
set -e | |
REPOPATH=${REPOPATH-/opt/protolangs} | |
CURRENT_BRANCH=${CIRCLE_BRANCH-"branch-not-available"} |
#!/bin/bash | |
# update this to move to later versions of this repo: | |
# https://github.com/bazelbuild/bazel | |
ORIGINAL_PWD=$PWD | |
TMPDIR="${TMPDIR:-/tmp}" | |
RND_UID=$(date "+%s") |