Skip to content

Instantly share code, notes, and snippets.

View yoandresaav's full-sized avatar
🏠
Working from home

Yoandre Saavedra Gonzalez yoandresaav

🏠
Working from home
View GitHub Profile
### Python Docs
Correr checkhealt
install pylint
https://github.com/deoplete-plugins/deoplete-jedi/wiki/Setting-up-Python-for-Neovim#using-virtual-environments
Using pyenv

Pull Postgres

$ docker pull postgres

Create a directory for db persistence

$ mkdir -p [db-volume-location-on-machine]
@yoandresaav
yoandresaav / Vim Examples
Last active December 31, 2023 12:56
Vim Examples to Improvement work
### Open in vim all files modified in git
$ nvim $(git status --porcelain | awk '{print $2}')
### Go to next git modification
using https://github.com/lewis6991/gitsigns.nvim
]c and [c
set -g prefix C-s
unbind C-b
bind C-s send-prefix
set -g base-index 1
set -g escape-time 20
bind h select-pane -L
Python3 Encapsulate with sqlite3 Maps (https://stackoverflow.com/questions/19530974/how-can-i-add-the-sqlite3-module-to-python)
Here is an example of a script that will setup an encapsulated version (virtual environment) of Python3 in your user directory with an encapsulated version of sqlite3.
INSTALL_BASE_PATH="$HOME/local"
cd ~
mkdir build
cd build
[ -f Python-3.6.2.tgz ] || wget https://www.python.org/ftp/python/3.6.2/Python-3.6.2.tgz
tar -zxvf Python-3.6.2.tgz

python -m grpc_tools.protoc --proto_path=. ./unary.proto --python_out=. --grpc_python_out=.

-Parar o eliminar todos los contenedores docker:

Para pararlos puede usarse: docker stop $(docker ps -a -q)

Y para eliminarlos: docker rm $(docker ps -a -q)

@yoandresaav
yoandresaav / git.md
Last active December 8, 2022 21:10
GIT

commit el ultimo a partir del cual se hace rebase,

usar solo en local, antes de subir los archivos al repositorio

git rebase -i #commit

Eliminar todas las branch locales que han sido merged sin tocar master, main y dev

git branch --merged | egrep -v "(^*|master|main|dev)" | xargs git branch -d

@yoandresaav
yoandresaav / commands.md
Last active September 3, 2021 22:29
Commands-Listopto

analyse a bundle

$ node analyse.js

Analyse more deeply

$ source-map-explorer static/dist/bundle.js