Skip to content

Instantly share code, notes, and snippets.

View fastjames's full-sized avatar

Jim Kane fastjames

View GitHub Profile
@ohrite
ohrite / axe.rb
Last active October 7, 2024 20:20
Cuprite support for axe-core-api
# spec/support/axe.rb
module Capybara
class Session
alias_method :execute_async_script, :evaluate_async_script
end
module Cuprite
class Browser
alias_method :execute_async_script, :evaluate_async
@PJUllrich
PJUllrich / audit.ex
Created May 12, 2026 10:58
The Prompts I use for finding Vulnerabilities in Elixir/Erlang projects
defmodule MyApp.Prompts.Audit do
@moduledoc """
Prompts for the audit pipeline. Two entry points:
* `audit_file/4` — embeds a single source file in the prompt and
runs `MyApp.CodingAgent` against it. Style is `:simple` or
`:deep`; the executor picks based on `audit.strategy`.
* `audit_directory/2` — whole-package audit. Spawns the agent with
`:cwd` set to the source dir so it can use Read/Grep/Bash.
"""