Skip to content

Instantly share code, notes, and snippets.

Avatar
👋

Lewis Buckley lewispb

👋
View GitHub Profile
@lewispb
lewispb / kredis_bench.rb
Last active Feb 25, 2022
KRedis unique list (sorted set) vs unique list (list)
View kredis_bench.rb
# 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"
@lewispb
lewispb / integrationtest.rb
Created Feb 24, 2022
ActionDispatch::IntegrationTest
View integrationtest.rb
# 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"
@lewispb
lewispb / rufus.rb
Created Mar 24, 2020
Find out when a Rufus scheduler cron will run next n times
View rufus.rb
require 'rufus-scheduler'
scheduler = Rufus::Scheduler.new
job = scheduler.schedule_cron('0 7 * * 6 America/Denver') { }
job.next_times(10)
View .bash_profile
homebrew=/usr/local/bin:/usr/local/sbin
export PATH=$homebrew:$PATH