Skip to content

Instantly share code, notes, and snippets.

@Nachtalb
Nachtalb / pihole_to_hosts.py
Last active January 24, 2022 21:48
Pihole addlists (and custom blacklist) to hosts file (also removes duplicates)
#!/usr/bin/env python
#
# Convert pihole domain blacklists to hosts file format.
#
# Usage:
# Create folder ./export
# Create pihole export and extract it to ./export
# Backup can be created in "Settings" > "Teleporter" > "Backup"
# Install requirements with "pip install aiohttp[speedups] tqdm"
# Run script "python pihole_to_hosts.py"
[Desktop Entry]
Version=1.0
Name=Telegram Instance X
Comment=Official desktop version of Telegram messaging service
TryExec=/opt/Telegram/Telegram
Exec=/opt/Telegram/Telegram -workdir /home/kali/.local/share/TelegramDesktop/instance_X -- %u
Icon=telegram
Terminal=false
StartupWMClass=TelegramDesktop
Type=Application
@Nachtalb
Nachtalb / init.vim
Created April 20, 2023 14:01
Minimal init.vim for testing
set nocompatible
set showmatch
set ignorecase
set mouse=v
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
@Nachtalb
Nachtalb / libwebp.csv
Last active October 2, 2023 05:59
Track CVE-2023-4863 affected libraries
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 9.
Name,Language,Uses libwebp,Affected Versions,Patched versions,Is Inline third-party,Is System dependency,Depends on,URLs,Comment
libwebp,C,,< 1.3.2,1.3.2,,,,,Problemmaker
TwelveMonkeys,Java,No,,,,,,https://github.com/haraldk/TwelveMonkeys/issues/822,Selfmade in pure Java
libvips,C,Yes,< 8.14.5,8.14.5,Yes,Yes,libwebp,https://github.com/libvips/libvips/discussions/3675#discussioncomment-7078199,Bundled in Windows prebuilt otherwhise system dependency
Sharp,JS,Yes,< 0.32.6,0.32.6,Yes,No,libvips,https://github.com/lovell/sharp/issues/3798,
libwebp-rs,Rust,Indirectly,*,,No,No,libwebp-sys2,https://github.com/qnighy/libwebp-rs,
webp,Rust,Indirectly,< 0.2.6,0.2.6,No,Yes,libwebp-sys,https://github.com/jaredforth/webp/pull/30,
libwebp-sys,Rust,Yes,< 0.9.3,0.9.3,Yes,No,,https://github.com/NoXF/libwebp-sys/pull/23,
libwebp-sys2,Rust,Yes,< 0.1.8,0.1.8,Yes,No,,https://github.com/qnighy/libwebp-sys2-rs/blob/572a436a7a1bf7234f5c92576fc40edba6c9ae7f/CHANGELOG.md,"Fixed in 0.1.8 by using unreleased libwebp master, fixed in 0.1