This script will pull down an S3 remote configuration before running any terraform actions. Assumes the following structure:
main.tf
terraform.cfg
env/dev/vars
env/staging/vars
env/whatever/vars
env/whatever/somefile.tf
/** | |
* AppleScript to launch iterm2 terminals/tabs with configurable: | |
* ~ Name <name> | |
* ~ List of commands <cmds> | |
* ~ Split behavior horizontal(h) or vertical(v) <split> :: (h, v) | |
* | |
* Run from terminal with `osascript iterm-launcher.js`. | |
* Don't unfocus with the mouse/keyboard while executing the script. | |
* | |
* JS port of https://github.com/luismartingil/scripts/blob/master/iterm_launcher02.applescript |
var AWS = require('aws-sdk'); | |
AWS.config.update({ | |
accessKeyId: '{AWS_KEY}', | |
secretAccessKey: '{AWS_SECRET}', | |
region: '{SNS_REGION}' | |
}); | |
var sns = new AWS.SNS(); |
This script will pull down an S3 remote configuration before running any terraform actions. Assumes the following structure:
main.tf
terraform.cfg
env/dev/vars
env/staging/vars
env/whatever/vars
env/whatever/somefile.tf
In this gist I would like to describe an idea for GraphQL subscriptions. It was inspired by conversations about subscriptions in the GraphQL slack channel and different GH issues, like #89 and #411.
At the moment GraphQL allows 2 types of queries:
query
mutation
Reference implementation also adds the third type: subscription
. It does not have any semantics yet, so here I would like to propose one possible semantics interpretation and the reasoning behind it.
-- Found at http://stackoverflow.com/a/17922821/597349 | |
DROP TABLE IF EXISTS urlcodemap; | |
CREATE TABLE `urlcodemap` ( | |
`id` INT(11) NOT NULL AUTO_INCREMENT, | |
`encoded` VARCHAR(128) NOT NULL, | |
`decoded` VARCHAR(128) NOT NULL, | |
UNIQUE KEY urlcodemapUIdx1(encoded), | |
PRIMARY KEY (`id`) |
'use strict'; | |
describe('mocha before hooks', function () { | |
before(() => console.log('*** top-level before()')); | |
beforeEach(() => console.log('*** top-level beforeEach()')); | |
describe('nesting', function () { | |
before(() => console.log('*** nested before()')); | |
beforeEach(() => console.log('*** nested beforeEach()')); | |
it('is a nested spec', () => true); | |
}); |
{ | |
repository(name: "sickvim", owner: "jonathansick") { | |
ref(qualifiedName: "master") { | |
target { | |
... on Commit { | |
id | |
history(first: 5) { | |
pageInfo { | |
hasNextPage | |
} |
admin: | |
port: 9990 | |
ip: 0.0.0.0 | |
routers: | |
# http 1.1: service -> [linkerd] -> linkerd -> service | |
# should lookup consul service then rewrite outgoing port to linkerd | |
- label: http1-out | |
protocol: http | |
servers: |
Creates an alias on the loopback interface (lo0) with the IP 10.200.10.1 on Mac OS X.
/Library/LaunchDaemons/com.runlevel1.lo0.alias.plist
chmod 0644 /Library/LaunchDaemons/com.runlevel1.lo0.alias.plist
sudo chown root:wheel /Library/LaunchDaemons/com.runlevel1.lo0.alias.plist
sudo launchctl load /Library/LaunchDaemons/com.runlevel1.lo0.alias.plist