Skip to content

Instantly share code, notes, and snippets.

Nachtalb / libwebp.csv
Last active October 2, 2023 05:59
Track CVE-2023-4863 affected libraries
View libwebp.csv
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,,,,,,,Selfmade in pure Java
libvips,C,Yes,< 8.14.5,8.14.5,Yes,Yes,libwebp,,Bundled in Windows prebuilt otherwhise system dependency
Sharp,JS,Yes,< 0.32.6,0.32.6,Yes,No,libvips,,
webp,Rust,Indirectly,< 0.2.6,0.2.6,No,Yes,libwebp-sys,,
libwebp-sys,Rust,Yes,< 0.9.3,0.9.3,Yes,No,,,
libwebp-sys2,Rust,Yes,< 0.1.8,0.1.8,Yes,No,,,"Fixed in 0.1.8 by using unreleased libwebp master, fixed in 0.1
Nachtalb / init.vim
Created April 20, 2023 14:01
Minimal init.vim for testing
View init.vim
set nocompatible
set showmatch
set ignorecase
set mouse=v
set hlsearch
set incsearch
set tabstop=4
set softtabstop=4
set expandtab
set shiftwidth=4
View telegram-instance-x.desktop
[Desktop Entry]
Name=Telegram Instance X
Comment=Official desktop version of Telegram messaging service
Exec=/opt/Telegram/Telegram -workdir /home/kali/.local/share/TelegramDesktop/instance_X -- %u
Nachtalb /
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"
Nachtalb /
Last active November 1, 2021 19:51
Get all videos of a youtube channel and print url, title and publish date as CSV
# Ya need to install "yarl" and "requests" cuz I was too lazy to use the standard libs
from yarl import URL
from requests import Session
channel_id = "CHANNEL_ID"
url = f""
query = {
Nachtalb /
Last active October 25, 2021 16:00
IRC ZNC module for posting danbooru pics on demand by any user with configurable commands for each IRC channel
from contextlib import contextmanager
from datetime import datetime
from random import choice
from requests import Session
from yarl import URL
import inspect
import json
import os
import pprint
import sys
Nachtalb /
Last active November 1, 2021 20:10
Create windows explorer ffmpeg context menu entries
# 1. Change paths in the "template" variable, be sure to have to correct number of backslashes
# 2. python > quick_ffmpeg_explorer.reg
# 3. Double click the "quick_ffmpeg_explorer.reg" file
import re
structure = {
'00_FFMPEG': {
'keys': { 'SubCommands': '', 'MUIVerb': 'FFMPEG' },
'folders': {
Nachtalb / AB-one-million-count.js
Last active January 19, 2024 10:27
One Million Count thread Assistant script for AB. It auto adds correct number with meta, fixes wrong numbers when getting sniped, shows number context list with meta and more.
View AB-one-million-count.js
// ==UserScript==
// @name One Million Count -
// @namespace Violentmonkey Scripts
// @include*threadid=556*
// @version 2.10.2
// @author Nachtalb
// @description One Million Count thread Assistant script for AB. It auto adds correct number with meta, fixes wrong numbers when getting sniped, shows number context list with meta and more.
// @updateURL
// @downloadURL
// @supportURL
# Update latest epel
rpm -Uvh epel-release-6-8.noarch.rpm
# Install forenscis tools repository for protobuf-compiler and protobuf-devel
rpm -Uvh cert-forensics-tools-release-el6.rpm
# Install openfusion repository for perl-IO-Socket-IP
Nachtalb /
Created July 26, 2019 20:39
Check total size of all torrents recursively in a dir
from pathlib import Path
# Install
# $ pip install
import bencode
total_bytes = 0
files = list(Path().rglob('*.torrent'))
total_files = len(files)
print('Getting file sizes')