Skip to content

Instantly share code, notes, and snippets.

Avatar

Mahmoud Jalajel mjalajel

View GitHub Profile
View ssh-config-basic
# 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 ubuntu@example.com" and "ssh -i ~/.ssh/id_rsa -p 22 ubuntu@example.com")
Host blog
@mjalajel
mjalajel / export-pip-dependencies.sh
Created Feb 28, 2017
export/import pip dependencies (with versions)
View export-pip-dependencies.sh
#Export (machine A)
source {$venv_path}/bin/activate
pip freeze --local > requirements.txt
You can’t perform that action at this time.