Skip to content

Instantly share code, notes, and snippets.

View etagwerker's full-sized avatar
🏠
Working from home

Ernesto Tagwerker etagwerker

🏠
Working from home
View GitHub Profile
# lib/rubocop/cop/rails/use_find_each.rb
module RuboCop
module Cop
module Rails
# This cop checks for usage of `all.each`.
#
# @example
# # bad
# Model.all.each do |record|
# # do something
@etagwerker
etagwerker / list-of-tech-debt-tools.md
Created February 2, 2023 20:40
list-of-tech-debt-tools.md
  1. Cloc
  2. npm
  3. yarn
  4. RubyCritic
  5. code-complexity
  6. Code Climate
  7. bundler
  8. bundler-audit
  9. bundler-stats
  10. SimpleCov
noahgibbs:
display_name: "Noah Gibbs"
gravatar: 5e8107f48d4471a40de325151d589b6d
twitter: codefolio
github: noahgibbs
bio: "An old programmer who moved from the US to Scotland. Noah writes about Ruby and Rails performance in many places. Also wrote Rebuilding Rails and Mastering Software Technique."
---
layout: post
title: "Optimizing Images - Part 1"
date: 2022-11-21 12:00:00
categories: ["performance"]
author: arieljuod
description: "Serving non-optimized images can make our site feel slow. Here are some techniques to speed things up."
image: "optimizing-images-part-1.jpg"
---
Is your Ruby app slow? @FastRubyIO has partnered with @nateberkopec to help you identify optimization opportunities with their Tune Report: https://go.fastruby.io/vim
#CodeAudit #PerformanceOptimization #RubyOnRails #Ruby
@etagwerker
etagwerker / Gemfile
Created October 18, 2022 13:24
Example of using next_rails just for a Ruby dual boot
# Gemfile
def next?
File.basename(__FILE__) == Gemfile.next
end
if next?
ruby "3.1.1"
else
ruby "3.0.1"
@etagwerker
etagwerker / rails-new.sh
Created October 8, 2022 19:20
rails-new.sh
rails new librarian -d postgresql --skip-system-test --skip-action-mailbox --skip-action-cable --skip-active-job --skip-active-storage --skip-jbuilder --asset-pipeline=propshaft --css=tailwind
--javascript=esbuild
@etagwerker
etagwerker / transcript.csv
Created September 14, 2022 17:51
transcript.csv
Welcome to Legacy. Good rocks the podcast that explores the world of modernizing existing software application on your host. Scott for this show is at the change the way you think about Legacy code. When you hear the phrase Legacy code of images of big mainframes anarchic punch card machines. Well that's true. It only tells a small part of the story anything that someone else has left behind is there Legacy this episode of sponsored by cardi B? Cardi B house companies make their existing custom software systems more stable scalable and secure. And upgrades bug fixes performance enhancements and other maintenance activities designed to help companies generate Revenue lower operating costs. And reduce risk is a senior engineering manager at fast Ruby. IO and he's been developing web application since the days. When the first HTML Pages were painted on Cave walls over the past 25 years. He's worked in various roles from developer product owner to director from many different organizations such as actblu
@etagwerker
etagwerker / asrOutput.json
Created September 14, 2022 17:49
asrOutput.json
This file has been truncated, but you can view the full file.
{
"jobName": "Mike-Toppa-Legacy-Code-Rocks-LCR_Michael_Toppa_Audio_MASTER.mp3",
"accountId": "015078986747",
"results": {
"transcripts": [{
"transcript": "Welcome to Legacy Code rocks the podcast that explores the world of modernizing existing software applications. I'm your host scott ford. This show is about to change the way you think about legacy code, if you like a lot of people, when you hear the phrase legacy code, it conjures up images of big mainframes in our kick punch card machines. Well that's true. It only tells a small part of the story. Anything that someone else has left behind is their legacy. This episode is sponsored by Corgi bites. Cory bites helps companies make their existing custom software systems more stable, scalable and secure. Corey bite specializes in upgrades, bug fixes, performance enhancements and other maintenance activities designed to help tech companies generate revenue, lower operating costs and reduce risk. And today on the podcast we have mike, Topa. Mike is a se
Conference: RailsConf 2022
Status: Rejected
# Title: Escaping The Tar Pit (The Mythical Service Layer)
# Abstract:
Nobody wants to inherit a project that reeks but here we are: Stuck in the tar pit. Fat models? Endless service classes? How can we take control of all the tech debt?
In this talk you will learn how to use a few, great Ruby gems that will guide you out of that sticky tar you are in. On top of that, you will learn a repeatable way to gradually pay off technical debt.