start new:
tmux
start new with session name:
tmux new -s myname
| # adding and committing | |
| git add -A # stages All | |
| git add . # stages new and modified, without deleted | |
| git add -u # stages modified and deleted, without new | |
| git commit --amend # Add staged changes to previous commit. Do not use if commit has been pushed. | |
| git commit --amend --no-edit # Do so without having to edit the commit message. | |
| # remotes - pushing, pulling, and tracking | |
| git fetch # gets remote objects and refs. Needed if new branches were added on the remote. | |
| git remote -v # Lists all remotes (verbose) |
| #!/bin/bash | |
| sudo apt-get install git python-pip make build-essential libssl-dev zlib1g-dev libbz2-dev libreadline-dev libsqlite3-dev curl | |
| sudo pip install virtualenvwrapper | |
| git clone https://github.com/yyuu/pyenv.git ~/.pyenv | |
| git clone https://github.com/yyuu/pyenv-virtualenvwrapper.git ~/.pyenv/plugins/pyenv-virtualenvwrapper | |
| echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.bashrc | |
| echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.bashrc |
Code is clean if it can be understood easily – by everyone on the team. Clean code can be read and enhanced by a developer other than its original author. With understandability comes readability, changeability, extensibility and maintainability.
| FROM python:3.5 | |
| MAINTAINER Marlon Baptista de Quadros([email protected]) | |
| ENV PYTHONUNBUFFERED 1 | |
| RUN apt-get update -y | |
| RUN apt-get -y install binutils libproj-dev gdal-bin postgresql-client python3-lxml | |
| RUN apt-get -y install libmemcached-dev |
| import logging.config | |
| import os | |
| from django.utils.log import DEFAULT_LOGGING | |
| # Disable Django's logging setup | |
| LOGGING_CONFIG = None | |
| LOGLEVEL = os.environ.get('LOGLEVEL', 'info').upper() | |
| logging.config.dictConfig({ |