Skip to content

Instantly share code, notes, and snippets.

View ChaelCodes's full-sized avatar

Rachael Wright-Munn ChaelCodes

View GitHub Profile
@ChaelCodes
ChaelCodes / build.log
Created October 10, 2022 17:58
Log from failing CASA build
Removing network casa_default
Network casa_default not found.
Removing volume casa_db_data
Volume casa_db_data not found.
###########################
BEGIN: docker-compose build
###########################
database uses an image, skipping
selenium_chrome uses an image, skipping
Building web
$ git rebase -i origin/main
error: cannot rebase: You have unstaged changes.
error: Please commit or stash them.
$ git rebase -i --autostash origin/main
Created autostash: c4d543d
Applied autostash.
Successfully rebased and updated refs/heads/docker-test-improvements.
@ChaelCodes
ChaelCodes / AltText.md
Last active July 11, 2023 02:28
Stop using `git add .` - Image Alt text

Image 1 git status

On branch main
Your branch is up to date with 'origin/main'.

Changes to be committed:
  (use "git restore --staged <file>..." to unstage)
        modified:   _config.yml

Changes not staged for commit:
@ChaelCodes
ChaelCodes / Gemfile
Created July 21, 2023 12:02
Troubleshooting gel install
# frozen_string_literal: true
source 'https://rubygems.org'
git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
ruby '2.7.8'
gem 'jekyll', '~> 4.2.0'
# This is the default theme for new Jekyll sites. You may change this to anything you like.
gem 'type-on-strap'
@ChaelCodes
ChaelCodes / validate_me.rb
Created May 20, 2024 19:25
A Simple Example of Building a Custom Validator - for my talk "Validate Me!"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
gem "rails"
# If you want to test against edge Rails replace the previous line with this:
# gem "rails", github: "rails/rails", branch: "main"
@ChaelCodes
ChaelCodes / colors.rb
Created August 12, 2025 14:42
Demo of setting CLI colors in Ruby using ANSI escape codes
# frozen_string_literal: true
# colors.rb
# ANSI color codes for foreground text
COLORS = {
black: "\e[30m",
red: "\e[31m",
green: "\e[32m",
yellow: "\e[33m",