Concatenating partitions into one
hadoop fs -cat /path/to/the/file >> out.put.txt
sudo find ./ -iname "*.jar"
jar cvf xyz.jar folder/of/all/*.class
javac -cp :folder_of_all_jars/* abcd.java
java -cp ":folder_of_all_jars/*" abcd
Path of java library
/usr/libexec/java_home -V
https://spark.apache.org/docs/2.1.0/sql-programming-guide.html
https://repo1.maven.org/maven2/
echo "set enable-bracketed-paste off" >> ~/.inputrc
[i for i in sentence if ....]
[i if ... else ... for i in original_prices]
python -c "import torch; print(torch.cuda.is_available()); print(torch.version.cuda) ; print(torch.__version__); print(torch.cuda.device_count())"
python -c "import torch; print(torch.__file__); print(torch.__version__); print(torch.cuda.device_count())"
sudo spctl --master-disable
then disable sudo spctl --master-enable
chmod 600 ~/.ssh/config
Host *
IgnoreUnknown UseKeychain
AddKeysToAgent yes
UseKeychain yes
IdentityFile ~/.ssh/id_rsa
sudo find / -iname "dist-packages"
hadoop fs -du -s -h /user/ppathak/
du -s -h ./
find /etc -type f | wc -l
pgrep -lf sshfs
kill -9 <pid_of_sshfs_process>
sudo umount -f <mounted_dir>
sshpass -p <password here> ssh -f [email protected] -L 5556:greene.hpc.nyu.edu:22 -N
sshpass -p <password here> ssh -p 5556 [email protected]
Do not use sshpass for sshfs
sshfs -p 5556 [email protected]:/home/pp1953/reid ~/NYU/project2
Check status of each GPU checkstatus.sh
truncate -s 0 status.txt
while read HOST ;
do
ssh $HOST "echo $HOST >> status.txt ; nvidia-smi >> status.txt" < /dev/null ;
done < servers.txt
server.sh
gpu001
gpu002
rsync -av --ignore-existing ucf:/home/c3-0/datasets/MSRVTT/MSRVTT/* ./
https://github.com/ppriyank/Github-Tutorial/blob/master/README.md
which java
Pointing to actual path :
ls -l `which java`
Fonts: https://tex.stackexchange.com/questions/56008/different-sizes-of-font-available-in-table
vim ~/.bashrc
vim ~/.bash_profile
conda config --set auto_activate_base false
conda activate pathak3
alias session="tmux new -s pathak; tmux a -t pathak"
alias gpus="watch nvidia-smi"
alias refresh='clear; reset; source ~/.bash_profile; source ~/.bashrc'
refresh
x=`nmap -sP 10.173.214.0/24 | grep -Eo '[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}' `
echo $x
for each in $x
do
echo $each
ssh -o StrictHostKeyChecking=no -oBatchMode=yes -i ~/.ssh/cluster priyank@$each
done
scontrol write batch_script 128104 -