Skip to content

Instantly share code, notes, and snippets.

View arsdehnel's full-sized avatar

Adam Dehnel arsdehnel

  • Minneapolis, MN
View GitHub Profile
@arsdehnel
arsdehnel / terminal-output.log
Created October 10, 2018 10:55
kong-plugin Error
➜ kong-vagrant git:(master) ✗ vagrant up
Bringing machine 'default' up with 'virtualbox' provider...
==> default: Checking if box 'ubuntu/xenial64' is up to date...
==> default: Machine already provisioned. Run `vagrant provision` or use the `--provision`
==> default: flag to force provisioning. Provisioners marked to run always will still run.
➜ kong-vagrant git:(master) ✗ vagrant ssh
Welcome to Ubuntu 16.04.5 LTS (GNU/Linux 4.4.0-137-generic x86_64)
* Documentation: https://help.ubuntu.com
* Management: https://landscape.canonical.com
@arsdehnel
arsdehnel / hmac-test.js
Last active May 17, 2017 03:46
trying to work through a kong hmac implementation
const crypto = require( 'crypto' );
const hostname = 'localhost';
const proxyPort = '8000';
const http = require( 'http' );
const requestPath = '/v1.0/recognition/public-wall';
const hmacHeaders = ( username, secret ) => {
const date = new Date().toUTCString();
const stringToSign = 'date: ' + date;
const encodedSignature = crypto.createHmac( 'sha1', secret ).update( stringToSign ).digest( 'base64' );
@arsdehnel
arsdehnel / crash.log
Last active January 30, 2017 21:43
Terraform crash
2017/01/30 15:25:11 [INFO] Terraform version: 0.8.5 b4d477660b5abd20f2a70175460c9603797fada0
2017/01/30 15:25:11 [INFO] CLI args: []string{"/usr/local/bin/terraform", "plan"}
2017/01/30 15:25:11 [DEBUG] Detected home directory from env var: /Users/dehnel
2017/01/30 15:25:11 [DEBUG] Detected home directory from env var: /Users/dehnel
2017/01/30 15:25:11 [DEBUG] Attempting to open CLI config file: /Users/dehnel/.terraformrc
2017/01/30 15:25:11 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2017/01/30 15:25:11 [DEBUG] Detected home directory from env var: /Users/dehnel
2017/01/30 15:25:11 [TRACE] Preserving existing state lineage "6702bb27-c16d-47e3-8f6f-d58ef5ebf424"
2017/01/30 15:25:11 [TRACE] Preserving existing state lineage "6702bb27-c16d-47e3-8f6f-d58ef5ebf424"
2017/01/30 15:25:11 [TRACE] Graph after step *terraform.ConfigTransformerOld:
@arsdehnel
arsdehnel / iam-terraform-create-policy.tf
Last active September 21, 2023 18:12
AWS IAM policies for running Terraform from an EC2 instance.
resource "aws_iam_policy" "terraform_create_policy" {
name = "terraform_create_policy"
path = "/"
policy = "${data.aws_iam_policy_document.terraform_create_policy.json}"
}
data "aws_iam_policy_document" "terraform_create_policy" {
statement {
sid = "1"
actions = [
{
"people": {
"living": [
{
"lat": 42,
"long": 59,
"length": 10
},
{
"lat": 31,
@arsdehnel
arsdehnel / docker-compose.yml
Created May 18, 2016 02:24
Kong Docker Compose
cassandra:
image: mashape/cassandra
kong:
image: vikingco/kong
links:
- cassandra
ports:
- "8001:8001"
- "8000:8000"
@arsdehnel
arsdehnel / dabblet.css
Created April 8, 2013 18:40
entire container, keeps perspective
/* entire container, keeps perspective */
.flip-container {
perspective: 1000;
}
/* flip the pane when the "hover" class is added */
.flip-container.hover .flipper {
transform: rotateY(180deg);
}