Skip to content

Instantly share code, notes, and snippets.

🏋

Alisdair McDiarmid alisdair

🏋
Block or report user

Report or block alisdair

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View terraform.log
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
intensifies Slack emoji creator
View intensify.sh
#!/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
View controllers.application.js
import Ember from 'ember';
export default Ember.Controller.extend({
appName: 'Ember Twiddle'
});
@alisdair
alisdair / controllers.application.js
Created Sep 27, 2017
Reject vs Catch: Failures and Exceptions Part 2
View controllers.application.js
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 Sep 27, 2017
Reject vs Catch: Failures and Exceptions Part 1
View controllers.application.js
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 Jul 28, 2017
It's a statsd! Kind of!
View fake-statsd.rb
#!/usr/bin/env ruby
require 'socket'
require 'optparse'
port = 8125
pattern = /./
OptionParser.new do |opts|
opts.banner = "Usage: #{File.basename(__FILE__)} [options]"
View .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 Jan 26, 2017
Disabling links prototype
View components.link-href.js
@alisdair
alisdair / another-component.component.js
Last active Aug 29, 2016
Assertion Failed: A helper named "example.edit" could not be found
View another-component.component.js
import Ember from 'ember';
export default Ember.Component.extend({
});
@alisdair
alisdair / controllers.application.js
Last active Aug 14, 2016
Eggs & Milk Minder 0.1
View controllers.application.js
import Ember from 'ember';
const { Controller, computed } = Ember;
export default Controller.extend({
total: computed('model.eggs', 'model.milk', function() {
return this.get('model.eggs') + this.get('model.milk');
})
});
You can’t perform that action at this time.