Skip to content

Instantly share code, notes, and snippets.

View woodruffw's full-sized avatar
💭
איך האב מיין אייגענע צרות

William Woodruff woodruffw

💭
איך האב מיין אייגענע צרות
View GitHub Profile
@woodruffw
woodruffw / branches-disallow-advisory.json
Created March 30, 2026 17:57
Example rulesets used by Astral
{
"name": "no-push-advisory-branches",
"target": "branch",
"enforcement": "active",
"conditions": {
"repository_name": {
"include": [
"ruff",
"ty",
"uv"
@woodruffw
woodruffw / georg.sh
Created January 26, 2026 04:01
Histogram of PyPI users for the top 500 most popular projects
#!/usr/bin/env bash
top500=($(curl --silent 'https://hugovk.github.io/top-pypi-packages/top-pypi-packages.json' | jq -r '.rows[0:500] | .[].project'))
for project in "${top500[@]}"; do
url="https://pypi.org/project/${project}/"
maintainers=($(curl --silent "${url}" | htmlq -t '.sidebar-section__user-gravatar-text' | sort | uniq))
for maintainer in "${maintainers[@]}"; do
echo "${maintainer}"
done
@woodruffw
woodruffw / action.log
Created December 6, 2024 18:54
ultralytics-v8.3.41-publish.yml
Current runner version: '2.321.0'
Operating System
Ubuntu
22.04.5
LTS
Runner Image
Image: ubuntu-22.04
Version: 20241201.1.0
Included Software: https://github.com/actions/runner-images/blob/ubuntu22/20241201.1/images/ubuntu/Ubuntu2204-Readme.md
Image Release: https://github.com/actions/runner-images/releases/tag/ubuntu22%2F20241201.1
diff --git b/src/rust/cryptography-x509-validation/src/lib.rs a/src/rust/cryptography-x509-validation/src/lib.rs
index 778ad4962..0f6ba7d6c 100644
--- b/src/rust/cryptography-x509-validation/src/lib.rs
+++ a/src/rust/cryptography-x509-validation/src/lib.rs
@@ -163,8 +163,23 @@ impl<'a> AccumulatedNameConstraints<'a> {
pub struct Intermediates<'a>(HashSet<Certificate<'a>>);
impl<'a> Intermediates<'a> {
- fn new(intermediates: impl IntoIterator<Item = Certificate<'a>>) -> Self {
- Self(intermediates.into_iter().collect())
@woodruffw
woodruffw / abi3audit.json
Created October 7, 2022 21:24
abi3audit.json
This file has been truncated, but you can view the full file.
{
"specs": {
"chia-rs": {
"kind": "package",
"package": {
"chia_rs-0.1.0-cp37-abi3-macosx_10_7_x86_64.whl": [
{
"name": "chia_rs.abi3.so",
"result": {
sip
base2048
pybundletool
opencv-contrib-python-rolling
pyrage
pillow-heif
rjmespath
placeholder
pyobjc-framework-cryptotokenkit
editdistance-s
from blight.action import ASAction
class SayHello(ASAction):
def before_run(self, tool):
print(f"running {tool.wrapped_tool()} from {tool.cwd} on {tool.inputs}")
def after_run(self, tool):
print(f"finished running {tool.wrapped_tool()} on {tool.inputs}")
@woodruffw
woodruffw / authenticode_digest.cpp
Created May 26, 2020 14:27
uthenticode snippets
auto *md = indir_data->messageDigest;
auto nid = OBJ_obj2nid(md->digestAlgorithm->algorithm);
auto digest = std::vector<std::uint8_t>(md->digest->data, md->digest->data + md->digest->length);
/usr/local/Cellar/samba/4.7.5/bin/cifsdd
/usr/local/Cellar/samba/4.7.5/bin/dbwrap_tool
/usr/local/Cellar/samba/4.7.5/bin/eventlogadm
/usr/local/Cellar/samba/4.7.5/bin/gentest
/usr/local/Cellar/samba/4.7.5/bin/ldbadd
/usr/local/Cellar/samba/4.7.5/bin/ldbdel
/usr/local/Cellar/samba/4.7.5/bin/ldbedit
/usr/local/Cellar/samba/4.7.5/bin/ldbmodify
/usr/local/Cellar/samba/4.7.5/bin/ldbrename
/usr/local/Cellar/samba/4.7.5/bin/ldbsearch
require "benchmark"
# Exception thrown on an INI parse error.
class ParseException < Exception
getter line_number : Int32
getter column_number : Int32
def initialize(message, @line_number, @column_number)
super "#{message} at #{@line_number}:#{@column_number}"
end