Nando
banner
nando.ac
Nando
@nando.ac
Ruby | Go | Elixir

I use Bsky as a repository for my scripts and articles about:

🔄 sidekiq.nando.ac
🐘 postgres.nando.ac
🚄 rails.nando.ac

📍Paris - France
Vietnam ❤️
May 16, 2025 at 12:59 AM
Old trick for debugging outgoing requests in #Ruby. It's especially useful when you need to ensure that you're sending requests correctly to third parties by showing them the raw request structure.

#Rails
October 15, 2024 at 5:57 PM
Instead of locking #Ruby in both .ruby-version and the Gemfile, you can read .ruby-version directly in the Gemfile:

ruby file: ".ruby-version"

#Rails
October 12, 2024 at 3:19 PM
To debug a #Rails app in #Docker with #Pry, set stdin_open: true & tty: true in docker-compose.yml. Then, add binding.pry in your code and run docker attach to interact with Pry in the container. #Rails #Docker #Debugging
October 8, 2024 at 7:41 PM
Friday
October 4, 2024 at 5:21 PM
#Heroku glory days & #Postgres vs the world, w/ Craig Kerstiens

www.youtube.com/watch?v=HMJk...
Heroku's glory days & Postgres vs the world, w/ Craig Kerstiens
YouTube video by Aaron Francis
www.youtube.com
October 3, 2024 at 3:14 PM
The day I found an issue in the #Golang standard library.

github.com/golang/go/is...
September 25, 2024 at 11:20 AM
Trabalhei em uma empresa por 10 anos, lá era Principal Engineer. Agora, fui para uma empresa bem menor, bem no começo da jornada.

Acho que a melhor dica que eu poderia dar nesse caso é não ser um cara chato, que chega e aponta que tudo está errado e que nada funciona.

#CarreiraDev
#BolhaDev
September 10, 2024 at 5:46 PM
Counting how many items the queue has per #Sidekiq Job.
#ActiveJob #Rails
September 10, 2024 at 12:50 PM
This is how you build an image with credentials from a #1Password shared vault.

In this example, I'm passing the #Sidekiq private gem server credentials to be used on the image-building process for a #Rails application.

More info:
developer.1password.com/docs/cli/sec...
September 9, 2024 at 6:35 PM
Passing variables to the middle of URLs using #cURL
September 6, 2024 at 8:37 AM
How to remove #Sidekiq jobs from retry set by class name:
September 5, 2024 at 9:58 PM
How to cut network round trip latency and improve enqueueing #performance in #Rails applications using #Sidekiq:

This is extremely useful, and you're processing things in batches.

More info:
github.com/sidekiq/side...

#BolhaDev
September 5, 2024 at 9:12 PM
This #Markdown tag helps you clearly describe #pull-requests when content is too large.


Vulnerabilities
.....Large content


#Github #BolhaDev
September 5, 2024 at 7:20 PM
For #macos users:

Easily access #iCloud files on the #terminal.

$ ln -s ~/Library/Mobile\ Documents/com~apple~CloudDocs/ ~/icloud

It creates a symlink from the hidden iCloud dir to the $HOME directory.
September 5, 2024 at 3:13 PM
This is how you export a #postgres query to a #csv using #psql

psql $DATABASE_URL -c "\copy (SELECT account_id, email, COUNT(*) AS duplicate_count FROM customers GROUP BY account_id, email HAVING COUNT(*) > 1) TO '.' WITH CSV HEADER;"
September 5, 2024 at 12:53 PM
How to identify slow queries on your Postgres database

SELECT
pid, now() - pg_stat_activity.query_start AS duration, query
FROM
pg_stat_activity
WHERE
(now() - pg_stat_activity.query_start) > interval '2 minutes' order by duration desc;

#postgres
September 5, 2024 at 12:48 PM