Skip to content

Instantly share code, notes, and snippets.

@cnleo
cnleo / README.md
Created December 19, 2024 02:11 — forked from weisjohn/README.md
how to turn a keyframe animation into an animated png using phantomjs, imagemagick, and apngasm

jumping through hoops

A wonderfully warm winter day. Everything was perfect. Lofty visions of CSS3 animations dazzled my eyes. Nay, what's this? A browser from years ago appears. What's that you say? It doesn't support keyframes? Ghast. Make an animated gif! Oh, wait, we need transparency? Make an animated png!

This is the final outcome (sans history) of half a day spent to ensure experience parity on a super old (Opera 9.8) browser that we absolutely have to support.

It took hours, and it wasn't probably worth it, but I learned so much, and in the end it works pretty well.

technique

@cnleo
cnleo / cosmetic_filter_ublock_origin.txt
Last active November 17, 2024 16:20
Cosmetic Filter for uBlock-Origin
##a:has-text('Foo'):upward(div)
better:
##:is(a[href*="foo"]):upward(div)
or simple:
##a[href*="foo"]:upward(div)
@cnleo
cnleo / SUPPORT_DRM_Chromium_Widevine_Linux.txt
Last active November 3, 2024 04:41
SUPPORT DRM Chromium Widevine Linux
Wenn mal wieder mittendrin beim Film schauen
die Aufforderung nach einem Browser Update kommt
oder Fehlermeldungen mit 83
https://aur.archlinux.org/packages/chromium-widevine
https://github.com/proprietary/chromium-widevine
@cnleo
cnleo / TODO_build_dns_firewall_ad_blocker.txt
Last active November 3, 2024 03:36
Unbound pi hole thingy todo
TODO: Build a DNS/Firewall AD- and more blocker
https://wiki.archlinux.org/title/Pi-hole
https://wiki.archlinux.org/title/Unbound
https://www.tumfatig.net/2022/ads-blocking-with-openbsd-unbound8/
https://www.tumfatig.net/2019/blocking-ads-using-unbound8-on-openbsd/
https://www.geoghegan.ca/unbound-adblock.html
https://wiki.archlinux.org/title/Cloudflared
https://digitalcourage.de/support/zensurfreier-dns-server
https://www.privacy-handbuch.de/handbuch_93c.htm
https://docs.pi-hole.net/guides/dns/unbound/
@cnleo
cnleo / link_to_stars.md
Created August 11, 2024 16:24
Link to the Stars for Search [shortcut]
@cnleo
cnleo / dark_theme_setting.txt
Created July 4, 2024 19:52
Setup for Dark-Theme/Mode
Set for many applications in Arch/Manjaro your prefer(r)ed theme/mode
terminal:
gsettings set org.gnome.desktop.interface color-scheme 'prefer-dark'
source:
https://wiki.archlinux.org/title/Dark_mode_switching
@cnleo
cnleo / arch_manjaro_Update_pacman_gtk.txt
Created May 25, 2024 23:39
Add/Remove Application Manager (pacman) on Arch/Manjaro have hidden buttons and/or invisible text and no dark theme support
install pacman (gtk3)
remove pacman (gtk4)
and now dark theme works too
@cnleo
cnleo / wine_lastframe_seen.txt
Created May 16, 2024 23:52
Wine "Freeze" last frame and not change back to normal desktop
pkill -f "*.exe"
killall -r "*.exe"
# game the moment of silence
killall -9 mos.exe
@cnleo
cnleo / lutris_gog_login.txt
Created May 16, 2024 23:01
SOLVING Login Problem GOG with Lutris empty window
start with env
env WEBKIT_DISABLE_COMPOSITING_MODE=1 lutris %U