Skip to content

Instantly share code, notes, and snippets.

@esdandreu
esdandreu / pip_install_github_release.py
Last active May 19, 2022 11:38
Pip install from github release
import subprocess
import requests
import sys
import os
# If it is a private repository you'll need to add Basic Authentication
# to the requests with your username and Personal Access Token
# https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/creating-a-personal-access-token
# auth = requests.auth.HTTPBasicAuth('', GITHUB_TOKEN)
response = requests.get(
@esdandreu
esdandreu / Xdisplay.sh
Last active November 30, 2021 13:04
DISPLAY variable in WSL
export PYTHONPATH=${PYTHONPATH}:/usr/lib/python3/dist-packages
export PATH=${PATH}:/home/esdandreu/.local/bin
# set DISPLAY to use X terminal in WSL
# in WSL2 the localhost and network interfaces are not the same than windows
export DISPLAY=$(route.exe print | grep 0.0.0.0 | head -1 | awk '{print $4}'):0.0
export LIBGL_ALWAYS_INDIRECT=1
@esdandreu
esdandreu / keybase.md
Created October 12, 2019 08:51
Keybase Verification

Keybase proof

I hereby claim:

  • I am esdandreu on github.
  • I am esdandreu (https://keybase.io/esdandreu) on keybase.
  • I have a public key ASDASydmAsxCwIV_EPcJ_v3pQuWlu5D_s8QZOHajGlbl5go

To claim this, I am signing this object: