Keybase proof
I hereby claim:
- I am eculver on github.
- I am eculver (https://keybase.io/eculver) on keybase.
- I have a public key whose fingerprint is 0A08 44A8 D6ED CCDD 4929 9BCD B530 10D9 1726 B005
To claim this, I am signing this object:
# this defines a role "role-name" in the account where this TF will be applied | |
resource "aws_iam_role" "role_name" { | |
name = "role-name" | |
description = "Allows role-name to do things in account" | |
assume_role_policy = "${data.aws_iam_policy_document.my_role.json}" | |
} | |
# this says that any one in a separate account with ID 123456789012 can assume the "role-name" role | |
data "aws_iam_policy_document" "role_name" { | |
statement { |
// run at: https://play.golang.org/p/bhgYlgGbdHz | |
package main | |
import ( | |
"fmt" | |
) | |
func main() { | |
total := 22 | |
batch := 3 |
foo := a.o b.o c.o | |
bar := $(foo:%.o=%) | |
.PHONY: test | |
test: | |
echo $(bar) |
// FindAllGroups returns a map with each match group. The map key corresponds to the match group name. | |
// A nil return value indicates no matches. | |
func FindAllGroups(re *regexp.Regexp, s string) map[string]string { | |
matches := re.FindStringSubmatch(s) | |
subnames := re.SubexpNames() | |
if matches == nil || len(matches) != len(subnames) { | |
return nil | |
} | |
matchMap := map[string]string{} |
#!/bin/bash | |
ls /usr/share/man/man* | cut -d '.' -f1 | sort -u | shuf -n1 | xargs man |
$ tmux attach | |
protocol version mismatch (client 7, server 6) | |
$ pgrep tmux | |
3429 | |
$ /proc/3429/exe attach |
%SN/S%0S/%S.N-S%0SE%0E-%E.N | |
Sample: | |
Show Name/S02/Show.Name-S02E03-Ep.Name.ext |
I hereby claim:
To claim this, I am signing this object:
# in .vimrc install w/ Vundle/Pathogen/etc | |
# Bundle "command-t" | |
# build the extension | |
cd ~/.vimrc/bundle/command-t/ruby/command-t | |
ruby extconf.rb | |
make | |
# restart vim |
if ($parentId) { | |
$parentCondition = "node-closure.ancestor = $parentId"; | |
$parentCondition = "node-closure.depth = 1"; | |
} else if ($rootId) { | |
$parentCondition = "node-closure.ancestor = $rootId"; | |
} | |
$clientCondition = "node.clientId = $clientId"; | |
$assetCrit->addExpr('where', $parentCondition) |