-
Notifications
You must be signed in to change notification settings - Fork 0
/
justfile
69 lines (47 loc) · 2.72 KB
/
justfile
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
60
61
62
63
64
65
66
67
68
69
set shell := ["bash", "-uc"]
project_path := "~/MT-GMM"
ros_ws_path := "~/rviz_ws"
# start_ros:
# cd ~/fmm_ws && source devel/setup.bash
# # cd MasterProject
start_ros:
activateROS {{ros_ws_path}}
start_master no='2':
ssh -t administrator@fmm-{{no}}.local "sudo -s && cd ../hartzj/fmm_ws && source devel/setup.bash && roslaunch fmm arm_joint_impedance_control.launch"
login:
ssh -t [email protected] "cd /project/dl2021s/hartzj; /bin/bash -i"
worker no='37':
ssh -t -J [email protected] hartzj@tfpool{{no}} "cd /project/dl2021s/hartzj; /bin/bash -i"
attach_worker no='37':
ssh -t -X -J [email protected] hartzj@tfpool{{no}} "cd /project/dl2021s/hartzj; tmux attach || tmux new"
attach_pearl no='7' jh='35':
ssh -t -X -J [email protected],hartzj@tfpool{{jh}} hartzj@pearl{{no}} "tmux attach || tmux new"
attach_rlgpu no='5':
ssh -t -X -J [email protected] hartzj@rlgpu{{no}}.imbit.privat "tmux attach || tmux new"
ssh_rescale:
ssh -o '[email protected]' '[email protected]'
attach_rescale:
ssh -t -X -J [email protected] [email protected] "tmux attach || tmux new"
connect-tb no='37' dir='./data/':
ssh -t -L 6006:127.0.0.1:6006 -J [email protected] hartzj@tfpool{{no}} "cd /project/dl2021s/hartzj/dll_project; source venv/bin/activate venv/bin/python3.7; cd dll_project/python/; tensorboard --logdir={{dir}}"
scp-file file:
scp {{file}} [email protected]:/project/dl2021s/hartzj/dll_project/dll_project/{{file}}
setup-tunnel port='3111' no='7' jumphost='35':
ssh -L {{port}}:pearl{{no}}:22 -J [email protected] hartzj@tfpool{{jumphost}}
setup-tunnel-gpu no='5' port='3111':
ssh -L {{port}}:rlgpu{{no}}.imbit.privat:22 [email protected]
setup-tunnel-rlsim no='1' port='3111':
ssh -L {{port}}:rlsim{{no}}.imbit.privat:22 [email protected]
activate env='mt':
source ~/miniconda3/etc/profile.d/conda.sh
conda deactivate; conda activate {{env}}
attach-fmm no='1':
ssh -X [email protected] # "tmux attach || tmux new"
attach-fmm-admin no='1':
ssh -X [email protected] # "tmux attach || tmux new"
attach_rlsim no='1':
ssh -t -X -J [email protected] hartzj@rlsim{{no}} "tmux attach || tmux new"
rsync_rlsim target no='2':
rsync -hPr hartzj@rlsim{{no}}.imbit.privat:{{target}} {{target}}
scp_rescale source dest:
scp -oProxyCommand="ssh -W %h:%p [email protected]" [email protected]:/home/hartzj/{{source}} /home/jan/{{dest}}