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
sudo apt install zsh | |
## This needs sudo password, so if not available, add a command "zsh" at the end of your .bashrc file | |
chsh -s /usr/local/bin/zsh | |
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)" | |
git clone https://github.com/zsh-users/zsh-autosuggestions $ZSH_CUSTOM/plugins/zsh-autosuggestions | |
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting |
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 gdown | |
#file_id can be obtained by right-clicking the download button on the file page on drive | |
file_id=1C9b5GZI0QfDlgKhJfxui5CbzDTsVkLiG | |
gdown https://drive.google.com/uc?id=${file_id} | |
# this works. Tested on June 2020 |
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
### Mostly for personal usage but can help others too | |
# nvidia-smi | |
& 'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe' | |
# watch nvidia-smi | |
while (1) {clear;& 'C:\Program Files\NVIDIA Corporation\NVSMI\nvidia-smi.exe'; sleep 5} | |
# some good substitutes for bash command | |
mv --> move |
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
jupyter notebook --generate-config | |
jupyter notebook password | |
vi ~/.jupyter/jupyter_notebook_config.py | |
# # Set ip to '*' to bind on all interfaces (ips) for the public server | |
# c.NotebookApp.allow_origin = '*' | |
# c.NotebookApp.ip = '0.0.0.0' | |
# c.NotebookApp.open_browser = False |
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
git config --global user.name "Rupesh" | |
git config --global user.email "rupesh95903@gmail.com" | |
git config --global color.ui true | |
git config --global core.editor vim | |
git config --global credential.helper store # only on your private machines |
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 numpy as np | |
import os | |
import numpy as np | |
import tensorflow as tf | |
from tensorflow.keras.models import * | |
from tensorflow.keras.layers import * | |
def model(pretrained_weights = None,input_size = (224,224,3), outchannel = 25, dropout_p = 0.25): | |
inputTensor = tf.keras.Input(IMG_SHAPE) | |
## Feature extractor network |