Skip to content

Instantly share code, notes, and snippets.

View jonathanloos's full-sized avatar
✈️
Just cruising

Jonathan Loos jonathanloos

✈️
Just cruising
  • Harled Inc.
  • Waterloo, ON
View GitHub Profile
@briandk
briandk / CONTRIBUTING.md
Created March 18, 2016 20:29
A basic template for contributing guidelines that I adapted from Facebook's open source guidelines

Contributing to Transcriptase

We love your input! We want to make contributing to this project as easy and transparent as possible, whether it's:

  • Reporting a bug
  • Discussing the current state of the code
  • Submitting a fix
  • Proposing new features
  • Becoming a maintainer

We Develop with Github

@krsyoung
krsyoung / audited.rake
Last active December 3, 2021 17:50
Helper tasks for migrating Ruby on Rails audited gem from YAML to JSONB
require 'benchmark'
# This file includes several tasks to help with the management of the audited gem. The two main tasks are:
#
# yaml_to_jsonb - this will migrate yaml data stored in a column named audited_changes_yaml to jsonb data stored
# in a column named audited_changes.
#
# scrub - this will look at all of the columns that have been excluded from audited classes and ensure that
# they are all removed from the jsonb data.
#
@jonathanloos
jonathanloos / LocalQueryPerformance.md
Last active February 25, 2022 04:47
Find a common list of queries we at Harled have used in our Ruby on Rails Platforms

Query Performance Monitoring

We've had the case where a seemingly small change in a query (such as adding a .join() clause) actually caused us a large load-related headache when run multiple times by our users in production. To avoid this issue in future iterations we now use (rack-mini-profiler)[https://github.com/MiniProfiler/rack-mini-profiler] to help us measure our queries in development! The profiler will give you a file-by-file, query-by-query analysis of your page load times and flag expensive queries.