Skip to content

Instantly share code, notes, and snippets.

View antonbabenko's full-sized avatar
🇺🇦

Anton Babenko antonbabenko

🇺🇦
View GitHub Profile
@antonbabenko
antonbabenko / crash.log
Last active October 3, 2016 09:47
terragrunt apply
[terragrunt] 2016/09/29 13:43:00 Remote state is already configured for backend s3
[terragrunt] 2016/09/29 13:43:00 Attempting to acquire lock for state file tf-states_us-west-2_dev in DynamoDB
[terragrunt] 2016/09/29 13:43:01 Attempting to create lock item for state file tf-states_us-west-2_dev in DynamoDB table terragrunt_locks
fatal error: unexpected signal during runtime execution
[signal 0xb code=0x1 addr=0xa6414620 pc=0xcecf]
runtime stack:
runtime.throw(0x4d6480, 0x2a)
/usr/local/go/src/runtime/panic.go:547 +0x79
runtime.sigpanic()
@antonbabenko
antonbabenko / crash.log
Created September 7, 2016 12:34
runghc -v Interpreter.hs
Glasgow Haskell Compiler, Version 8.0.1, stage 2 booted by GHC version 8.0.1
Using binary package database: /usr/local/Cellar/ghc/8.0.1/lib/ghc-8.0.1/package.conf.d/package.cache
loading package database /usr/local/Cellar/ghc/8.0.1/lib/ghc-8.0.1/package.conf.d
wired-in package ghc-prim mapped to ghc-prim-0.5.0.0
wired-in package integer-gmp mapped to integer-gmp-1.0.0.1
wired-in package base mapped to base-4.9.0.0
wired-in package rts mapped to rts
wired-in package template-haskell mapped to template-haskell-2.11.0.0
wired-in package ghc mapped to ghc-8.0.1
wired-in package dph-seq not found.
@antonbabenko
antonbabenko / feedback.txt
Created August 31, 2016 13:01
Fugue feedback by Anton
1. No way to set region during `fugue init` command.
2. AWS profiles with assuming roles is not supported.
3.
@antonbabenko
antonbabenko / crash.log
Created August 23, 2016 09:07
crash.log - 0.7.1
This file has been truncated, but you can view the full file.
2016/08/23 11:03:32 [INFO] Terraform version: 0.7.1
2016/08/23 11:03:32 [INFO] CLI args: []string{"/usr/local/Cellar/terraform/0.7.1/bin/terraform", "plan", "-input=false", "-detailed-exitcode", "-var-file=shared.us-west-2.tfvars", "/Users/Bob/Sites/devops-infrastructure/layers/yourmd-staging/shared"}
2016/08/23 11:03:32 [DEBUG] Detected home directory from env var: /Users/Bob
2016/08/23 11:03:32 [DEBUG] Detected home directory from env var: /Users/Bob
2016/08/23 11:03:32 [DEBUG] Attempting to open CLI config file: /Users/Bob/.terraformrc
2016/08/23 11:03:32 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/08/23 11:03:32 [DEBUG] Detected home directory from env var: /Users/Bob
2016/08/23 11:03:32 [TRACE] Preserving existing state lineage "f449d192-ac66-4793-b40a-4a2e09dbb593"
2016/08/23 11:03:32 [TRACE] Preserving existing state lineage "f449d192-ac66-4793-b40a-4a2e09dbb593"
2016/08/23 11:03:33 [WARN] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
@antonbabenko
antonbabenko / crash.log
Created August 10, 2016 11:23
Terraform 0.7.0 crash report
2016/08/10 13:16:58 [INFO] Terraform version: 0.7.0
2016/08/10 13:16:58 [DEBUG] Detected home directory from env var: /Users/Bob
2016/08/10 13:16:58 [DEBUG] Detected home directory from env var: /Users/Bob
2016/08/10 13:16:58 [DEBUG] Attempting to open CLI config file: /Users/Bob/.terraformrc
2016/08/10 13:16:58 [DEBUG] File doesn't exist, but doesn't need to. Ignoring.
2016/08/10 13:16:58 [DEBUG] Detected home directory from env var: /Users/Bob
2016/08/10 13:16:59 [WARN] Ignoring AWS metadata API endpoint at default location as it doesn't return any instance-id
2016/08/10 13:16:59 [TRACE] Graph after step *terraform.ConfigTransformer:
data.terraform_remote_state.application - *terraform.GraphNodeConfigResource
@antonbabenko
antonbabenko / write_comment.sh
Created May 31, 2016 08:54
Write comment to github PR
curl -H "Authorization: token $GITHUB_TOKEN" \
-X POST https://api.github.com/repos/antonbabenko/myrepo/issues/123/comments \
--data '{"body": "Nice change"}'
@antonbabenko
antonbabenko / sns.php
Created March 9, 2016 19:46
Debug SNS messages
<?php
// Fetch the raw POST body containing the message
$postBody = file_get_contents('php://input');
error_log($postBody);
// JSON decode the body to an array of message data
$message = json_decode($postBody, true);
if ($message) {
@antonbabenko
antonbabenko / gist:789b71cb1fcaa2e20e67
Last active August 29, 2015 14:11
Crash report - libvmod-cookie SHA 0424757aa69fc8769c50e04d3e24601979cb38b5
Process: varnishd [50834]
Path: /usr/local/Cellar/varnish/4.0.2/sbin/varnishd
Identifier: varnishd
Version: 0
Code Type: X86-64 (Native)
Parent Process: varnishd [50225]
Responsible: varnishd [50834]
User ID: -2
Date/Time: 2014-12-11 21:53:15.438 +0100
@antonbabenko
antonbabenko / varnish_version.sh
Created October 2, 2014 17:16
Print current Varnish version sha (tested with version 4)
#!/bin/sh
{ varnishd -V; } 2> version_file ; cat version_file | head -1 | awk '{ print out substr($4, 0, 7) }'
@antonbabenko
antonbabenko / reloadvcl.sh
Last active April 26, 2018 08:47
Watch default.vcl changes and reload on the fly (must-have for working with Varnish locally)
#!/bin/bash
#####
# Watch changes in default.vcl and reload a varnish config:
# sudo su -
# fswatch -o /usr/local/etc/varnish/default.vcl | xargs -n1 /Users/Bob/bin/reloadvcl
####
FILE="/usr/local/etc/varnish/default.vcl"