This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf "\nSourcing ML PY env: ~/gpu_ml/bin/activate\n" | |
# activate the gpu_ml environment | |
source ~/gpu_ml/bin/activate | |
cd ~/gpu_ml/ | |
# open Jupyter lab on specific port | |
alias jlab="jupyter lab --port=8899" | |
alias lr="ls -ltrh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use ML as $ML in Linux (can use ip address instead of the DNS hostname) | |
export ML=mlgpu.ddns.net | |
# just like below ;) for the magic packer command to wake-up a remote machine | |
alias wake_gml="wakeonlan -i $ML -p 22 b3:21:88:6k:17:24" | |
# open ssh tunnel from ML to the laptop in port 8899 | |
alias sg="ssh -L 8899:localhost:8899 $ML" | |
# 'cd_ML' to quickly cd into the mounted directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#----------------------------------------------------------- | |
remotedir="USERNAME@HOST:/PATH/TO/MOUNT" # TODO Add directory on the remote machine | |
mountdir="/Users/user/Mount/Directory" # TODO Add local directory | |
echo "Mounting (${mountdir})..." | |
if [ -d "${mountdir}" ]; then | |
#Unmount if it's already mounted | |
if mount | grep "on $mountdir" > /dev/null; then | |
umount ${mountdir} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
printf "\nSourcing ML PY env: ~/gpu_ml/bin/activate\n" | |
# activate the gpu_ml environment | |
source ~/gpu_ml/bin/activate | |
cd ~/gpu_ml/ | |
# open Jupyter lab on specific port | |
alias jlab="jupyter lab --port=8899" | |
alias lr="ls -ltrh" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# use ML as $ML in Linux (can use ip address instead of the DNS hostname) | |
export ML=mlgpu.ddns.net | |
# just like below ;) for the magic packer command to wake-up a remote machine | |
alias wake_gml="wakeonlan -i $ML -p 22 b3:21:88:6k:17:24" | |
# open ssh tunnel from ML to the laptop in port 8899 | |
alias sg="ssh -L 8899:localhost:8899 $ML" | |
# 'cd_ML' to quickly cd into the mounted directory |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import matplotlib.pyplot as plt | |
plt.style.use('ml_style.mplstyle') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip install virtualenv |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir ~/my_project && | |
cd ~/my_project && | |
virtualenv my_project_env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
source ~/my_project/bin/activate |
OlderNewer