-
Create Telegram bot:
Search for user @BotFather in Telegram app. Type /help in BotFather chat and wait for the reply. Type in the chat:
/newbot
or select /newbot command from Help text. Answer few setup questions:
// modules.conf | |
[module/sn] | |
type = custom/text | |
content = " " | |
tail = true | |
format = <label> | |
content-background = ${colors.background} | |
click-left = playerctl next |
$INPUTVIDEO='input.mp4' | |
$OUTPUTVIDEO='output.mp4' | |
ffmpeg -i $INPUTVIDEO -metadata:s:v rotate="-90" -codec copy $OUTPUTVIDEO |
from collections import defaultdict | |
from heapq import * | |
def dijkstra(edges, f, t): | |
g = defaultdict(list) | |
for l,r,c in edges: | |
g[l].append((c,r)) | |
q, seen, mins = [(0,f,())], set(), {f: 0} | |
while q: |