Skip to content

Instantly share code, notes, and snippets.

View Tarliton's full-sized avatar
🐍

Tárliton Basso de Godoy Tarliton

🐍
  • Brazil
  • 01:25 (UTC -03:00)
View GitHub Profile
@Tarliton
Tarliton / main.go
Created July 7, 2021 15:24
Auto GORM New Relic instrumentation/integration
package main
import (
"context"
"database/sql"
"fmt"
_ "github.com/newrelic/go-agent/v3/integrations/nrmysql"
"github.com/newrelic/go-agent/v3/newrelic"
"gorm.io/driver/mysql"
"gorm.io/gorm"
@Tarliton
Tarliton / solution.py
Last active June 3, 2022 21:27
Tree in array shortest path.
# pip install Dijkstar python-constraint
from constraint import *
from dijkstar import Graph, find_path
tam = 10
problem = Problem()
variables = []
for i in range(tam):
@Tarliton
Tarliton / pyenv-in-docker.md
Last active October 31, 2024 14:39
compile pyenv inside docker

Compiling a python version with pyenv inside docker

  • Start docker container with desired gcc version
  • Add your pynev directory as a volume inside the container

🔴Important🔴:

  • only use the same path as your user if you know what you are doing

Command: