Skip to content

Instantly share code, notes, and snippets.

View albert-tomanek's full-sized avatar
🌳

Albert Tomanek albert-tomanek

🌳
View GitHub Profile
@albert-tomanek
albert-tomanek / teletext.py
Created November 9, 2024 20:09
Česká Televize (ČT) teletext terminal viewer
#!/bin/env python3
import time, json
import termbox as TB
from urllib.request import urlopen
try:
with urlopen(f"https://api-teletext.ceskatelevize.cz/teletext-api/v2/text/?t={int(time.time())}") as f:
tt_json = f.read().decode('utf-8')
pages = json.loads(tt_json)['data']
// ==UserScript==
// @name WhatsApp event scraper
// @namespace http://tampermonkey.net/
// @version 2024-05-31
// @description try to take over the world!
// @author You
// @match https://web.whatsapp.com/
// @icon data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==
// @grant none
// ==/UserScript==
@albert-tomanek
albert-tomanek / linefont.flf
Last active July 7, 2024 15:25
Clear Figlet font that uses box drawing characters
flf2a$ 13 1 7 -1 3 0 0 0
Font Author: Albert Tomanek
FIGFont created with: http://patorjk.com/figfont-editor
@
@
@
@
@
@
@albert-tomanek
albert-tomanek / script.js
Created July 25, 2023 19:49
Bandcamp hide progress
// ==UserScript==
// @name Bandcamp hide progress
// @namespace http://tampermonkey.net/
// @version 0.1
// @description hide progbar when listening to songs unless hovering over the player.
// @author You
// @match https://*.bandcamp.com/*
// @grant none
// ==/UserScript==
// autocxx
extern crate tokio;
use lemmy_api_common::post;
use reqwest::{Client};
#[tokio::main]
async fn main() {
println!("Hello, world!");
import os
import subprocess, time, signal, glob
import webvtt
sub_lang = 'cs'
id_list = '''nUX6NfpYEmw
qlP_FUCNQwg
cFguVw8h0vc
DjfRVzZ2lWY
@albert-tomanek
albert-tomanek / gist:d5ebbb2158af035d0cd7875e0f7cc640
Created September 10, 2022 18:42
Tampermonkey: GitHub Comic Sans
// ==UserScript==
// @name GitHub Comic Sans MS
// @namespace http://tampermonkey.net/
// @version 0.0
// @description Swithc font to Comic Sans MS
// @author You
// @match https://*.github.com/*
// @icon https://www.google.com/s2/favicons?domain=github.com
// @grant none
// ==/UserScript==
{"nodes":[{"id":"spotify:track:1flhASyCuxRKzLA1dn0VQw","x":-151.19946432113647,"y":71.1520004272461},{"id":"spotify:track:4VX9EvbyPYgSGKqnKaxtxa","x":143.3934097290039,"y":139,"note":"Výstaviště"},{"id":"spotify:track:35MRd8ShKOIqbfklIgeaSb","x":218.22872924804688,"y":392.3872375488281},{"id":"spotify:track:0ednT1GsG9o2IGo0bS3FME","x":-138.96660232543945,"y":-196.32159805297852,"note":""},{"id":"spotify:track:5ZFslOkcftI1FCs88L99qn","x":48.17840576171875,"y":-319.4967803955078,"note":"COVID melancholy in Košíře"},{"id":"spotify:track:7vudKlxsBVvFgyQeXh4ymn","x":209.57012939453125,"y":499.6021423339844},{"id":"spotify:track:5465onzVgsFEbvIylMC0Cc","x":-79.68438911437988,"y":239.1029052734375,"note":"Výstaviště, Bubny. Learning piano classics in one of those old drafty houses, looking out onto greenery of the park."},{"id":"spotify:track:0Ez0HcZneugrMqIYjlmBFR","x":-333.47078704833984,"y":307.3156433105469},{"id":"spotify:track:61RlktJeYy38pu1vY70pgU","x":552.89404296875,"y":313.0097351074219},{"id":"spotify:tr
#!/bin/sh
tar czvf bomb.tgz .
echo "#!/bin/sh" >> bomb
chmod +x bomb
echo -n "echo " >> bomb
base64 -w 0 bomb.tgz >> bomb
echo " | base64 -d | tar zxf -" >> bomb
@albert-tomanek
albert-tomanek / legit news
Last active September 23, 2021 08:07
Trivial news marked as breaking
Processing articles...
Exception occured during loading of TN.cz.
Count: 160
distance: 0.0
current articles: [Covid pas prezidenta…, Macronův covid pas…]
new articles: []
closest theme in history: [Covid pas prezidenta…, Macronův covid pas…]
distance: 0.00037027595468548875
current articles: [Hamáček se v…, Hamáček se v…]