Skip to content

Instantly share code, notes, and snippets.

View sthames42's full-sized avatar

Steve sthames42

  • Cameron Park, California
View GitHub Profile
@sthames42
sthames42 / README.md
Last active May 29, 2026 20:20 — forked from weaversam8/README.md
Cowboy Stream Handler Reference Implementation

Cowboy, the popular Erlang web server, has deprecated middleware and replaced the concept with stream handlers, a more flexible, but more complicated API. This page contains a documented reference implementation of a stream handler, to help others when developing their stream handlers in the future.

@sthames42
sthames42 / README.md
Last active January 5, 2026 19:57 — forked from utoddl/av-filter
Filter for "ansible-vault"ing YAML Data Values

Ansible Vault Filter

av-filter encrypts and decrypts YAML file values with ansible-vault and was created by Todd Lewis to encrypt only string values. I did some refactoring to provide encryption of all values and preservation of quotes and control characters in strings.

Unfortunately, Ansible does not reparse decrypted YAML values, which are strings, by default. They can be converted to non-string values with a filter. For example: my_value: "{{ vault.value | int }}". But quoted strings will decrypt to include