This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# Lightweight Devin CLI in Bash | |
# | |
# Usage: | |
# devin new "<prompt>" | |
# devin message <session_id> "<text>" | |
# devin list [--all] | |
# |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Function to open localhost:3000 | |
open_localhost() { | |
echo "Changes detected! Opening localhost:3000..." | |
if command -v open >/dev/null 2>&1; then | |
open http://localhost:3000 | |
elif command -v xdg-open >/dev/null 2>&1; then | |
xdg-open http://localhost:3000 | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
set -euo pipefail | |
# ─── Defaults & ENV Override ──────────────────────────────────────────────────── | |
SOURCE_PREFIX="${SOURCE_PREFIX:-/dsva-vagov/vets-api}" | |
ARCHIVE_PREFIX="${ARCHIVE_PREFIX:-/dsva-vagov/vets-api/archived}" | |
DRY_RUN=false | |
UNARCHIVE=false | |
usage() { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
usage() { | |
cat <<EOF | |
Usage: $(basename "$0") [options] <github-actions-run-url> | |
Options: | |
--only-links Only print the job links | |
--only-job-ids Only print the job IDs |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -euo pipefail | |
# Exit during rebases, merges, or detached HEADs | |
if [ -d .git/rebase-merge ] || [ -d .git/rebase-apply ] || [ -f .git/MERGE_HEAD ] || ! git symbolic-ref -q HEAD >/dev/null; then | |
echo "🔁 Skipping post-checkout hook (rebase/merge or detached HEAD)" | |
exit 0 | |
fi |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# Usage: ssm-param-envs /path/one /path/two ... | |
# Define the environments to iterate over | |
environments=("dev" "staging" "sandbox" "prod") | |
# Create a dynamic regex for sed substitution, escaping slashes | |
env_pattern="$(IFS='|'; echo "${environments[*]}")" | |
escaped_env_pattern="\\/(${env_pattern})\\/" # Example: \/(dev|staging|sandbox|prod)\/ |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env zsh | |
############################################################################### | |
# ssm-param-history | |
# | |
# Description: | |
# Inspect recently updated AWS SSM parameters under a given base path. Uses a | |
# local twenty-minute cache to avoid redundant API calls. Parameters can be | |
# selected interactively via fzf or printed directly in a clean, sorted list. | |
# (Using --no-fzf won't fetch additional metadata, just the parameter names.) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ==UserScript== | |
// @name GitHub to ZenHub Link | |
// @namespace boehs.com | |
// @include *://github.com/*/issues/* | |
// @grant none | |
// @run-at document-ready | |
// ==/UserScript== | |
setTimeout(() => { | |
(() => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
require 'json' | |
require 'fileutils' | |
require 'net/http' | |
require 'uri' | |
require 'digest' | |
OPENAI_API_KEY = ENV['OPENAI_API_KEY'] | |
if OPENAI_API_KEY.nil? || OPENAI_API_KEY.empty? | |
puts "Error: OPENAI_API_KEY environment variable is not set." |
NewerOlder