Skip to content

Commit 628e5da

Browse files
committed
* added ssm-by-name
* added aws helper functions (export_aws & clear_aws) * added gitignore (gi) function * updated to latest rbenv * added homebrew cask/recipes (keybase & gpg2) * sublime User preference files
1 parent 55f3a13 commit 628e5da

10 files changed

+4233
-4206
lines changed

bin/ssm-by-name

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
#! /bin/bash
22
[[ -z $1 ]] && echo "Must supply an instance name" && exit 1
3-
INSTANCE_ID=$(aws ec2 describe-instances --filters "Name=tag:Name,Values=$1" --output text --query 'Reservations[*].Instances[*].InstanceId')
3+
INSTANCE_ID=$(aws ec2 describe-instances --filters "Name=instance-state-name,Values=running" "Name=tag:Name,Values=$1" --output text --query 'Reservations[*].Instances[*].InstanceId')
44
[[ -z $INSTANCE_ID ]] && echo "Could not find instance ID for $1" && exit 2
55
echo Connecting to $INSTANCE_ID
66
aws ssm start-session --target "$INSTANCE_ID"

conf/sublime-text-3/Packages/User/Package Control.merged-ca-bundle

+4,201-4,201
Large diffs are not rendered by default.

conf/sublime-text-3/Packages/User/Package Control.sublime-settings

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
"bootstrapped": true,
33
"in_process_packages":
44
[
5-
"Autoprefixer"
65
],
76
"installed_packages":
87
[
@@ -28,14 +27,17 @@
2827
"DocBlockr",
2928
"Dockerfile Syntax Highlighting",
3029
"EJS 2",
30+
"ESLint",
3131
"Function Name Display",
3232
"Git",
3333
"GitGutter",
3434
"Google Spell Check",
3535
"Groovy Snippets",
3636
"Grunt",
37+
"HTML-CSS-JS Prettify",
3738
"Increment Selection",
3839
"IntelliDocs",
40+
"JavaIME",
3941
"JSONLint",
4042
"LESS",
4143
"Line Endings Unify",
@@ -46,15 +48,19 @@
4648
"One Dark Material - Theme",
4749
"Package Control",
4850
"Pretty JSON",
51+
"Pretty YAML",
4952
"Puppet",
5053
"Random Everything",
54+
"RawLineEdit",
55+
"React IDE",
5156
"Ruby Completions",
5257
"Sass",
5358
"SFTP",
5459
"SideBarEnhancements",
5560
"Stringify",
5661
"SublimeCodeIntel",
5762
"SublimeLinter",
63+
"SublimeLinter-contrib-cloudformation",
5864
"SublimeLinter-contrib-terraform",
5965
"SublimeLinter-jshint",
6066
"SublimeLinter-php",

conf/sublime-text-3/Packages/User/Preferences.sublime-settings

+2-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,12 @@
88
"draw_white_space": "all",
99
"fade_fold_buttons": false,
1010
"font_face": "Source Code Pro Medium",
11-
"font_size": 16,
11+
"font_size": 13,
1212
"highlight_line": true,
1313
"highlight_modified_tabs": true,
14+
"hot_exit": false,
1415
"ignored_packages":
1516
[
16-
"Autoprefixer"
1717
],
1818
"indent_guide_options":
1919
[

init/30_osx_homebrew_casks.sh

+1
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ casks=(
123123
#webpquicklook
124124
divvy
125125
postman
126+
keybase
126127
)
127128

128129
# Install Homebrew casks.

init/30_osx_homebrew_recipes.sh

+1
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ recipes=(
4646
go
4747
gobject-introspection
4848
gradle
49+
gpg2
4950
5051
#graphviz
5152
#harfbuzz

link/.bash_profile

+3
Original file line numberDiff line numberDiff line change
@@ -13,3 +13,6 @@ export PATH="/usr/local/opt/openssl/bin:$PATH"
1313
eval "$(jenv init -)"
1414

1515
function terraform-compliance { docker run --rm -v $(pwd):/target -i -t eerkunt/terraform-compliance "$@"; }
16+
17+
test -e "${HOME}/.iterm2_shell_integration.bash" && source "${HOME}/.iterm2_shell_integration.bash"
18+

source/50_misc.sh

+14
Original file line numberDiff line numberDiff line change
@@ -68,3 +68,17 @@ urldecode() {
6868
local url_encoded="${1//+/ }"
6969
printf '%b' "${url_encoded//%/\\x}"
7070
}
71+
72+
export_aws(){
73+
# usage: export_aws filename.csv
74+
# default will be set to credentials.csv if not specified
75+
file="${1:-credentials.csv}"
76+
echo "export creds from ${file}"
77+
export AWS_ACCESS_KEY_ID=$(tail -1 ${file} | cut -d, -f 1 | tr -d '\040\011\012\015')
78+
export AWS_SECRET_ACCESS_KEY=$(tail -1 ${file} | cut -d, -f 2 | tr -d '\040\011\012\015')
79+
}
80+
81+
clear_aws() {
82+
# clear out all AWS_* environmnet variables
83+
unset $(env | grep -i ^aws | awk -F= '{print $1}')
84+
}

source/50_vcs.sh

+2
Original file line numberDiff line numberDiff line change
@@ -173,3 +173,5 @@ if is_osx; then
173173
fi
174174
}
175175
fi
176+
177+
function gi() { curl -sL https://www.toptal.com/developers/gitignore/api/$@ ;}

vendor/rbenv

Submodule rbenv updated from c8ba27f to c879cb0

0 commit comments

Comments
 (0)