watch -n 0.5 nvidia-smi
# alternatively
nvidia-smi -l 0.5
This file contains hidden or 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 | |
| # Define the path to your root folder | |
| rootFolder="." | |
| # Define the path to your input folder (folderA) | |
| folderA="$rootFolder/align" | |
| # Function to delete excess files and print file count | |
| delete_excess_files () { |
This file contains hidden or 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
| for file in *.HEIC; do | |
| echo "${file%.*}" | |
| convert $file -resize "1920>" -quality 75 "${file%.*}.png" | |
| done |
Replace FILEID and FILENAME with id and filename (there are 2 FILEID and 1 FILENAME to replace)
wget – load-cookies /tmp/cookies.txt "https://docs.google.com/uc?export=download&confirm=$(wget – quiet – save-cookies /tmp/cookies.txt – keep-session-cookies – no-check-certificate 'https://docs.google.com/uc?export=download&id=FILEID' -O- | sed -rn 's/.*confirm=([0-9A-Za-z_]+).*/\1\n/p')&id=FILEID" -O FILENAME && rm -rf /tmp/cookies.txtA lot of GitHub projects need to have pretty math formulas in READMEs, wikis or other markdown pages. The desired approach would be to just write inline LaTeX-style formulas like this:
$e^{i \pi} = -1$Unfortunately, GitHub does not support inline formulas. The issue is tracked here.
This file contains hidden or 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
| $ python -m pip install [package] |
For MacOS
$ cd /etc/; sudo nano bashrcFor Linux
$ gedit ~/.bashrc
This file contains hidden or 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. Homebrew Permissions Denied Issues Solution (https://gist.github.com/irazasyed/7732946) | |
| $sudo chown -R $(whoami) $(brew --prefix)/* | |
| # 2. Upgrade brew | |
| $brew upgrade | |
| # 3. https://stackoverflow.com/questions/30998890/installing-opencv-with-brew-never-finishes/31015713 | |
| $brew install gcc --force-bottle | |
| # 4. Install OpenCV | |
| $brew install opencv |
This file contains hidden or 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
| # The crash reports are stored in /var/crash directory in Ubuntu. | |
| # If you look in to this directory, you should see some files ending with crash. | |
| $ ls -l /var/crash/ | |
| # delete all the content of directory /var/crash. | |
| $ sudo rm /var/crash/* |