start new:
tmux
start new with session name:
tmux new -s myname
apt-get install python-pygraphviz | |
pip install django-extensions | |
# add 'django_extensions' to INSTALLED_APPS in settings.py | |
python manage.py graph_models trees -o test.png |
var Parse = require("parse").Parse; | |
Parse.initialize( | |
"", // applicationId | |
"", // javaScriptKey | |
"" // masterKey | |
); | |
var query = new Parse.Query(Parse.Installation) | |
, data = { |
// REQUIRES: | |
// moment.js - http://momentjs.com/ | |
// USAGE: | |
// {{ someDate | moment: [any moment function] : [param1] : [param2] : [param n] | |
// EXAMPLES: | |
// {{ someDate | moment: 'format': 'MMM DD, YYYY' }} | |
// {{ someDate | moment: 'fromNow' }} |
/** | |
* Recebe um data no formato dd/mm/yyyy e retorna yyyy-mm-dd. | |
* | |
* @param string date - Data no formato 'dd/mm/yyyy'. | |
* @return string - Data no formato 'yyyy-mm-dd'. | |
*/ | |
function dateToEN(date) | |
{ | |
return date.split('/').reverse().join('-'); | |
} |
''' | |
Run the following commands (bc. gists don't allow directories) | |
pip install flask django dj-database-url psycopg2 | |
mkdir -p app/migrations | |
touch app/__init__.py app/migrations/__init__.py | |
mv models.py app/ | |
python manage.py makemigrations | |
python manage.py migrate |
$ sudo apt-get update
$ sudo apt-get install unzip wget
$ wget https://bin.equinox.io/c/4VmDzA7iaHb/ngrok-stable-linux-amd64.zip
$ unzip ngrok-stable-linux-amd64.zip
$ sudo mv ./ngrok /usr/bin/ngrok
$ ngrok
Command | Desciption |
---|---|
protonvpn-cli login [ProtonVPN username] | Log in |
protonvpn-cli connect (or protonvpn-cli c) | Connect to VPN |
protonvpn-cli disconnect (or protonvpn-cli d) | Disconnect from VPN. |
protonvpn-cli status (or protonvpn-cli s) | See the connection status. |