Skip to content

Instantly share code, notes, and snippets.

View dethi's full-sized avatar
🔨

Thibault Deutsch dethi

🔨
View GitHub Profile
@developit
developit / hydra-alias.md
Last active February 27, 2020 01:54
Alias to invoke Chrome Canary w/ tracing, for IRHydra

An Alias to run Chrome with tracing enabled

For Chrome Canary:

alias hydra='/Applications/Google\ Chrome\ Canary.app/Contents/MacOS/Google\ Chrome\ Canary --no-sandbox --js-flags="--user-data-dir=/tmp/profile --trace-hydrogen --trace-phase=Z --trace-deopt --code-comments --hydrogen-track-positions --redirect-code-traces"'

For regular ol' Chrome:

@LostKobrakai
LostKobrakai / 01_usage.exs
Last active June 12, 2017 13:36
Spliting god-object db table into on demand loadable chunks with ecto
# Basic user with just name, email, password
user = Repo.get User, 1
# Load profile
user = Repo.preload(user, :profile)
profile = user.profile