In order to use remote Docker host, as a prerequisite you need SSH enabled (required login using SSH keys).
Go to C:\Users\YOUR_USERNAME\.ssh and copy content of id_rsa.pub file
| # Setup fzf | |
| # --------- | |
| if [[ ! "$PATH" == */opt/homebrew/opt/fzf/bin* ]]; then | |
| PATH="${PATH:+${PATH}:}/opt/homebrew/opt/fzf/bin" | |
| fi | |
| # Auto-completion | |
| # --------------- | |
| [[ $- == *i* ]] && source "/opt/homebrew/opt/fzf/shell/completion.zsh" 2> /dev/null |
| git config --global alias.lg "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr) %C(bold blue)<%an>%Creset' --abbrev-commit" |
| set number | |
| set mouse=a | |
| set numberwidth=1 | |
| set clipboard=unnamed | |
| syntax enable | |
| set showcmd | |
| set ruler | |
| set encoding=utf-8 | |
| set showmatch | |
| set sw=4 |
| suma_v = block.suma_bloque(bloques) | |
| img_marcada = np.zeros((self.b.shape), np.uint8) | |
| bloques_marcados = block.separa_bloque(img_marcada) | |
| lista_binaria = block.lista_marca(self.marca) | |
| lista_bloques_marcador = [] | |
| q = 16.0 | |
| for i in range(0, len(bloques_marcados)): | |
| bloque_m = bloques_marcados[i] | |
| bloque_o = bloques[i] |
| /*Login postgres | |
| sudo -u postgres psql postgres | |
| psql -d odoo // in user with access granted | |
| */ | |
| /*Tamaño de una base de datos */ | |
| SELECT pg_database_size('ventas'); | |
| /*Tamano de una tabla*/ |
People
:bowtie: |
😄 :smile: |
😆 :laughing: |
|---|---|---|
😊 :blush: |
😃 :smiley: |
:relaxed: |
😏 :smirk: |
😍 :heart_eyes: |
😘 :kissing_heart: |
😚 :kissing_closed_eyes: |
😳 :flushed: |
😌 :relieved: |
😆 :satisfied: |
😁 :grin: |
😉 :wink: |
😜 :stuck_out_tongue_winking_eye: |
😝 :stuck_out_tongue_closed_eyes: |
😀 :grinning: |
😗 :kissing: |
😙 :kissing_smiling_eyes: |
😛 :stuck_out_tongue: |
| Eliminar usando regex | |
| ls | grep -P "regex" | xargs -d"\n" rm | |
| Descomprimir tat.bz2 | |
| tar -xjvf example.tar.bz2 | |
| restore postgresql database with dump file |
| def lamps(lamps_list): | |
| steps = 0 | |
| for idx in range(0, len(lamps_list) - 1): | |
| if lamps_list[idx + 1] == lamps_list[idx]: | |
| steps += 1 | |
| lamps_list[idx + 1] = 1 if lamps_list[idx] == 0 else 0 | |
| return steps | |
| if __name__ == "__main__": | |
| assert lamps([1, 0, 0, 1, 0, 1, 0, 0, 1, 0, 1]) == 5 | |
| assert lamps([1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1]) == 6 |
| import cv2 | |
| import numpy as np | |
| def sharpening(image): | |
| kernel_sharp = np.array([ | |
| [-1,-1,-1,-1,-1], | |
| [1,2,2,2,-1], | |
| [-1,2,8,2,-1], | |
| [1,2,2,2,-1], | |
| [-1,-1,-1,-1,-1]] |