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 / 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 / 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 \
@oleksis
oleksis / Compile_wxPython_4.1.1_Python3.9.5_Ubuntu_21.04_hirsute_hippo.md
Last active January 23, 2022 00:52
Compile wxPython 4.1.1 using Ubuntu on Windows Community Preview
@oleksis
oleksis / xampp_php8_xdebug.md
Created March 8, 2022 18:25
Installing Xdebug for XAMPP

Installing Xdebug for XAMPP

XDebug Setup for PHP 8

Download XDebug

Installation using the Wizard.

Copy the PHP info using Powershell

 php -i | clip
@oleksis
oleksis / OpenSSH-Server_sshd_Windows_11.md
Created April 9, 2022 19:25
Configuring OpenSSH-Server (sshd) on Windows 11

Configuring OpenSSH-Server (sshd) on Windows 11

Install the OpenSSH Server

Add-WindowsCapability -Online -Name OpenSSH.Server~~~~0.0.1.0

Start the sshd service

Start-Service sshd
@oleksis
oleksis / azure-winget.md
Created August 1, 2022 15:17
Azure and winget tools

Azure

The Azure region

az account list-locations -o table
az functionapp list-consumption-locations | ConvertFrom-Json | Select-Object Name | Sort-Object Name

Winget