Skip to content

Instantly share code, notes, and snippets.

View gene1wood's full-sized avatar
🎩

Gene Wood gene1wood

🎩
View GitHub Profile
@gene1wood
gene1wood / zoom_CDN_does_not_work_with_if-none-matched_header_and_ETags.md
Last active December 20, 2025 17:41
Zoom CDN does not work with If-Non-Matched header and ETags

The problem

When fetching a file from the Zoom CDN, the Zoom webservers are not following the HTTP standard around the If-None-Match header. As a result, it's not possible for a client to attempt to fetch a file and only receive the file if it differs from the one they already have locally.

How to show the problem

You can reproduce this problem by first fetching a file and recording the ETag

@gene1wood
gene1wood / get-aws-regions.bash
Created October 14, 2025 23:47
Get a list of all AWS regions enabled in the current account
aws account list-regions --region-opt-status-contains ENABLED ENABLED_BY_DEFAULT --query "Regions[*].RegionName" --output text
@gene1wood
gene1wood / attach-all-volumes.bash
Created October 14, 2025 22:42
Attach all volumes in a given AWS availability zone to a single instance in that zone.
#!/bin/bash
ZONE=$1
INSTANCE_ID=$2
letter=b
for vol in $(aws ec2 describe-volumes --filters Name=status,Values=available Name=availability-zone,Values=$ZONE --query "Volumes[*].{ID:VolumeId}" --output text); do
aws ec2 attach-volume --volume-id $vol --instance-id $INSTANCE_ID --device /dev/sd${letter}
letter=$(echo "$letter" | tr "0-9a-z" "1-9a-z_")
done
@gene1wood
gene1wood / generatekey-help.txt
Created September 13, 2025 21:51
Entrust nFast generatekey --help
/opt/nfast/bin/generatekey --help
generatekey, nshield (13.6.8-209-a5bd90a8)
Usage: generatekey [OPTIONS] APP [NAME=VALUE...]
Options:
Help options:
-h, --help Display help for `generatekey'.
-V, --version Display the version number of `generatekey'.
@gene1wood
gene1wood / example_output_from_Joseph_Riopelle_openssl_config_bash_parser.txt
Created August 28, 2025 23:37
Example output from Joseph Riopelle openss _config bash parser
ca_two,serial = $dir/serial
section_test0,var_test_ = boop
,DS = ${ENV::DS}
section_test0,dollarid_test = $var_test_
section_test0,var_test.1 = boop
section_test0,var_test.0 = boop
section_test0,var_test.3 = ${ENV::DS}
section_test0,var_test.2 = boop
ca_one,dir = /home/auhorities/ca_one
section_test0,escape_test = H30 N1B9i \# \\
@gene1wood
gene1wood / 00_last_plex_app_version_before_new_experience.md
Last active July 28, 2025 18:27
APK files for the last version of the Plex app before The New Plex Experience

This is the last version of the Plex Android App before the New Plex Experience was released.

You can roll back to this verion by uninstalling the new plex app you have installed, and then installing from these APKs

The "Google Play (arm64v8a)" APK is the one that's used on modern Google Pixel phones.

These files can also be found on Plex's download site (for now)

@gene1wood
gene1wood / AI Summary of Nociplastic pain towards an understanding of prevalent pain conditions.md
Created July 7, 2025 01:33
AI Summary of Nociplastic pain: towards an understanding of prevalent pain conditions

The document titled "Nociplastic pain: towards an understanding of prevalent pain conditions" is a comprehensive review published in The Lancet (2021) that introduces and elaborates on the concept of nociplastic pain, a third mechanistic category of chronic pain distinct from nociceptive and neuropathic pain.

🔍 Summary of Key Points:

1. Definition and Concept

  • Nociplastic pain is caused by altered nociceptive function without clear tissue damage or nerve injury.
  • It is typically associated with central nervous system (CNS) dysfunction, including amplified sensory processing, altered pain modulation, and non-pain symptoms like fatigue, poor sleep, mood disturbances, and memory issues.

2. Examples of Nociplastic Pain Conditions

@gene1wood
gene1wood / AI summary of Antidepressants for Pain Management in Adults with Chronic Pain: A Network Meta-Analysis.md
Last active July 7, 2025 01:33
AI summary of Antidepressants for Pain Management in Adults with Chronic Pain: A Network Meta-Analysis

Yes, here is a summary of the document titled:


Title: Antidepressants for Pain Management in Adults with Chronic Pain: A Network Meta-Analysis Published by: NIHR Health Technology Assessment, October 2024 DOI: 10.3310/MKRT2948 Lead Author: Hollie Birkinshaw et al.


@gene1wood
gene1wood / smtp2go-sms-forward.js
Created June 28, 2025 01:09
Twilio function code that BAM Bay Area Mashers use to forward SMS to email
var nodemailer = require("nodemailer");
exports.handler = function(context, event, callback) {
var smtpTransport = nodemailer.createTransport({
host: "mail.smtp2go.com",
port: 2525, // 8025, 587 and 25 can also be used.
auth: {
user: context.SMTP_USERNAME,
pass: context.SMTP_PASSWORD,
},
});
@gene1wood
gene1wood / GL.iNet SDK4.0 API-Guide.pdf
Last active June 27, 2025 14:17
GL.iNet SDK4.0 API Documentation
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.