Skip to content

Instantly share code, notes, and snippets.

View oleksis's full-sized avatar
💭
Be Happy!

Oleksis Fraga Menéndez oleksis

💭
Be Happy!
View GitHub Profile
@oleksis
oleksis / .vimrc
Created May 26, 2020 21:51 — forked from miguelgrinberg/.vimrc
My .vimrc configuration for working in Python with vim
" plugins
let need_to_install_plugins = 0
if empty(glob('~/.vim/autoload/plug.vim'))
silent !curl -fLo ~/.vim/autoload/plug.vim --create-dirs
\ https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
"autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
let need_to_install_plugins = 1
endif
call plug#begin()
@oleksis
oleksis / .tmux.conf
Created May 26, 2020 21:56 — forked from miguelgrinberg/.tmux.conf
My .tmux.conf file for working with tmux
# Set the prefix to ^A.
unbind C-b
set -g prefix ^A
bind a send-prefix
# Start windows and panes at 1, not 0
set -g base-index 1
set -g pane-base-index 1
set -g renumber-windows on
@oleksis
oleksis / mega_folder_files.py
Last active December 28, 2023 10:42
Print the links of files in mega.nz API
# Print the links of files
# following directory structure
# using mega.py package
#
# Books
# |_ Alejandro Dumas
# |_ El Conde de Montecristo
# |_ J.K.Rowling
# |_ Harry Poter 1
# |_ Harry Poter 2
@oleksis
oleksis / Windows Subsystem for Linux with openSUSE Leap 15 and Qt5.md
Last active March 23, 2023 21:34
Instalar WSL en Windows 10 y Distros: openSUSE Leap 15.2 y Qt5

Instalar WSL en Windows 10 y Distros: openSUSE Leap 15.2

Abrir powershell como administrador

Todos los comandos se ejecutar en powershell como administrador

> PS D:

Habilitar la caracteristica WSL en Windows 10 y luego reiniciar

@oleksis
oleksis / Compile Mainline Kernel (5.15.0) from WSL2.md
Last active June 8, 2024 16:42
Steps for compile Mainline Kernel Linux using WSL2

Compile Mainline Kernel for WSL2

Steps for compile Kernel Linux 5.15.0

Actual Kernel

$ uname -a
Linux DESKTOP-ID 4.19.128-microsoft-standard #1 SMP Tue Jun 23 12:58:10 UTC 2020 x86_64 GNU/Linux

Work Dir linux

@oleksis
oleksis / Generar archivos stubs con mypy para spaCy.md
Created March 22, 2021 01:21
Generar archivos stubs (.pyi) usando mypy

Generar archivos stubs (.pyi) usando mypy

spaCy es un paquete para el Procesamiento avanzado del Lenguaje Natural (NLP) en Python y Cython.

Algunos módulos de spaCy entan escrito en Cython. Si queremos usar chequeo de Type Hints y generar los archivos .pyi , usaremos la herramienta stubgen de mypy para generar los stubs.

Usando Powershell

pip install -U mypy
$GET_SPACY_PATH='python -c "from pathlib import Path ; import spacy ; print(Path(spacy.__file__).parent.absolute())"'
@oleksis
oleksis / Notes _gh_graphql.md
Last active April 28, 2021 20:26
gh CLI - Get ID Lastest Release with python sys.stdin

Get Release Assets: downloadCount, createdAt

gh api graphql -F owner=':owner' -F name=':repo' -f query='query($name: String!, $owner: String!){repository(owner: $owner, name: $name){releases(first: 10){edges { node{ name releaseAssets(first:5){nodes{name downloadCount createdAt}}}}}}}'
gh api graphql -F owner=':owner' -F name=':repo' -f query='query($name: String!, $owner: String!){repository(owner: $owner, name: $name){releases(last: 10){nodes { name releaseAssets(first:5){nodes{name downloadCount createdAt}}}}}}'

Get Discusion Categoies

@oleksis
oleksis / Notes.md
Created April 19, 2021 16:32
Discussion API, Graphql using gh CLI
@oleksis
oleksis / opensuse_tumbleweed_wsl.md
Last active August 8, 2021 05:13
Instalar openSUSE Tumbleweed en WSL
@oleksis
oleksis / install_obs_openSUSE.md
Last active November 30, 2021 05:06
Open Build Service in openSUSE Tumbleweed

Install Open Build Service in openSUSE Tumbleweed

sudo zypper addrepo -f https://download.opensuse.org/repositories/openSUSE:/Tools/openSUSE_Tumbleweed/openSUSE:Tools.repo
sudo zypper install build osc obs-service-download_url obs-service-verify_file obs-service-format_spec_file rpmdevtools
sudo zypper install patterns-devel-base-devel_rpm_build
sudo zypper install patterns-devel-osc-devel_osc_build

> The following 3 NEW packages are going to be installed:
>  build build-mkbaselibs psmisc \
   osc obs-service-download_url obs-service-verify_file \