import locale
old_locale = locale.getlocale()
old_locale
('en_US', 'UTF-8')
# Where is the location of your current shall. Useful if we need to revert | |
echo $0 | |
# Install ZSH | |
sudo apt-get install zsh | |
# Instal GIT | |
sudo apt-get install git-core | |
# Install OhMyZSH |
import locale
old_locale = locale.getlocale()
old_locale
('en_US', 'UTF-8')
for file in *.pub | |
do | |
echo $file | |
ssh-keygen -l -E md5 -f $file | |
echo | |
done |
import hashlib | |
from io import BytesIO | |
BLOCKSIZE = 65536 | |
def digest_file(filename, hasher_alg=hashlib.sha1()): | |
hasher = hasher_alg | |
with open(filename, 'rb') as afile: | |
buf = afile.read(BLOCKSIZE) |
<!DOCTYPE html> | |
{% load i18n staticfiles %} | |
<html> | |
<!-- file: add_attachment.html --> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title>{% block title %}{% endblock %}</title> | |
</head> | |
<body> | |
<form action="" method="post" enctype="multipart/form-data"> |
def clear_whole_cache(): | |
print("Hey, the whole cache is cleared!") | |
def clear_partial_cache(): | |
print("Hey, partial cache is cleared!") |
# Python compiled classes | |
__pycache__/ | |
*.pyc | |
# SQLite databases | |
*.sqlite | |
*.sqlite3 | |
*.db | |
# Project specific |