[<COMMIT-TAG>] Imperative one-liner explaining commit (less than 80 chars)
<blank-line>
Description body which could include ordered and unordered lists
1. Lorem ipsum
2. Lorem ipsum
3. Lorem ipsum
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
# Need to be sudo to install the following | |
yum update | |
yum install -y wget bzip2 tmux | |
# Download and run anaconda3 for python3 and follow instructions | |
wget https://repo.continuum.io/archive/Anaconda3-5.3.1-Linux-x86_64.sh | sh | |
# Conda install essential datascience packages | |
conda update --all | |
conda install pandas numpy scipy scikit-learn keras tensorflow pytorch nltk matplotlib seaborn |
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
# Port forward and ssh into the remote machine from your local terminal | |
ssh -L 8888:127.0.0.1:8888 user@remote-ip-address | |
# From remote machine | |
jupyter notebook --no-browser --port=8888 | |
# From local machine browser access localhost:8888 | |
# To make sure no other apps are running on that port | |
kill $(lsof -t -i:8888) |
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
# https://github.com/gpakosz/.tmux | |
# (‑●‑●)> dual licensed under the WTFPL v2 license and the MIT license, | |
# without any warranty. | |
# Copyright 2012— Gregory Pakosz (@gpakosz). | |
# -- navigation ---------------------------------------------------------------- | |
# if you're running tmux within iTerm2 | |
# - and tmux is 1.9 or 1.9a |
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 os | |
import re | |
import string | |
# Prerequisites: | |
# | |
# github_changelog_generator repo -t token --date-format '%Y-%m-%d %H:%M' -o 'CHANGELOG.md' | |
# git tag -l -n9 > a.txt | |
# All tags should be of type 'v\d[\.\w]*' |
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
# Kill process by program-name | |
ps -ax | grep <program-name> | awk '{print $1}' | xargs kill | |
# Kill processes using port | |
lsof -i:<port> | awk 'NR!=1 {print $2}' | xargs kill |