Skip to content

Instantly share code, notes, and snippets.

View alisdair's full-sized avatar

Alisdair McDiarmid alisdair

  • Vancouver, BC
  • 04:27 (UTC -08:00)
View GitHub Profile

Keybase proof

I hereby claim:

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

To claim this, I am signing this object:

2020/02/10 11:31:43 [INFO] Terraform version: 0.11.14
2020/02/10 11:31:43 [INFO] Go runtime version: go1.12.4
2020/02/10 11:31:43 [INFO] CLI args: []string{"C:\\Program Files\\Terraform\\terraform.exe", "init"}
2020/02/10 11:31:43 [DEBUG] Attempting to open CLI config file: C:\Users\alisd\AppData\Roaming\terraform.rc
2020/02/10 11:31:43 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2020/02/10 11:31:43 [INFO] CLI command args: []string{"init"}
2020/02/10 11:31:43 [DEBUG] command: loading backend config file: C:\Users\alisd\tf-example
2020/02/10 11:31:43 [INFO] command: empty terraform config, returning nil
2020/02/10 11:31:43 [DEBUG] command: no data state file found for backend config
2020/02/10 11:31:43 [DEBUG] New state was assigned lineage "ba9ad26a-10dd-4b1b-706d-80af33d69609"
@alisdair
alisdair / intensify.sh
Created May 21, 2019 23:44
intensifies Slack emoji creator
#!/bin/bash
# Generate a `:something-intensifies:` Slack emoji, given a reasonable image
# input. I recommend grabbing an emoji from https://emojipedia.org/
set -euo pipefail
# Number of frames of shaking
count=10
# Max pixels to move while shaking
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@alisdair
alisdair / controllers.application.js
Created September 27, 2017 14:23
Reject vs Catch: Failures and Exceptions Part 2
import Ember from 'ember';
const { RSVP } = Ember;
const success = (time) => new RSVP.Promise((resolve) => setTimeout(resolve, time));
const failure = (time) => new RSVP.Promise((_, reject) => setTimeout(reject, time));
export default Ember.Controller.extend({
logs: ['Initialized'],
@alisdair
alisdair / controllers.application.js
Last active September 27, 2017 14:22
Reject vs Catch: Failures and Exceptions Part 1
import Ember from 'ember';
const { RSVP } = Ember;
const success = (time) => new RSVP.Promise((resolve) => setTimeout(resolve, time));
const failure = (time) => new RSVP.Promise((_, reject) => setTimeout(reject, time));
export default Ember.Controller.extend({
logs: ['Initialized'],
@alisdair
alisdair / fake-statsd.rb
Created July 28, 2017 18:33
It's a statsd! Kind of!
#!/usr/bin/env ruby
require 'socket'
require 'optparse'
port = 8125
pattern = /./
OptionParser.new do |opts|
opts.banner = "Usage: #{File.basename(__FILE__)} [options]"
@alisdair
alisdair / .vimrc
Created July 4, 2017 13:17
Basic vimrc
call plug#begin()
Plug 'ctrlpvim/ctrlp.vim'
Plug 'editorconfig/editorconfig-vim'
Plug 'elixir-lang/vim-elixir'
Plug 'ervandew/supertab'
Plug 'joukevandermaas/vim-ember-hbs'
Plug 'leafgarland/typescript-vim'
Plug 'pangloss/vim-javascript'
Plug 'tomasr/molokai'
Plug 'tpope/vim-commentary'
@alisdair
alisdair / components.link-href.js
Last active January 26, 2017 10:03
Disabling links prototype
@alisdair
alisdair / another-component.component.js
Last active August 29, 2016 12:32
Assertion Failed: A helper named "example.edit" could not be found
import Ember from 'ember';
export default Ember.Component.extend({
});