This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #set($form = $input.path('$').split('&')) | |
| { | |
| #foreach($kvString in $form) | |
| #set($kv = $kvString.split('=')) | |
| "$kv[0]": "$util.urlDecode($kv[1])"#if($foreach.hasNext),#end | |
| #end | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| # NAME | |
| # jaws-deploy | |
| # | |
| # DESCRIPTION | |
| # jaws deploys lambdas/endpoints + aws cli (MFA enabled user) updates cloudformation template | |
| # | |
| # - user "$ADMIN_AWS_PROFILE" deploys lambdas/endpoints | |
| # - user "$ADMIN_AWS_PROFILE-cloudformation" (MFA enabled) updates cloudformation template |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| diff --git a/format.c b/format.c | |
| index 776de96..2ef5b84 100644 | |
| --- a/format.c | |
| +++ b/format.c | |
| @@ -503,6 +503,12 @@ format_defaults_session(struct format_tree *ft, struct session *s) | |
| *strchr(tim, '\n') = '\0'; | |
| format_add(ft, "session_created_string", "%s", tim); | |
| + t = s->activity_time.tv_sec; | |
| + format_add(ft, "session_activity", "%lld", (long long) t); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| gomain() { | |
| local f="/tmp/gomain-$$/main.go" | |
| mkdir -p $(dirname $f) | |
| cat <<_EOF_ > $f | |
| package main | |
| import ( | |
| "fmt" | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| BEGIN { | |
| FS = "\n"; | |
| "whoami" | getline user | |
| } | |
| { | |
| if (system("test -d \"" $1 "/.git\"") != 0) { | |
| next | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| docker-ls-volumes() { | |
| docker inspect $1 | jq '.[] | .Volumes' | |
| } | |
| docker-ls-ports() { | |
| docker inspect $1 | jq '.[] | .NetworkSettings.Ports' | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| cover () { | |
| COV="/tmp/go-coverage.$$.out" | |
| go test -covermode=count -coverprofile=$COV $@ && go tool cover -html=$COV && unlink $COV | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/sh | |
| COV_PARTIAL_FILE=profile.cov.out | |
| COV_FILE=profile-all.cov.out | |
| COV_MODE=count | |
| HEADER="mode: $COV_MODE" | |
| if which gxargs > /dev/null; then | |
| XARGS=gxargs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $('.file .meta').each(function(i, node) { | |
| var p = $(node).parents('.file'), | |
| filename = $(node). | |
| find('.js-selectable-text'). | |
| text(). | |
| replace(/(^\s+|\s+$)/g,''); | |
| if (!/\.rb$/i.test(filename)) { | |
| p.find('.data').toggle(); | |
| p.find('.image').toggle(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| unbind | | |
| bind | split-window -hc "#{pane_current_path}" | |
| unbind - | |
| bind - split-window -vc "#{pane_current_path}" | |
| bind 'c' new-window -c "#{pane_current_path}" |