Skip to content

Instantly share code, notes, and snippets.

View jkakar's full-sized avatar

Jamu Kakar jkakar

View GitHub Profile
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines in the history. See bash(1) for more options
# ... or force ignoredups and ignorespace
HISTCONTROL=ignoreboth
# append to the history file, don't overwrite it
shopt -s histappend
-- Don't rollback the entire transaction if you typo a SQL query when
-- in interactive mode.
\set ON_ERROR_ROLLBACK interactive
-- Show query timing information.
\timing
-- Include transaction information in the prompt.
\set PROMPT1 '%[%033[33;1m%]%x%[%033[0m%]%[%033[1m%]%/%[%033[0m%]%R%# '
package main
import (
"bufio"
"fmt"
"log"
"net/http"
"os"
"strings"
"time"
$ rebar3 compile
===> Verifying dependencies...
===> Fetching edown ({git,"git://github.com/esl/edown.git",{tag,"0.4"}})
===> Compiling edown
===> Compiling /Users/jkakar/src/github.com/jkakar/rebar_edown_plugin/_build/default/lib/edown/src/edown_doclet.erl failed
/Users/jkakar/src/github.com/jkakar/rebar_edown_plugin/_build/default/lib/edown/src/edown_doclet.erl:116: field packages undefined in record doclet_gen
/Users/jkakar/src/github.com/jkakar/rebar_edown_plugin/_build/default/lib/edown/src/edown_doclet.erl:118: field filemap undefined in record doclet_gen
===> Evaluating config script "/Users/jkakar/src/github.com/jkakar/aws-erlang/_build/default/plugins/erlware_commons/rebar.config.script"
===> Evaluating config script "/Users/jkakar/src/github.com/jkakar/aws-erlang/_build/default/plugins/relx/rebar.config.script"
===> sh info:
cwd: "/Users/jkakar/src/github.com/jkakar/aws-erlang"
cmd: git rev-parse -q HEAD
===> opts: [{cd,"/Users/jkakar/src/github.com/jkakar/aws-erlang/_build/default/plugins/erlware_commons"}]
===> Port Cmd: git rev-parse -q HEAD
Port Opts: [{cd,"/Users/jkakar/src/github.com/jkakar/aws-erlang/_build/default/plugins/erlware_commons"},
# bash/zsh git prompt support
#
# Copyright (C) 2006,2007 Shawn O. Pearce <spearce@spearce.org>
# Distributed under the GNU General Public License, version 2.0.
#
# This script allows you to see repository status in your prompt.
#
# To enable:
#
# 1) Copy this file to somewhere (e.g. ~/.git-prompt.sh).
%% Join binary values using the specified separator.
binary_join([], _) -> <<"">>;
binary_join([H|[]], _) -> H;
binary_join(L, Sep) when is_list(Sep) ->
binary_join(L, list_to_binary(Sep));
binary_join([H|T], Sep) ->
binary_join(T, H, Sep).
binary_join([], Acc, _) ->
Acc;
-module(aws_config).
-export([make_config/0,
make_config/1]).
%%====================================================================
%% API
%%====================================================================
make_config() ->
default_creds() ->
#{access_key_id => undefined,
secret_access_key => undefined,
session_token => undefined}.
default_config() ->
Config = #{endpoint => undefined,
region => default_region()},
maps:merge(aws_creds:default_creds(), Config).