Skip to content

Instantly share code, notes, and snippets.

View sebastian-palma's full-sized avatar
🟡

Seb sebastian-palma

🟡
View GitHub Profile
https://stackoverflow.com/questions/70868159/how-do-i-get-instance-of-a-model-with-highest-value-from-an-operation/70869517?noredirect=1#comment125324396_70869517
Director.create(first_name: "Martin Scorsese", date_of_birth: "17/11/1942", id: 2)
Director.create(first_name: "Michael Bay", date_of_birth: "17/02/1965", id: 3)
Director.create(first_name: "George Lucas", date_of_birth: "14/05/1944", id: 1)
Movie.create(name: "Star Wars: Epizoda IV – Nová naděje", release_date: "25/05/1977", description: "", director_id: 1)
Movie.create(name: "Star Wars: Epizoda III – Pomsta Sithů", release_date: "15/05/2005", description: "", director_id: 1)
Movie.create(name: "Skrytá identita", release_date: "06/10/2006", description: "", director_id: 2)
Movie.create(name: "Mizerové", release_date: "07/04/1995", description: "", director_id: 3)
# frozen_string_literal: true
module RuboCop
module Cop
module Custom
# Looks for the require of the rails_helper or spec_helper and raises
# a warning as those files are set to be included through the .rspec
# file.
#
# On auto correction it just deletes those lines.
PROMPT="%(?:%{$fg_bold[green]%}➜ ($WEZTERM_PANE):%{$fg_bold[red]%}➜ ) %{$fg[cyan]%}%c%{$reset_color%}"
PROMPT+=' $(git_prompt_info)'
ZSH_THEME_GIT_PROMPT_PREFIX="%{$fg_bold[blue]%}git:(%{$fg[red]%}"
ZSH_THEME_GIT_PROMPT_SUFFIX="%{$reset_color%} "
ZSH_THEME_GIT_PROMPT_DIRTY="%{$fg[blue]%}) %{$fg[yellow]%}✗"
ZSH_THEME_GIT_PROMPT_CLEAN="%{$fg[blue]%})"

Keybase proof

I hereby claim:

  • I am sebastian-palma on github.
  • I am lagartijaseb (https://keybase.io/lagartijaseb) on keybase.
  • I have a public key ASBmZgPLA1uYNO_lseJTDIX34oKC-eUGHCPJLC_EeVvkcQo

To claim this, I am signing this object:

[{"id" => 295, "video_category_id" => 19, "name" => "The Website Copywriting Formula That Consistently Wins Clients with Masha Koyen", "description" => "", "embed_url" => "https://www.youtube.com/embed/Ec1FRGGhrkM", "image_url" => "https://img.youtube.com/vi/Ec1FRGGhrkM/sddefault.jpg", "is_new" => false, "sort_order" => 21, "video_id" => "the-website-copywriting-formula-that-consistently-wins-clients-with-masha-koyen", "available_in_fullservice" => false, "available_in_edesign" => false, "duration" => 2130, "watched" => false}, {"id" => 278, "video_category_id" => 16, "name" => "Project Calendar", "description" => "", "embed_url" => "https://www.youtube.com/embed/LS0bqP-VW7k", "image_url" => "https://img.youtube.com/vi/LS0bqP-VW7k/sddefault.jpg", "is_new" => false, "sort_order" => 2, "video_id" => "project-calendar", "available_in_fullservice" => true, "available_in_edesign" => false, "duration" => 150, "watched" => false}, {"id" => 308, "video_category_id" => 19, "name" => "How to Land More Airbnb Projects w
$ docker compose build puppeteer --no-cache

Compose can now delegate builds to bake for better performance.
 To do so, set COMPOSE_BAKE=true.
[+] Building 5.8s (8/9)                                                                                                                                                                                                                                                                                                                docker-container:gracious_chatterjee
 => [puppeteer internal] load build definition from Dockerfile                                                                                                                                                                                                                                                                                                         0.0s
 => => transferring dockerfile: 1.10kB