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
nvidia-docker save <docker-image-name> | gzip > <path-to-tgz-file> | |
nvidia-docker load -i <path-to-tgz-file> |
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
ssh -L <local-port>:<2nd-pc-address>:<2nd-pc-port> <1st-pc-address> | |
= | |
Host target-forwarding | |
Hostname <1st-pc-address> | |
User <1st-pc-username> | |
LocalForward <local-port> <2nd-pc-address>:<2nd-pc-port> | |
IdentityFile <1st-pc-identity-file> | |
# if unix is the gateway (1st-pc) and has its own configuration |
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
# Strict Host Key Checking avoids know_hosts nuisances | |
Host * | |
Compression Yes | |
ControlMaster auto | |
ControlPath /tmp/ssh-%r@%h:%p | |
ServerAliveInterval 60 | |
StrictHostKeyChecking no | |
# Adding two names to the same host server | |
Host name1 name2 |
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
;; Set up the keyboard so the delete key on both the regular keyboard | |
;; and the keypad delete the character under the cursor and to the right | |
;; under X, instead of the default, backspace behavior. | |
(global-set-key [delete] 'delete-char) | |
(global-set-key [kp-delete] 'delete-char) | |
(global-set-key "\C-h" 'delete-backward-char) | |
;; custom-set-variables was added by Custom. | |
;; If you edit it by hand, you could mess it up, so be careful. | |
;; Your init file should contain only one such instance. |
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
1- MobaXterm is too heavy and does not integrate well with git | |
2- Git bash: https://gitforwindows.org/ | |
3- Git bash is based on mingw: http://www.mingw.org/ | |
4- ConEmu: https://conemu.github.io/ | |
5- ConEmu works integrated with git-bash which integrates with mingw | |
6- ConEmu has some display glitches with wrong line wraps | |
7- It may be better to use cmder "commander": https://cmder.net/ | |
8- Cmder can be used on top of conemu, that is: | |
9- Cmder uses conemu as terminal and both integrates well with git-bash | |
10- Managing Python packages with pip can be difficult, |
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 | |
set -x | |
find ./ -maxdepth 1 -type l -delete | |
ln -s /raid1/data/tensorboard_logs/* ./ | |
ln -s /raid2/data/tensorboard_logs/* ./ | |
ln -s /raid3/data/tensorboard_logs/* ./ |
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
#!/usr/bin/env bash | |
NEW_HOSTNAME=$1 | |
echo $NEW_HOSTNAME > /proc/sys/kernel/hostname | |
sed -i 's/127.0.1.1.*/127.0.1.1\t'"$NEW_HOSTNAME"'/g' /etc/hosts | |
echo $NEW_HOSTNAME > /etc/hostname | |
service hostname start | |
su $SUDO_USER -c "xauth add $(xauth list | sed 's/^.*\//'"$NEW_HOSTNAME"'\//g' | awk 'NR==1 {sub($1,"\"&\""); print}')" |
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 | |
unison -perms 0 -rsrc false /home/andmax /media/andmax_bkp |
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
1- git config credential.helper store | |
2- git push | |
3- <type in password> |
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
python3 -m http.server <port> | |
python2 -m SimpleHTTPServer <port> |
OlderNewer