Skip to content

Instantly share code, notes, and snippets.

View meator's full-sized avatar

meator

  • Czech Republic
  • 07:35 (UTC +02:00)
View GitHub Profile
@meator
meator / steghide.patch
Created October 10, 2021 10:48
Steghide patch
These are mostly stolen from Archlinux steghide AUR package.
diff '--color=auto' -ruN a/src/Arguments.h b/src/Arguments.h
--- a/src/Arguments.h 2003-10-11 23:23:57.000000000 +0200
+++ b/src/Arguments.h 2021-10-10 12:33:04.417705038 +0200
@@ -100,7 +100,7 @@
static const VERBOSITY Default_Verbosity = NORMAL ;
static const unsigned long Default_Radius = 0 ; // there is no default radius for all file formats
static const unsigned int Max_Algorithm = 3 ;
- static const float Default_Goal = 100.0 ;
@meator
meator / scrape.py
Created July 21, 2024 07:37
Python script for scraping a list of websites and getting their status
#!/usr/bin/env python3
import sys
import time
from typing import Optional
import requests
import click
import tqdm
# External dependencies of this script are listed above.
@meator
meator / distfile-errors.md
Last active September 23, 2024 08:58
Void Linux packages with dead distfiles

This is a list of unreachable distfiles for all Void Linux packages. It is valid as of 2024-07-21. scrape.py was used to generate this list.

The distile can be tied to its package by looking it up in xbps-show-all-packages. It was generated through

parallel ./xbps-src show

with a list of all packages given to it.

This file has been truncated, but you can view the full file.
pkgname: 0ad
version: 0.0.26
revision: 9
distfiles: https://releases.wildfiregames.com/0ad-0.0.26-alpha-unix-build.tar.xz
distfiles: https://github.com/mozilla/gecko-dev/commit/74641307d32a59806b75cd2b8c7161aca50d5cb7.patch>1654457-virtualenv.patch
checksum: 2e1c6df7e3312e77c5f82788664cffc3a78d3bf60606c00039275e1d13c0ee4b
checksum: f18fa3adae7acb07a49148354b6804028e6c9d7344991622fb7c00f638173e03
archs: x86_64*
archs: i686*
archs: aarch64*
From d7c9fabacd767d77185950f357e6af77924993a9 Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Fri, 20 Jun 2025 20:49:39 +0200
Subject: [PATCH] adbwinusb: fix build
Taken from
https://github.com/msys2/adbwinapi/blob/7a4dd0c3e0369493d6f6b3e3aa9f1e9f5bd3fb0f/0001-adbwinusb-fix-build.patch
---
host/windows/usb/api/adb_api_instance.h | 3 +++
host/windows/usb/winusb/adb_winusb_interface.h | 2 ++
From 7082a42de811e5f7fac48b6ef137617a7f95675c Mon Sep 17 00:00:00 2001
From: meator <meator.dev@gmail.com>
Date: Sat, 21 Jun 2025 17:24:14 +0200
Subject: [PATCH] fix build
---
host/windows/usb/api/adb_api.cpp | 2 +-
host/windows/usb/api/adb_legacy_endpoint_object.cpp | 2 +-
host/windows/usb/api/adb_legacy_interface.cpp | 8 ++++----
3 files changed, 6 insertions(+), 6 deletions(-)
@meator
meator / linux wrc --help.txt
Last active August 18, 2025 10:30
Output of --help/--version//? of various Windows resource compiler implementations
> wrc --help
Usage: wrc [options...] [infile[.rc|.res]]
-D, --define id[=val] Define preprocessor identifier id=val
--debug=nn Set debug level to 'nn'
-E Preprocess only
-F TARGET Ignored, for compatibility with windres
-fo FILE Synonym for -o for compatibility with windres
-h, --help Prints this summary
-i, --input=FILE The name of the input file
-I, --include-dir=DIR Add dir to the include search path (multiple -I allowed)