Skip to content

Instantly share code, notes, and snippets.

View Tarliton's full-sized avatar
🐍

Tárliton Basso de Godoy Tarliton

🐍
  • Brazil
  • 01:31 (UTC -03:00)
View GitHub Profile
/etc/docker/daemon.json
{
"dns": ["10.0.0.2", "8.8.8.8"]
}
sudo service docker restart
sudo apt-get install -y make build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev libncursesw5-dev \
xz-utils tk-dev libffi-dev systemtap-sdt-dev
git clone https://github.com/pyenv/pyenv.git ~/.pyenv
echo 'export PYENV_ROOT="$HOME/.pyenv"' >> ~/.zshrc
echo 'export PATH="$PYENV_ROOT/bin:$PATH"' >> ~/.zshrc
docker run --rm -it gcc:11 bash -c "gcc -march=native -Q --help=target "
#include <Python.h>
int Cfib(int n){
if (n < 2)
return n;
return Cfib(n-1) + Cfib(n-2);
}
static PyObject* fib(PyObject* self, PyObject* args){
int n;