Skip to content

grantcarthew/scripts

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Scripts

My scripts for all kinds of automation and workflows.

Dependencies

Most of these scripts have been written to run on Unix-like systems (Linux, macOS).

The following dependencies are used throughout this repository.

You may not need them all if you are only interested in a few scripts.

Core Tools

  • aichat: CLI tool for interacting with AI models (used in changelog generation)
  • bash: Unix shell and command language
  • curl: Command-line tool for transferring data with URLs
  • entr: Run arbitrary commands when files change
  • fd: A simple, fast and user-friendly alternative to 'find'
  • fzf: Command-line fuzzy finder
  • git: Distributed version control system
  • jq: Command-line JSON processor
  • lsd: The next gen ls command
  • python: Python interpreter (Python 3 recommended)
  • ripgrep (rg): Regex directory search while respecting your gitignore
  • shellcheck: Static analysis tool for shell scripts

Cloud & Services

  • aws: AWS Command Line Interface
  • gcloud: Google Cloud CLI
  • gh: GitHub CLI brings GitHub to your terminal
  • kubectl: Kubernetes command-line tool

Infrastructure Tools

  • terraform: Infrastructure as code tool
  • terraform-docs: Generate documentation for Terraform modules
  • tflint: Terraform linter
  • trivy: Vulnerability scanner for containers and infrastructure as code

Installation

Compatible with Unix-like systems including Linux and macOS. Many dependencies can be installed via package managers like apt, yum, pacman, yay, brew, etc.

One-Liner

bash <(curl -s https://raw.githubusercontent.com/grantcarthew/scripts/main/install-scripts)

The above command will:

  • Create a "${HOME}/bin" directory if it doesn't already exist
  • Clone this repository into "${HOME}/bin/scripts"
  • Add "${HOME}/bin/scripts" to your PATH environment variable

Review the lib directory and add to your PATH as desired.

Manual Installation

Follow these instructions to get the scripts ready for execution.

Task 1 - Install Git

You'll need git to be able to clone this repository.

Task 2 - Clone

Open a terminal and run the following commands making changes where you see fit:

mkdir -p "${HOME}/bin"
cd "${HOME}/bin"
git clone git@github.com:grantcarthew/scripts.git
cd -

Task 3 - PATH

Add the ${HOME}/bin/scripts directory to your PATH environment variable:

echo 'export PATH="${PATH}:${HOME}/bin/scripts"' >> "${HOME}/.bashrc"

Task 4 - Libraries

Review the directories in the lib directory and add any you want to your bashrc.

This example is for the terraform scripts:

echo 'export PATH="${PATH}:${HOME}/bin/scripts/lib/terraform"' >> "${HOME}/.bashrc"

AI Prompts Collection

The ai/ directory contains a comprehensive collection of AI prompts, roles, and templates:

  • AI Roles: Domain-specific expert personas for cloud, development, and analysis
  • Commands: Quick task-oriented prompts for immediate use
  • Metaprompts: Advanced templates for creating other prompts
  • Templates: Customizable frameworks for resumes and cover letters

Quick Access

Use these scripts to work with AI prompts:

  • get-airole [filter]: Copy role prompts to clipboard
  • new-airole [filter]: Save role prompts to ROLE.md file

AI Enhanced Tools

  • get-airole: AI Role Prompt Fetcher - copies prompts from the collection to clipboard
  • get-aiscripts: Lists all AI-enhanced scripts in the repository
  • get-clihelp: Get CLI command help
  • get-definition: Get word definition with options
  • new-aiproject: New AI Project Generator
  • new-airole: AI Role Document Creator - saves prompts directly to ROLE.md
  • gcm: Git Commit Generator
  • gdr: Git Diff --staged Review
  • gig: Git Ignore Generator (.gitignore)
  • tpr: Terraform Plan Review
  • ucl: Update Change Log

About

My scripts for all kinds of automation and workflows

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published