-i - ignore errors
-c - continue
-t - use video title as file name
--extract-audio - extract audio track
| server_addr = "127.0.0.1" | |
| server_port = 8888 | |
| # debug level, can be debug, error, info, ... | |
| loglevel = "debug" | |
| paths = { | |
| "route_set" : "/", | |
| "interface_get" : "/", |
| from aiohttp import web | |
| from threading import Thread | |
| import asyncio | |
| import time, uuid | |
| loop = asyncio.get_event_loop() | |
| def long_blocking_thing(sleep): | |
| time.sleep(sleep) | |
| return 42 |
| ... | |
| Vue.filter('rudate', function (value) { | |
| if (!value) return '' | |
| var str = new Date(value) | |
| return ((str.getDate() < 10) ? '0' : '') + str.getDate() + '.' + ((str.getMonth() < 9) ? '0' : '') + (str.getMonth() + 1) + '.' + str.getFullYear() | |
| }) | |
| ... | |
| new Vue({ .. |
In this guide I will go through all the steps to create a VPS, secure it and deploy a Django application. This is a summarized document from this digital ocean doc
Any commands with "$" at the beginning run on your local machine and any "#" run when logged into the server
Use this link and get $10 free. Just select the $5 plan unless this a production app.
We need to create a virtual env for our app to run in: More Here Run this command in whatever folder you want to create your venv folder
python -m venv ./venv
Create a repo. Make sure there is at least one file in it (even just the README) Generate ssh key:
ssh-keygen -t rsa -C "[email protected]"
Copy the contents of the file ~/.ssh/id_rsa.pub to your SSH keys in your GitHub account settings. Test SSH key:
ssh -T [email protected]
Hello (<-- two spaces)
World
Hello
World