Skip to content

Instantly share code, notes, and snippets.

Avatar

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
fairchild / fix_nokogiri_libxml_mismatch_on_mavericks.sh
Last active Nov 4, 2015 — forked from devpuppy/nokogiri libxml homebrew lion
eliminate the annoying nokogiri LibXML version mismatch on OSX
View fix_nokogiri_libxml_mismatch_on_mavericks.sh
#!/bin/bash
# FIXME:
# WARNING: Nokogiri was built against LibXML version 2.9.0, but has dynamically loaded 2.8.0
NOKOGIRIR_VERSION=${1:-1.6.1}
LIBXML_VERSION=${2:-2.9.1}
LIBXSLT_VERSION=${3:-1.1.28}
gem uninstall nokogiri libxml-ruby
@fairchild
fairchild / m2x-simple-example.js
Last active Aug 29, 2015
super simple m2x api example
View m2x-simple-example.js
<!doctype html>
<html>
<head>
</head>
<body>
<form id='m2xform' action="#">
<input name='m2xApiKey' placeholder='m2x api key' value='3fef5d69c3a7eab559b733ba854baef1' >
</form>
<pre id='m2xexample'>m2x</pre>
@fairchild
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 ||= ::Fog::Compute.new(:provider => :openstack,
:openstack_api_key => password ,
:openstack_username => username ,
@fairchild
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|
end
# ================================================
@fairchild
fairchild / commonrc
Last active Dec 28, 2015
a localrc for the controller node
View commonrc
# Enable Logging
LOGFILE=/opt/stack/logs/stack.sh.log
LOG_COLOR=True
SCREEN_LOGDIR=/opt/stack/logs
@fairchild
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 fairchild@stimble.net
ENV APT_PROXY apt.dockerdev.att.io
RUN apt-get update && apt-get install -y apt-cacher-ng
@fairchild
fairchild / setup.sh
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.
View setup.sh
#!/bin/bash
# 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
fairchild / index.html
Last active Dec 18, 2015
js-sequence diagram gist setup for bl.ocks.org
View index.html
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<script src="https://cdnjs.cloudflare.com/ajax/libs/raphael/2.1.0/raphael-min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/underscore.js/1.4.4/underscore-min.js"></script>
<script src="https://s3-us-west-2.amazonaws.com/foundry-assets/sequence-diagram-min.js"></script>
<script src="sequence.js"></script>
</head>
You can’t perform that action at this time.