sudo apt install \
autoconf \
bison \
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
| git init --bare $HOME/.cfg | |
| alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME' | |
| config --local status.showUntrackedFiles no | |
| echo "alias config='/usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME'" >> $HOME/.zshrc | |
| function config { | |
| /usr/bin/git --git-dir=$HOME/.cfg/ --work-tree=$HOME $@ | |
| } | |
| mkdir -p .config-backup | |
| config checkout |
When creating a container, forward two ports 22 (for ssh) and 6006 (for Tensorboard) and 8888 (for jupyter).
docker run -ti --runtime=nvidia --gpus all -p 8082:22 -p 8083:6006 -p 8084:8888 nvidia/cuda:10.2-cudnn7-devel-ubuntu18.04 /bin/bash
you may need to install these
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
| extension UIView { | |
| func addSubviewsUsingAutoLayout(_ views: UIView ...) { | |
| subviews.forEach { | |
| self.addSubview($0) | |
| $0.translatesAutoresizingMaskIntoConstraints = false | |
| } | |
| } | |
| } | |
| @objc extension NSLayoutAnchor { |
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
| # <type>: <subject> (Max 50 char, Why is this change necessary?) | |
| # |<---- Using a Maximum Of 50 Characters ---->| | |
| # |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->| | |
| # Explain how the commit addresses the issue | |
| # IMPORTANT!! Describe any side effects of the change. | |
| # Provide links or keys to any relevant tickets, articles or other resources | |
| # Examples: "Jira issue [ABC-123]" or "Closes Github issue #123" |