start new:
tmux
start new with session name:
tmux new -s myname
| from django.http import JsonResponse | |
| from jose import jwt | |
| AUTH0_DOMAIN = {YOUR_AUTH0_DOMAIN} | |
| API_AUDIENCE = {YOUR_API_AUDIENCE} | |
| ALGORITHMS = ["RS256"] | |
| """ | |
| Cache the key available at https://{AUTH0_DOMAIN}/.well-known/jwks.json as a python dict |
| # to generate your dhparam.pem file, run in the terminal | |
| openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048 |
| HTTP status code symbols for Rails | |
| Thanks to Cody Fauser for this list of HTTP responce codes and their Ruby on Rails symbol mappings. | |
| Status Code Symbol | |
| 1xx Informational | |
| 100 :continue | |
| 101 :switching_protocols | |
| 102 :processing |
| # Update, upgrade and install development tools: | |
| apt-get update | |
| apt-get -y upgrade | |
| apt-get -y install build-essential | |
| apt-get -y install git-core | |
| apt-get -y install libcurl4-openssl-dev | |
| apt-get -y install libffi-dev | |
| apt-get -y install libgmp-dev | |
| apt-get -y install libreadline-dev | |
| apt-get -y install libssl-dev |