Skip to content

Instantly share code, notes, and snippets.

@ruslandoga
ruslandoga / 🪦
Last active September 9, 2023 15:44
We couldn’t find that file to show.
We couldn’t find that file to show.
We couldn’t find that file to show.

This gist uses UK Property Price Paid example dataset.

mac3.local :) select count(*) from uk_price_paid

┌──count()─┐
│ 27359802 │
└──────────┘

mac3.local :) select formatReadableSize(total_bytes) from system.tables where name = 'uk_price_paid'
@ruslandoga
ruslandoga / error_loop.exs
Last active July 27, 2022 08:26
A particular sentry + finch setup that results in sentry entering a possibly infinite error loop with some possible workarounds.
Mix.install([:sentry, :finch, :jason])
defmodule Sentry.FinchClient do
@moduledoc false
# adapts https://github.com/getsentry/sentry-elixir/blob/master/lib/sentry/hackney_client.ex
@behaviour Sentry.HTTPClient
@finch_name S.Finch
@impl true
@ruslandoga
ruslandoga / 😵
Last active September 9, 2023 15:40
We couldn’t find that file to show.