Должен быть настроен DOH
Этап 0. Аренуем VPS, настраиваем туннель с роутером. Проще всего wireguard
Этап 1. Создаем таблицу маршрутизации
/routing table add disabled=no fib name=xoxo
Должен быть настроен DOH
Этап 0. Аренуем VPS, настраиваем туннель с роутером. Проще всего wireguard
Этап 1. Создаем таблицу маршрутизации
/routing table add disabled=no fib name=xoxo
import subprocess | |
import sys, os | |
""" | |
##################################### | |
##### YOUTUBE TO MP3 SPLITTER ###### | |
##################################### |
Long base = 1024L | |
Integer decimals = 3 | |
def prefix = ['', 'K', 'M', 'G', 'T'] | |
def pattern = ~/(\d*(?:\.\d{0,$decimals})?)([${prefix.join('')}])?[B]?/ | |
def toBytes = { String sizeText -> | |
def m = sizeText.trim().toUpperCase() =~ pattern | |
if(m.matches()) { | |
def bytes = new BigDecimal(m.group(1)) * (m.group(2) ? base**prefix.indexOf(m.group(2)) : 1) | |
return bytes.setScale(0, BigDecimal.ROUND_HALF_UP) as Long |
#!/bin/bash | |
ZONE_ID=11111111111111111111111111 | |
API_TOKEN=2222222222222222222222222 | |
read -p "Are you sure to DELETE ALL records for zone? " -n 1 -r | |
echo # (optional) move to a new line | |
if [[ $REPLY =~ ^[Yy]$ ]] | |
then | |
curl --silent -X GET \ |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm