alpha
Login
or
Join now
j3s.sh
/
dotfiles
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
my dotz
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
Add sh functions
author
j3s
date
5 years ago
(Jun 14, 2021, 10:49 AM -0500)
commit
888b4099
888b4099a0783548162cf197eab3af5964325a05
parent
7afbc506
7afbc506196164839823ada1258fe7bd0262afe9
+70
7 changed files
Expand all
Collapse all
Unified
Split
bin
MACC02VK5ECHTD7
berksmass
bua
ec2e
jws-ami
rvm-shell
terraform
uop
+5
bin/MACC02VK5ECHTD7/berksmass
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
for i in test stage prod; do
4
4
+
CHEF_ENV=browse_$i bundle exec berks upload
5
5
+
done
+15
bin/MACC02VK5ECHTD7/bua
Reviewed
···
1
1
+
#!/bin/sh -e
2
2
+
3
3
+
# purge berks
4
4
+
# rm -f Berksfile.lock
5
5
+
# bundle exec berks install
6
6
+
7
7
+
envs="test stage prod"
8
8
+
9
9
+
for env in $envs; do
10
10
+
CHEF_ENV=browse_$env bundle exec berks upload &
11
11
+
done
12
12
+
13
13
+
wait
14
14
+
15
15
+
echo "upload complete"
+26
bin/MACC02VK5ECHTD7/ec2e
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
query="$1"
4
4
+
shift 2> /dev/null
5
5
+
case "$query" in
6
6
+
(i-*) filter="id=$query" ;;
7
7
+
(*) filter="name=$query" ;;
8
8
+
esac
9
9
+
10
10
+
text=$(
11
11
+
printf "$*" | \
12
12
+
sed -e 's/bpe/-p browse_prod -r us-east-1/g' | \
13
13
+
sed -e 's/bpw/-p browse_prod -r us-west-2/g' | \
14
14
+
sed -e 's/bse/-p browse_stage -r us-east-1/g' | \
15
15
+
sed -e 's/bsw/-p browse_stage -r us-west-2/g' | \
16
16
+
sed -e 's/bte/-p browse_test -r us-east-1/g' | \
17
17
+
sed -e 's/btw/-p browse_test -r us-west-2/g' | \
18
18
+
sed -e 's/cpe/-p cgraph_prod -r us-east-1/g' | \
19
19
+
sed -e 's/cpw/-p cgraph_prod -r us-west-2/g' | \
20
20
+
sed -e 's/cse/-p cgraph_stage -r us-east-1/g' | \
21
21
+
sed -e 's/csw/-p cgraph_stage -r us-west-2/g' | \
22
22
+
sed -e 's/cte/-p cgraph_test -r us-east-1/g' | \
23
23
+
sed -e 's/ctw/-p cgraph_test -r us-west-2/g'
24
24
+
)
25
25
+
26
26
+
awless list instances --columns id,zone,name,state,type,privateip --filter "${filter}" $text
+9
bin/MACC02VK5ECHTD7/jws-ami
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
TOKEN=$(grep token ~/.deploy/creds.yaml | sed 's/.*token: //g')
4
4
+
5
5
+
for account in test stage prod cgraph_test cgraph_stage cgraph_prod; do
6
6
+
echo $account
7
7
+
curl -s -w "\n" --header "Authorization: Bearer $TOKEN" --header "Content-Type:application/json" "https://imr.monitoring.bestbuy.com/api/configuration/environments/$account" |
8
8
+
jq ".item.configuration.shared_$account.build_ami.centos" | grep us
9
9
+
done
+1
bin/MACC02VK5ECHTD7/rvm-shell
Reviewed
···
1
1
+
/bin/sh
+3
bin/MACC02VK5ECHTD7/terraform
Reviewed
···
1
1
+
#!/bin/sh
2
2
+
3
3
+
AWS_PROFILE=cgraph_prod /usr/local/bin/terraform $@
+11
bin/MACC02VK5ECHTD7/uop
Reviewed
···
1
1
+
#!/bin/sh -e
2
2
+
#
3
3
+
# pushes commits, makes PR, merges PR, uploads cookbooks
4
4
+
5
5
+
# bail if git branch is master
6
6
+
# bail if git status is not settled
7
7
+
8
8
+
git push -u origin HEAD
9
9
+
prnumber=$(bundle exec stash pull-request master | awk -F'pull-requests/' '{print $NF}')
10
10
+
bundle exec rake merge "$prnumber"
11
11
+
brm && bua