forked from ShahShadow/env-config
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.bash_env_bdi
59 lines (44 loc) · 2.06 KB
/
.bash_env_bdi
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
export BDI=/bdi
export BDI_ENABLE_COLORGCC=false
export PYTHONPATH=$BDI/rt/python
export PATH=$PATH:$HOME/bin
export PATH=$PATH:$BDI/rt/scripts
export PATH=$PATH:/opt/puppetlabs/bin
export PATH=$PATH:$BDI/rt/build/tools/linux
export PATH=$PATH:$HOME/workspaces/experimental/users/hshah/docker-workspace
export OS=Linux
export BDI_OS=linux
export CCACHE_DIR=$BDI/.ccache
export ROBOT=dasani
alias db='$BDI/rt/scripts/run_linux_db.sh'
alias bosplot='python -m bdi.plot'
alias rgui='python -m bdi.robots.atlas4.rgui --manual-perception-logging'
alias hgui='python -m bdi.robots.handle.gui --auto-log-manip'
alias viz='python $BDI/rt/python/bdi/autonomy/visualizer/visualizer.py --robot=$ROBOT'
alias bn='(cd $BDI; build linux rt/sim/nextgen/gtest)'
alias bh='(cd $BDI; build linux rt/robots/handle)'
alias bs='(cd $BDI; build linux rt/sim/spot2/gtest)'
alias nt='GTEST_FILTER=*:-*Render*:*RunTwiceTest.Walk*:*RunTwiceTest.DB* ~/bdi/rt/sim/nextgen/gtest/run_gtests.sh 50'
alias cdbdstatus='cd /work/presentations/internal/meetings/2020'
read -r -d '' BDVPNUP_CMD << EOF
globalprotect connect --portal saturn.bostondynamics.com ;
echo "Waiting for routes to get generated..." &&
while [[ -z $(route -n | awk '/gpd0/{print $2}' | head -1) ]]; do sleep 1; done &&
sudo route del default dev gpd0 && sudo route add -net 10.0.0.0/8 gw $(route -n | awk '/gpd0/{print $2}' | head -1) dev gpd0
EOF
alias bdvpnup='(globalprotect connect --portal saturn.bostondynamics.com)'
alias bdvpndown='(globalprotect disconnect)'
rsync_team_slides() {
TEAM_LDAPS=(agosset ajose amoriarty bhollaway cbills chance csaint elorenzo hshah jjelinek jselvakumar jselv tkichkaylo)
DATE=$1
if [[ -z "$DATE" ]] ; then
DATE=`date -dmonday +%Y%m%d`
fi
echo "Syncing team slides for $DATE to ~/Desktop/fleet-status/$DATE"
INCLUDE_FILES=()
for i in "${TEAM_LDAPS[@]}" ; do INCLUDE_FILES+=(--include="*_$i.pptx") ; done
rsync -avrz "${INCLUDE_FILES[@]}" --exclude="*" /work/presentations/internal/meetings/2020/$DATE/ ~/Desktop/fleet-status/$DATE
}
rsync_last_team_slides() {
rsync_team_slides `date -dlast-monday +%Y%m%d`
}