Skip to content

Instantly share code, notes, and snippets.

View brynary's full-sized avatar

Bryan Helmkamp brynary

View GitHub Profile
@Shpigford
Shpigford / issues
Created January 19, 2026 15:53
A Claude Code skill for interacting with GitHub issues
Interact with GitHub issues - create, list, and view issues.
## Instructions
This command helps you work with GitHub issues using the `gh` CLI.
### Step 1: Determine Action
Use AskUserQuestion to ask what the user wants to do:
@SilenNaihin
SilenNaihin / setup-ralph.md
Created January 16, 2026 07:39
Claude Code /setup-ralph command - Set up Ralph autonomous development

Ralph Setup

Set up Ralph autonomous development for a project.

Context

This command sets up Ralph for autonomous development. You should already have:

  • A project with basic structure (use /setup-repo first if needed)
  • A clear understanding of the project requirements
  • A plan for implementation (either in your context or written to a plan file)
@SilenNaihin
SilenNaihin / refactor.md
Created January 15, 2026 09:44
Claude Code: Refactor command for code quality cleanup with jscpd, knip, and code-simplifier

Refactor

You are doing a focused refactoring session. This is a distinct phase, not continuous activity.

Step 1: Run Quality Checks

First, check if jscpd and knip are installed. If not, install them:

npm install -D jscpd knip
@SilenNaihin
SilenNaihin / commit-smart.md
Created January 14, 2026 19:45
Claude Code: Atomic Git Commit command for multi-agent workflows

Atomic Git Commit

Create an atomic git commit for the changes made in this session.

Instructions

  1. First, run git status to see all changes (staged, unstaged, and untracked files).

  2. Identify only the files you touched in this session. Do not commit files modified by other agents or processes.

@SilenNaihin
SilenNaihin / setup-repo.md
Last active January 22, 2026 02:34
Claude Code: Repo Setup command with CLAUDE.md, tooling, and Ralph

Repository Setup

Initialize a new repository with proper structure and configuration.

Context

This command runs AFTER planning is complete. You should already have:

  • A clear understanding of the project requirements
  • A plan for implementation (either in your context or written to a plan file)
  • Knowledge of the tech stack and architecture
@mhmdio
mhmdio / data.tf
Last active April 24, 2025 02:38
terraform data account_id and region
data "aws_caller_identity" "current" {} # data.aws_caller_identity.current.account_id
data "aws_region" "current" {} # data.aws_region.current.name
output "account_id" {
description = "Selected AWS Account ID"
value = data.aws_caller_identity.current.account_id
}
output "region" {
description = "Details about selected AWS region"
@koshatul
koshatul / README.md
Last active January 16, 2026 18:16
use Apple Keychain to store GPG Passphrases

gpg-agent setup

Need to setup gpg-agent first, on OSX I use keychain (it also does ssh-agent)

$ brew info keychain
keychain: stable 2.8.5
User-friendly front-end to ssh-agent(1)
https://www.funtoo.org/Keychain
/usr/local/Cellar/keychain/2.8.5 (7 files, 108.5KB) *
@clarkdave
clarkdave / ecs-interactive-console.sh
Last active August 21, 2024 08:09
ecs-interactive-console
#!/bin/bash -e
##
# Use this annotated script a base for launching an interactive console task on Amazon ECS
#
# more info: https://engineering.loyaltylion.com/running-an-interactive-console-on-amazon-ecs-c692f321b14d
#
# Requirements:
# - `jq` must be installed on both the client and server
##
@jturkel
jturkel / multi_provider_saml_handler.rb
Last active March 24, 2021 04:51
How to configurate omniauth-saml to work with multiple identity providers based on a dynamic URL path segment. A gem based on this idea has been extracted to https://github.com/salsify/omniauth-multi-provider-saml.
require 'omniauth'
require 'omniauth-saml'
class MultiProviderSamlHandler
UUID_REGEX = /[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/
attr_reader :path_prefix, :provider_name
def initialize(path_prefix: OmniAuth.config.path_prefix, provider_name: 'saml')
@path_prefix = path_prefix
#!/usr/bin/sudo sh
## ruby_revealer.sh -- decrypt obfuscated GHE .rb files. 2.0.0 to 2.3.1+.
## From `strings ruby_concealer.so`:
##
## > This obfuscation is intended to discourage GitHub Enterprise customers
## > from making modifications to the VM.
##
## Well, good, as long as its not intended to discourage *me* from doing this!