Skip to content

Instantly share code, notes, and snippets.

View clekstro's full-sized avatar

Curtis Ekstrom clekstro

View GitHub Profile
@clekstro
clekstro / chef_solo_bootstrap.sh
Created May 17, 2012 18:05 — forked from ryanb/chef_solo_bootstrap.sh
Bootstrap Chef Solo
#!/usr/bin/env bash
apt-get -y update
apt-get -y install build-essential zlib1g-dev libssl-dev libreadline6-dev libyaml-dev
cd /tmp
wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p125.tar.gz
tar -xvzf ruby-1.9.3-p125.tar.gz
cd ruby-1.9.3-p125/
./configure --prefix=/usr/local
make
make install
@clekstro
clekstro / countryCodes.js
Created December 18, 2012 06:53
array of country codes
var country_codes =
[{"AD" : "Andorra"},
{"AE" : "United Arab Emirates"},
{"AF" : "Afghanistan"},
{"AG" : "Antigua and Barbuda"},
{"AI" : "Anguilla"},
{"AL" : "Albania"},
{"AM" : "Armenia"},
{"AN" : "Netherlands Antilles"},
{"AO" : "Angola"},
@clekstro
clekstro / countryHash.js
Created December 18, 2012 10:31
hash of country codes/names
var country_codes = {
"AD" : "Andorra",
"AE" : "United Arab Emirates",
"AF" : "Afghanistan",
"AG" : "Antigua and Barbuda",
"AI" : "Anguilla",
"AL" : "Albania",
"AM" : "Armenia",
"AN" : "Netherlands Antilles",
"AO" : "Angola",
@clekstro
clekstro / gist:8246760
Created January 3, 2014 21:16
sample git workflow
git checkout -b new_branch
git checkout master
git pull --rebase
git checkout new_branch
git rebase master
git checkout master
git merge new_branch
@clekstro
clekstro / plug_tests.md
Last active September 24, 2015 22:30
Issue testing halting behavior of plugs

I’m having issues testing that a plug is properly halting the pipeline when an external service returns an error. ​ Here's the test, which ensures we call our plug under test: ​

defmodule HaltTestApp do
  use Plug.Routerplug :match
  plug ValidateExternalService
@clekstro
clekstro / application.controller.js
Created November 1, 2015 23:13
No helper warnings unless blocks
import Ember from 'ember';
export default Ember.Controller.extend({
appName:'Ember Twiddle'
});
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});

Keybase proof

I hereby claim:

  • I am clekstro on github.
  • I am clekstro (https://keybase.io/clekstro) on keybase.
  • I have a public key whose fingerprint is F051 9654 0BCF 4ED1 B5D7 230E 4B50 21C6 1CCF AB8E

To claim this, I am signing this object:

import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle',
someArray: [
Ember.Object.create({ name: 'foo' }),
Ember.Object.create({ name: 'bar' }),
],
@clekstro
clekstro / adapters.application.js
Created August 9, 2017 08:58 — forked from samselikoff/mirage.config.js
Mirage dev boilerplate
import DS from 'ember-data';
export default DS.RESTAdapter.extend({
host: 'https://api.travis-ci.org'
});