Skip to content

Instantly share code, notes, and snippets.

View polarathene's full-sized avatar

Brennan Kinney polarathene

  • Auckland, New Zealand
View GitHub Profile
@ikenna
ikenna / extract-endpoints.js
Created June 5, 2023 13:02
Extract endpoints from OpenAPI YAML file
const fs = require('fs');
const yaml = require('js-yaml');
function listEndpoints(openapiFile) {
try {
const openapiData = yaml.safeLoad(fs.readFileSync(openapiFile, 'utf8'));
const paths = openapiData.paths || {};
const endpoints = [];
for (const path in paths) {
@braindevices
braindevices / #btrfs benchmark for daily used desktop OS
Last active April 10, 2025 07:06
which file sytem to use for daily work? should we turn on btrfs compression?
#btrfs benchmark for daily used desktop OS
@raycoll
raycoll / gist:62a660602b9ec9fb67b6443f16732080
Last active November 22, 2023 11:39
ChaCha20 vs AES256-GCM with and without AES-NI
## Tested using Openssl 1.1.x dev
# Includes AES-NI instructions
> openssl speed -evp aes-256-gcm
Doing aes-256-gcm for 3s on 16 size blocks: 30117671 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 64 size blocks: 22859303 aes-256-gcm's in 2.99s
Doing aes-256-gcm for 3s on 256 size blocks: 9684550 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 1024 size blocks: 2922877 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 8192 size blocks: 387788 aes-256-gcm's in 3.00s
Doing aes-256-gcm for 3s on 16384 size blocks: 194832 aes-256-gcm's in 3.00s