Skip to content

Instantly share code, notes, and snippets.

Delete the worktree we are working in. If we are not working on a worktree, ask me what to do.

Then rename the tmux window with /Users/joedupuis/.local/bin/rename-tmux-window.sh <name> to ready

Then, in the root repo, not worktree, checkout and pull the latest main from origin. Push too to make sure we're not ahead

@JoeDupuis
JoeDupuis / repro.rb
Created June 12, 2023 02:58
Streaming reponse rack test
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", path: '../../rails'
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails", branch: "main"
gem "capybara"
gem "selenium-webdriver"
gem "selenium"
gem "pry"
gem "rack", "2.2.4"
@JoeDupuis
JoeDupuis / Gemfile
Created May 28, 2023 02:52
Repro 48195 - Cookies are being set incorrectly
source "http://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "puma", "~> 5.0"
gem "rack", ENV["RACK_2"] ? "~> 2.2.7" : "~> 3.0.7"
gem "rackup"
@JoeDupuis
JoeDupuis / rails_48013_repro.rb
Last active May 9, 2023 17:30
rails_48013_repro
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails", branch: "main"
@JoeDupuis
JoeDupuis / self-signed-certificate-with-custom-ca.md
Created April 21, 2020 01:08 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@JoeDupuis
JoeDupuis / self-signed-certificate-with-custom-ca.md
Created April 21, 2020 01:08 — forked from fntlnz/self-signed-certificate-with-custom-ca.md
Self Signed Certificate with Custom Root CA

Create Root CA (Done once)

Create Root Key

Attention: this is the key used to sign the certificate requests, anyone holding this can sign certificates on your behalf. So keep it in a safe place!

openssl genrsa -des3 -out rootCA.key 4096
@JoeDupuis
JoeDupuis / nixos.md
Created November 6, 2019 19:50 — forked from martijnvermaat/nixos.md
Installation of NixOS with encrypted root
[0] > bin/shell
(xylio-pbndb)[development]:~/.../internal/pbndb> cd api
(xylio-pbndb)[development]:~/.../pbndb/api> bundle install --path vendor/bundle/
Fetching gem metadata from https://rubygems.org/..........
Using rake 12.3.1
Using concurrent-ruby 1.0.5
Using i18n 1.0.0
Using minitest 5.11.3