For excessively paranoid client authentication.
Updated Apr 5 2019:
because this is a gist from 2011 that people stumble into and maybe you should AES instead of 3DES in the year of our lord 2019.
some other notes:
| import numpy as np | |
| import matplotlib.pyplot as plt | |
| from sklearn.decomposition import PCA | |
| from skimage import color | |
| def visualize_vector_field_pca(vector_field): | |
| """ | |
| maximizes perceived variability of a 3D vector field by mapping | |
| its principal components to the L, a, and b channels. | |
| <html> | |
| <head> | |
| <title>exceljs sample</title> | |
| <script src="https://cdnjs.cloudflare.com/ajax/libs/exceljs/1.6.2/exceljs.js"></script> | |
| <script> | |
| function save(blob, fileName) { | |
| var a = document.createElement("a"); | |
| document.body.appendChild(a); |
| actor Actor | |
| boundary Boundary | |
| control Control | |
| entity Entity | |
| database Database | |
| :Actor alias: |
| # Fix left mouse click acting like a grab | |
| gsettings set org.gnome.desktop.wm.preferences mouse-button-modifier "'<Alt>'" | |
| # Disable opening "search my computer" when clicking windows key in Ubuntu 16 by forcing the behavior of the windows key to be the same as clicking ctrl key | |
| # https://askubuntu.com/a/206565 | |
| xmodmap -e "remove mod4 = Super_L" | |
| xmodmap -e "add control = Super_L" |
| # https://askubuntu.com/a/256449 | |
| gs -sDEVICE=pdfwrite -dCompatibilityLevel=1.4 -dPDFSETTINGS=/ebook \ | |
| -dNOPAUSE -dQUIET -dBATCH -sOutputFile=output.pdf input.pdf |
| from flask import Blueprint | |
| from flask_cache import cache | |
| from datetime import datetime | |
| bp = Blueprint('bp', __name__) | |
| @bp.route("/bp") | |
| @cache.cached(timeout=50) | |
| def index(): | |
| return datetime.now().strftime("%Y-%m-%d %H:%M:%S") |
| from flask import Blueprint | |
| from flask_cache import cache | |
| from datetime import datetime | |
| bp = Blueprint('bp', __name__) | |
| @bp.route("/bp") | |
| @cache.cached(timeout=50) | |
| def index(): | |
| return datetime.now().strftime("%Y-%m-%d %H:%M:%S") |