Skip to content

Instantly share code, notes, and snippets.

View CaiqueMitsuoka's full-sized avatar
🍰
on it

Caique Mitsuoka CaiqueMitsuoka

🍰
on it
  • São Paulo, Brazil
View GitHub Profile
# thas from stackoverflow dont blame me
# its a nice catch tho :)
require Logger
defp log_this do
stacktrace = Process.info(self(), :current_stacktrace) |> elem(1)
Enum.map(stacktrace, fn call ->
Logger.warn("#{call |> Exception.format_stacktrace_entry()}")
For local mysql ver.
brew info mysql@5.7
Change the minor release of the gem and mysql
gem install mysql2 --version='0.3.xx' -- --with-mysql-config=/usr/local/Cellar/mysql@5.7/5.7.xx/bin/mysql_config \
--with-mysql-rpath=/usr/local/Cellar/mysql@5.7/5.7.29/lib \
--with-cflags=\"-I/usr/local/opt/openssl/include\" \
--with-ldflags=\"-L/usr/local/opt/openssl/lib\"
@CaiqueMitsuoka
CaiqueMitsuoka / We'll Fight Together - Fresno(Tab).md
Last active January 20, 2021 03:01
We'll Fight Together - Fresno(Tab).md

Em homenagem meu amigo Rondy do Pará e seu legado.

INTRO/RIFF

C♯|----------------------------------------------------------------|
G♯|----------------------------------------------------------------|
E |----------------------------------------------------------------| x2
B |----------------------------------------------------------3-----|
F♯|------------------------------------------------------------5---|
@CaiqueMitsuoka
CaiqueMitsuoka / Slug - Far From Alaska.md
Created September 19, 2020 21:39
Slug - Far From Alaska

Intro clean com reverb cavalo Intro with a BF reverb

INTRO/RIFF
E|----------------------------------------------------------------|
A|----------------------------------------------------------------|
G|----------------------------------------------------------------| x3
D|---5-----------------5-----------------5---------------------2--|
A|-----------5s9---------------5s2----------------5s9-------1-----|

Fecha o tone e sente

Intro e verso

G|---------------------------------|
D|0----11--11----7--7--4--4--7-----|
A|---------------------------------|
E|---------------------------------|

Fecha o tone e sente

Refrão

G|------------------------------|
D|------------------------------|
A|6--6----4-4----2--2----4-4----|
E|------------------------------|

Fecha o tone, eu achei melhor com palheta. Seja feliz como vc acha que soa melhor :)

[Intro]

G|---------------------------------|
D|---------------------------------| x1
A|5--5--5-5-4--4--4-4-5--5s7-7s9--9|
E|---------------------------------|

Difícil - Terno Rei

INTRO

e |------------------------------------
B |------------------------------------
G |------------------------------------
D |9-9-9-9-9-9-9-9-7-7-7-7-12-12-12-12-
A |------------------------------------
@CaiqueMitsuoka
CaiqueMitsuoka / old ruby on m1.sh
Last active November 15, 2023 08:11
Install old ruby version on M1
# Rbenv thread for old versions after xcode 12+
# https://github.com/rbenv/ruby-build/issues/1489
# PR for openssl 1.0 to support M1
# https://github.com/rbenv/homebrew-tap/pull/2
curl https://raw.githubusercontent.com/rbenv/homebrew-tap/e472b7861b49cc082d1db0f66f265368da107589/Formula/openssl%401.0.rb -o ./openssl@1.0.rb
brew install openssl@1.0.rb
brew --prefix openssl@1.0
brew --prefix readline

Upgrade local postgres version

For context, I use one postgres instance on docker for local development.

# Example of docker-compose
# Remember to create the necessary volumes
# I use devbox for it.