Search the DoktorABC catalog for medical cannabis products.
/doktorabc-search <search_term> [filters]
| #!/usr/bin/env python3 | |
| # im too lazy to package that shit, enjoy | |
| # - pip install --break-system-packages qbittorrent-api py-natpmp | |
| import natpmp.natpmp_client | |
| import qbittorrentapi | |
| import time | |
| try: |
| apiVersion: apps/v1 | |
| kind: Deployment | |
| metadata: | |
| name: weedcam-live-ffmpeg | |
| namespace: default | |
| spec: | |
| strategy: | |
| type: Recreate | |
| template: | |
| metadata: |
| #!/usr/bin/env python3 | |
| import ipaddress | |
| import requests | |
| import socket | |
| from sys import argv, exit | |
| def getIPs() -> ipaddress.ip_network: | |
| r4 = requests.get("https://www.cloudflare.com/ips-v4") |
| ffmpeg -f lavfi -i anullsrc -f v4l2 -r 5 -video_size 1920x1080 -i "/dev/video0" -c:v h264_omx -preset ultrafast -b:v 1000k -c:a aac -f flv 'rtmp://x.x.x.x/live/streamkey' | |
| # rotate and crop | |
| ffmpeg -f lavfi -i anullsrc -f v4l2 -r 1 -video_size 1920x1080 -i "/dev/video0" -vf "transpose=2,crop=1080:1080:960:540" -c:v h264_omx -preset ultrafast -b:v 1000k -c:a aac -f flv 'rtmp://x.x.x.x:xxxx/live/streamkey' |
| #!/usr/bin/env python3 | |
| from yt_dlp import YoutubeDL | |
| URLS = [] | |
| for i in range(1,36): | |
| URLS.append(f"https://www.arte.tv/de/videos/089024-{str(i).zfill(3)}-A/in-therapie-staffel-1-{i}-35/") | |
| URLS.append(f"https://www.arte.tv/de/videos/102958-{str(i).zfill(3)}-A/in-therapie-staffel-2-{i}-35/") |
| #!/usr/bin/env python3 | |
| from PIL import Image | |
| from os import stat | |
| from glob import glob | |
| import subprocess | |
| try: | |
| subprocess.check_output('rm *.gs.png temp_no_ocr.pdf output.pdf', shell=True, executable="/bin/bash") |
| /* | |
| Found here: https://webapps.stackexchange.com/questions/106093/how-do-i-bulk-delete-all-of-my-youtube-comments-and-replies#comment140001_115717 | |
| */ | |
| function sleep(ms) { | |
| return new Promise(resolve => setTimeout(resolve, ms)); | |
| } async function d() { | |
| var i=0; | |
| document.body.querySelectorAll('.VfPpkd-Bz112c-LgbsSe.yHy1rc.eT1oJ').forEach( | |
| async (e) => { await sleep(1000 * i++); e.click(); }); |
| version: "3.4" | |
| services: | |
| postgres: | |
| image: postgres:14 | |
| restart: always | |
| volumes: | |
| - ./src/build/docker/postgres/create_db.sh:/docker-entrypoint-initdb.d/20-create_db.sh | |
| # To persist your PostgreSQL databases outside of the Docker image, | |
| # to prevent data loss, modify the following ./path_to path: | |
| - ./data/postgresql:/var/lib/postgresql/data |
| version: '3.7' | |
| services: | |
| traefik: | |
| image: traefik:latest | |
| restart: always | |
| container_name: traefik | |
| command: | |
| #- --api.insecure=true | |
| #- --api.dashboard=true | |
| #- --api.debug=true |