This file contains hidden or 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
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''" | |
echo " Updating " | |
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''" | |
apt update | |
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''" | |
echo " Upgrading " | |
echo "''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''" | |
apt upgrade -y |
This file contains hidden or 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
# Bash | |
alias ll='ls -a' | |
alias c='clear' | |
alias rcache="find . | grep -E '(__pycache__|\.pyc|\.pyo$)' | xargs rm -rf && find . | grep -E '(.pytest_cache|\.pyc|\.pyo$)' | xargs rm -rf " | |
# Projects | |
alias up='make local' | |
alias run='npm run local' | |
alias rund='npm run dev' | |
alias down='make local-stop' |
This file contains hidden or 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
from django.contrib.auth.models import PermissionsMixin | |
from django.db import models | |
from django.utils.http import urlquote | |
from django.utils.translation import ugettext_lazy as _ | |
class CustomUserManager(BaseUserManager): | |
""" | |
Custom user model manager where email is the identifier for authentication | |
instead of usernames. |