Skip to content

Instantly share code, notes, and snippets.

@ines
ines / .zshrc
Last active February 28, 2021 19:42
Command to activate / create Python virtual environmment
function venv {
default_envdir=".env"
envdir=${1:-$default_envdir}
if [ ! -d $envdir ]; then
python -m venv $envdir
pip install ipython black flake8
echo -e "\x1b[38;5;2m✔ Created virtualenv $envdir\x1b[0m"
fi
source $envdir/bin/activate
@rossant
rossant / linux_commands.md
Last active August 29, 2015 14:08
Useful Linux commands (tested on Ubuntu 14.04)

Useful Linux commands

Check drive speed

Read

sudo hdparm -t /dev/sda