Skip to content

Instantly share code, notes, and snippets.

View woodruffw's full-sized avatar
💭
tabula sacer votiva paries indicat uvida suspendisse potenti vestimenta ad mare

William Woodruff woodruffw

💭
tabula sacer votiva paries indicat uvida suspendisse potenti vestimenta ad mare
View GitHub Profile
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": {
"is_abi3": true,
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
pairs = gets.chomp.split.map { |p| p.split(/d/i).map(&:to_i) }
pairs.each { |s, t| puts "You rolled %s" % [*1..s].sample(t).reduce(:+) }
size, times, _ = gets.chomp.split(/d/i).map(&:to_i)
puts "You totaled %d" % [*1..size].sample(times).reduce(:+)
#!/usr/bin/env bash
# music-backup: use rsync to back ~/music up to /media/backup/music
function installed {
local cmd=$(command -v "${1}")
[[ -n "${cmd}" ]] && [[ -f "${cmd}" ]]
return ${?}
}