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 -ex | |
| # Check that current working directory is inside a git project, and cd to the root directory | |
| git rev-parse --verify HEAD > /dev/null | |
| cd "$(git rev-parse --show-toplevel)" | |
| # Add project to Rails MCP server configuration if not already present | |
| project_name="${PWD:t}" | |
| grep "^${project_name}:" "$HOME/.config/rails-mcp/projects.yml" || echo "${project_name}: \"$(pwd)\"" >> "$HOME/.config/rails-mcp/projects.yml" |
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
| eval "$(gh copilot alias -- zsh)" | |
| alias awslogin='aws sso login --sso-session aws' | |
| alias ccstatusline='npx ccstatusline@latest' | |
| alias claude='ASDF_NODEJS_VERSION=$(asdf latest nodejs) npx -y @anthropic-ai/claude-code "$@"' | |
| alias gemini='ASDF_NODEJS_VERSION=$(asdf latest nodejs) GEMINI_API_KEY="*****" npx -y @google/gemini-cli "$@"' | |
| alias gitlog='git log --reverse --oneline origin/$(git_main_branch)~1..HEAD' # git_main_branch is defined in oh-my-zsh git plugin | |
| alias ff-main='gfa && git merge-base --is-ancestor main origin/main && git fetch origin main:main' |
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 python3 | |
| import numpy as np | |
| from scipy import ndimage | |
| import matplotlib.image as mpimg | |
| import sys | |
| import os | |
| def print_usage_and_exit(): |
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 python3 | |
| import numpy as np | |
| from scipy import ndimage | |
| import matplotlib.image as mpimg | |
| import sys | |
| import os | |
| def print_usage_and_exit(): |
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
| 'use strict'; | |
| var assign = require('lodash.assign'); | |
| var defaults = require('lodash.defaults'); | |
| var bl = require('bl'); | |
| var http = require('http'); | |
| var https = require('https'); | |
| var Promise = require('bluebird'); | |
| var url = require('url'); |