Flash installer:
$ dd if=void-live-x86_64-musl-20181111.iso of=/dev/X bs=1m
login as root:voidlinux
from django.core.management import call_command | |
from django.db import connection | |
from tenant_schemas.utils import get_public_schema_name, get_tenant_model | |
import pytest | |
TenantModel = get_tenant_model() | |
def get_or_create_tenant(*, schema_name, migrate=True): | |
try: |
Python 17 hrs 32 mins ███████████▊░░░░░░░░░ 56.4% | |
INI 4 hrs 12 mins ██▊░░░░░░░░░░░░░░░░░░ 13.5% | |
Lua 2 hrs 28 mins █▋░░░░░░░░░░░░░░░░░░░ 8.0% | |
JavaScript 1 hr 50 mins █▏░░░░░░░░░░░░░░░░░░░ 5.9% | |
sh 1 hr 34 mins █░░░░░░░░░░░░░░░░░░░░ 5.1% |
# How it works: | |
# - Download and run it (python3 gdrive-vid-timestamper.py) | |
# - Enter the google drive link for your video. Make sure the link ends at the `view` part e.g `https://drive.google.com/file/d/sdf/view` | |
# - Enter the time you want e.g `8:36` | |
# - A link with the timestamp embedded in seconds will be returned | |
# - The app continues running, waiting for the next time to be input. `ctrl-c` to terminate it. | |
def converter(link): | |
_time = input("Enter time in 'm:s' format: ") # e.g 2:01 | |
to_convert = _time.split(":") | |
time_in_seconds = (int(to_convert[0])*60) + int(to_convert[1]) |