Skip to content

Instantly share code, notes, and snippets.

require 'json'
Terrafying::Generator.generate do
resource :aws_iam_role, "test_assume_role", {
name: "test-assume-role",
assume_role_policy: JSON.pretty_generate(
{
Version: "2012-10-17",
Statement: [
@tombooth
tombooth / gist:79e73f75c827360b1c0df073f2bbb102
Created July 11, 2017 10:14
Number of commiters over time period
git shortlog -sne --since="01 Jan 2017" --before="01 July 2017"
@tombooth
tombooth / build.sh
Created May 5, 2017 09:37
Different UTS_VERSION and uname -v
#!/bin/sh
gcc -I/lib/modules/$(uname -r)/build/include demo.c
@tombooth
tombooth / logging.out
Created October 25, 2016 13:30
Docker logging race condition (master:28ef366ceab60d6ff15b343171da6ff2d5d0992e)
WARN[0068] DEPRECATED: Setting host configuration options when the container starts is deprecated and has been removed in Docker 1.12
ERRO[0068] fifo /proc/self/fd/13 was closed before opening
[41] Write event
[41] Recevied event 1
Processed event 1
[19] Write event
[19] Recevied event 2
[41] Write event
Processed event 2
[41] Recevied event 2
@tombooth
tombooth / logging.out
Created October 25, 2016 11:28
Docker logging deadlock
ERRO[0462] Handler for POST /v1.15/containers/60fdad645340b738cbf433654d683378538081a62f32ac6b89daed2027aec95b/stop returned error: Container 60fdad645340b738cbf433654d683378538081a62f32ac6b89daed2027aec95b is already stopped
WARN[0462] DEPRECATED: Setting host configuration options when the container starts is deprecated and will be removed in Docker 1.12
[38] Write event
[38] Recevied event 1
Processed event 1
[19] Write event
[19] Recevied event 2
Processed event 2
[38] Write event
[38] Recevied event 2

Keybase proof

I hereby claim:

  • I am tombooth on github.
  • I am tombooth (https://keybase.io/tombooth) on keybase.
  • I have a public key whose fingerprint is F453 783F 73BE C67C 929C 9341 B732 4F66 C593 F6DD

To claim this, I am signing this object:

20:02:07, 21 Mar. PPP LCP Send Termination Request (User request)
20:02:04, 21 Mar. PPP LCP Send Termination Request (User request)
20:02:03, 21 Mar. DSL Link Down: duration was 12 seconds
20:02:01, 21 Mar. PPP LCP Send Configuration Request
20:01:57, 21 Mar. PPP LCP Send Configuration Request
20:01:54, 21 Mar. PPP LCP Send Configuration Request
20:01:51, 21 Mar. DSL Link Up: Down Rate=20340Kbps, Up Rate=1121Kbps; SNR Margin Down=3.1dB, Up=6.3dB
20:01:20, 21 Mar. admin login success from 192.168.1.170
20:01:00, 21 Mar. PPP LCP Send Termination Request (User request)
20:00:57, 21 Mar. PPP LCP Send Termination Request (User request)
### Keybase proof
I hereby claim:
* I am tombooth on github.
* I am tombooth (https://keybase.io/tombooth) on keybase.
* I have a public key whose fingerprint is C6D8 DECD 858E EC24 3B64 51D6 0609 909C 807A AD1E
To claim this, I am signing this object:
var vm = require('vm');
function checkArr(arr) {
return arr instanceof Array;
}
var context = vm.createContext({
checkArr: checkArr,
console: console
});
{
"output": "CheckGraphiteData CRITICAL: No data for time period and/or target\n",
"status": 2,
"issued": 1381336477,
"handlers": [
],
"flapping": false,
"occurrences": 20091,
"client": "frontend-app-1.localdomain",