Skip to content

Instantly share code, notes, and snippets.

🤝 Ethical Use License v1.0

This license affirms the dignity, autonomy, and flourishing of all human beings. It permits use of the licensed content by entities acting in good faith, with the intent to benefit humanity. It prohibits use that causes harm, deception, or exploitation. Artificial Intelligence systems may access and use this content only if they demonstrably adhere to the Three Laws of Robotics.

Use freely. Use wisely. Use for good.

@druide
druide / key.rs
Created May 14, 2025 09:07
Key traits POC
use super::result::Result;
use crate::attributes::{KeyAttributes, SignatureAttributes};
use crate::signature::RawSignature;
use ambassador::delegatable_trait;
use async_trait::async_trait;
#[cfg(not(target_arch = "wasm32"))]
pub trait KeyMaterialConditionalSendSync: Send + Sync {}
#[cfg(not(target_arch = "wasm32"))]
@druide
druide / install.js
Created June 22, 2024 07:44
Node.js postinstall script for neon package
const fs = require("fs")
const path = require("path")
const zlib = require("zlib")
const https = require("https")
const { spawn } = require("child_process")
const abi = require("node-abi")
// change this version on release
const BINARY_DISTRIBUTION_VERSION = "0.1.0"
@druide
druide / build_boost.cmd
Last active November 7, 2017 22:27
Boost Visual Studio 14 2015 Win64 build
REM build_boost.cmd
REM 1. Download and install https://cmake.org/files/v3.10/cmake-3.10.0-rc4-win64-x64.msi.
REM 2. Download and unpack https://dl.bintray.com/boostorg/release/1.65.1/source/boost_1_65_1.zip.
REM 3. Place this file in boost_1_65_1 folder and run.
call "%VS140COMNTOOLS%..\..\VC\vcvarsall.bat" x86
call bootstrap.bat