Skip to content

Instantly share code, notes, and snippets.

View ChaelCodes's full-sized avatar

Rachael Wright-Munn ChaelCodes

View GitHub Profile
$ 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"