Skip to content

Instantly share code, notes, and snippets.


Michael Fairchild fairchild

  • Procore
  • California
View GitHub Profile
View designer.html
<link rel="import" href="../core-scaffold/core-scaffold.html">
<link rel="import" href="../core-header-panel/core-header-panel.html">
<link rel="import" href="../core-menu/core-menu.html">
<link rel="import" href="../core-item/core-item.html">
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../core-menu/core-submenu.html">
<polymer-element name="my-element">
fairchild /
Last active Nov 4, 2015 — forked from devpuppy/nokogiri libxml homebrew lion
eliminate the annoying nokogiri LibXML version mismatch on OSX
# WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.8.0
gem uninstall nokogiri libxml-ruby
fairchild / m2x-simple-example.js
Last active Aug 29, 2015
super simple m2x api example
View m2x-simple-example.js
<!doctype html>
<form id='m2xform' action="#">
<input name='m2xApiKey' placeholder='m2x api key' value='3fef5d69c3a7eab559b733ba854baef1' >
<pre id='m2xexample'>m2x</pre>
fairchild / fogtest.rb
Created Feb 28, 2014
simple check if fog is working wtih cloud endpoint
View fogtest.rb
require 'fog'
auth_url = ENV['OS_AUTH_URL']
username = ENV['OS_USERNAME']
password = ENV['OS_PASSWORD']
tenant = ENV['OS_TENANT_NAME'] # String
compute_client ||= => :openstack,
:openstack_api_key => password ,
:openstack_username => username ,
fairchild / Vagrantfile
Last active Jan 2, 2016
sample Vagrantfile
View Vagrantfile
Vagrant.configure(2) do |config|
config.ssh.forward_agent = true
config.vm.define "www", :primary=>true do |www|
# ================================================
fairchild / commonrc
Last active Dec 28, 2015
a localrc for the controller node
View commonrc
# Enable Logging
fairchild / Dockerfile
Last active Dec 27, 2015
dockerfile defining a basic apt-cacher-ng service
View Dockerfile
# Apt-Proxy hosting image
# VERSION 0.1.0
# Use a modified version of the Ubuntu base image provided by dotCloud
FROM fairchild/ubuntu
MAINTAINER Michael Fairchild
RUN apt-get update && apt-get install -y apt-cacher-ng
fairchild /
Created Jul 8, 2013
script that can be passed as userdata when booting an instance. It fetches a gist of bash functions and runs the ones called in the main function.
# Setup a new ubuntu 12.04 or 12.10 server appropriate for deploying nodejs and/or ruby applications.
set -x
set -e
# mkdir -p /tmp/user_data
date >> /tmp/provisioning_began
fairchild / index.html
Last active Dec 18, 2015
js-sequence diagram gist setup for
View index.html
<!DOCTYPE html>
<html lang="en">
<meta charset="utf-8">
<script src=""></script>
<script src=""></script>
<script src=""></script>
<script src="sequence.js"></script>
You can’t perform that action at this time.