Skip to content

Instantly share code, notes, and snippets.

@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
@JoeDupuis
JoeDupuis / 0001-Prevent-systemd-from-killing-the-service-on-update.patch
Created March 11, 2016 01:07
Crashplan-pro [PATCH] Prevent systemd from killing the service on update
From 8328cf989bd9141451910f4c8746eb00a4b1b07a Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jo=C3=A9=20Dupuis?= <joe.dupuis@anhero.net>
Date: Thu, 10 Mar 2016 19:55:05 -0500
Subject: [PATCH] Prevent systemd from killing the service on update
---
PKGBUILD | 4 ++--
crashplan-pro.service | 1 +
2 files changed, 3 insertions(+), 2 deletions(-)