Skip to content

Instantly share code, notes, and snippets.

View p1nox's full-sized avatar

Raul Pino p1nox

View GitHub Profile
p1nox /
Last active May 9, 2023 21:28
Jupyter notes
# install
pip install notebook

# launch
jupyter notebook

# jupyter remote access with password -
sudo snap install ngrok
ngrok config add-authtoken xyz
p1nox /
Last active December 17, 2023 02:27
PyTorch on RTX 3060

After researching a lot on how to use PyTorch with a RTX 3060 card, specially with older versions or torch (0.4.0) and torchvision (0.2.1), I noticed that it was either impossible or very hard to do. RTX 3060 and these packages apparently doesn't have compatibility with the same versions of CUDA and cuDNN. I tried to do this by using different combinations with compiled versions available in conda, but didn't work, maybe it could work if you recompile from source these versions.

After all this, actually I was able to use RTX 3060 effectively with latest versions of all these dependencies with two methods:

  1. Using a conda env, and latest versions published in pytorch site (
conda create -n rtx_3060 python=3.6.5
conda activate rtx_3060
conda install pytorch torchvision torchaudio cudatoolkit=11.1 -c pytorch -c nvidia
p1nox /
Last active February 7, 2022 20:41
nVidia cuda
# version 11.3.0-465.19.01
sudo mv /etc/apt/preferences.d/cuda-repository-pin-600
sudo dpkg -i cuda-repo-ubuntu2004-11-3-local_11.3.0-465.19.01-1_amd64.deb
sudo apt-key add /var/cuda-repo-ubuntu2004-11-3-local/
sudo apt-get update
sudo apt-get -y install cuda
p1nox /
Last active January 30, 2021 21:41
apt-get update
apt-get -y install wget
wget -qO- | sh

sudo apt-get update
sudo apt-get install

docker version

docker ps -a

p1nox /
Last active May 25, 2020 16:56
###### local settings

git remote add dokku dokku@

###### python django rest framework

# apps
dokku apps:create my_api
p1nox /
Created May 3, 2020 03:29
Rails 6 cheatsheet
docker run -it -p 3000:3000 -v $(pwd):/home/ubuntu/code ubuntu:18.04 bash

# dependencies
sudo apt-get update
sudo apt-get install sudo curl wget htop vim git
curl -sL | sudo -E bash -
curl -sS | sudo apt-key add -
echo "deb stable main" | sudo tee /etc/apt/sources.list.d/yarn.list
p1nox / cyberpunk_dark.itermcolors
Last active September 17, 2021 13:32
iTerm 2 cyberpunk themes
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "">
<plist version="1.0">
<key>Ansi 0 Color</key>
<key>Alpha Component</key>
<key>Blue Component</key>
p1nox /
Last active April 29, 2022 07:29
Ssh tunnels using mole

mole >

Install local:

bash <(curl -fsSL

# or specific version
wget -c -O
bash v0.5.0 && rm -f
p1nox /
Created January 20, 2020 15:30
Renew https certificate: certbot + pm2
#!/usr/bin/env bash
pm2 stop web_server
certbot renew --standalone --preferred-challenges http
pm2 start web_server