Skip to content

Instantly share code, notes, and snippets.

View mjalajel's full-sized avatar

Mahmoud Jalajel mjalajel

View GitHub Profile
# Example ssh config file. Usually located in ~/.ssh/config (user) or /etc/ssh/ssh_config (system)
# This works on both linux and MacOS
# Basic ssh commands converted to ssh/config file format
# Simplest format
# Run with: "ssh blog" => (equivalent to: "ssh [email protected]" and "ssh -i ~/.ssh/id_rsa -p 22 [email protected]")
Host blog
@mjalajel
mjalajel / export-pip-dependencies.sh
Created February 28, 2017 08:30
export/import pip dependencies (with versions)
#Export (machine A)
source {$venv_path}/bin/activate
pip freeze --local > requirements.txt