Skip to content

Instantly share code, notes, and snippets.

View awmichel's full-sized avatar

Adam Michel awmichel

View GitHub Profile
@awmichel
awmichel / Application.cfc
Created September 16, 2011 15:51
App.cfc Reference (Because there aren't enough yet...)
<cfcomponent output="false">
<!--- Application name, should be unique --->
<cfset this.name = "ApplicationName">
<!--- How long application vars persist --->
<cfset this.applicationTimeout = createTimeSpan(0,2,0,0)>
<!--- Should client vars be enabled? --->
<cfset this.clientManagement = false>
<!--- Where should we store them, if enable? --->
<cfset this.clientStorage = "registry">
@awmichel
awmichel / rails_app_template.rb
Last active December 18, 2015 05:39
Preferred blend of Rubies and Gems on Rails.
#!/usr/bin/env ruby -w
#
# Rails App Template by @awmichel
# Uses:
# Unicorn
# PostgreSQL
# RSpec
# Capybara
# Guard
# Simple Form
@awmichel
awmichel / librets.rb
Last active August 29, 2015 13:57
Homebrew Formula for LibRETS 1.6.0
require 'formula'
class Librets < Formula
homepage 'http://code.crt.realtors.org/projects/librets'
url 'http://www.crt.realtors.org/projects/rets/librets/files/librets-1.6.0.tar.gz'
sha1 '3f671a57503e848e62a2805e789c86b56ad4b26d'
depends_on 'swig'
depends_on 'boost'
@awmichel
awmichel / README.md
Last active May 17, 2024 04:23
Docker Machine OSX Autostart

Docker Machine OSX Autostart

This is a simple launchd config that will start your default docker-machine on startup. You can customize the machine that is started by updating lines 11 and 16 with the correct machine name.

Install

  1. Copy the file com.docker.machine.default.plist below to ~/Library/LaunchAgents/com.docker.machine.default.plist.
  2. Run the following in a terminal: launchctl load ~/Library/LaunchAgents/com.docker.machine.default.plist
  3. Profit!
@awmichel
awmichel / Gemfile
Created October 28, 2015 02:59
Favicon Maker Rails Task
gem 'favicon_maker', '~> 1.3'

Keybase proof

I hereby claim:

  • I am awmichel on github.
  • I am awmichel (https://keybase.io/awmichel) on keybase.
  • I have a public key ASBmq561vn04sBfmJnaKePnRpdVQVlZpfGRjWu1dARqGHgo

To claim this, I am signing this object:

@awmichel
awmichel / nginx.conf
Last active September 9, 2016 04:11
PermitZone Development Nginx Config
user WHOAMI admin;
worker_processes 1;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
@awmichel
awmichel / README.md
Created January 27, 2017 20:29
Development Guide for DNS Resolution: permitzone.dev

Development Guide for DNS Resolution of permitzone.dev Domains

This guide will walk you through setting up permitzone.dev domain resolution locally. It involves setting up dnsmasq to handle .dev DNS requests and nginx to proxy requests to the correct app locally.

Prerequisites

  • Homebrew is installed and working. Use brew doctor to verify.

Setup

@awmichel
awmichel / pluck-uuid-bug.rb
Created February 17, 2017 01:35
Pluck UUID Bug
begin
require "bundler/inline"
rescue LoadError => e
$stderr.puts "Bundler version 1.10 or later is required. Please update your Bundler"
raise e
end
gemfile(true) do
source "https://rubygems.org"
gem "rails", github: "rails/rails"