Skip to content

Instantly share code, notes, and snippets.

@Eitol
Eitol / asdadasdsad
Created October 7, 2018 12:57
run pgadmin #postgres
python3 /usr/local/lib/python3.6/dist-packages/pgadmin4/pgAdmin4.py
@Eitol
Eitol / install_protobuf.sh
Last active November 14, 2018 12:48
Install lastest version of protobuf. Tested in in ubuntu 18.04.
#!/usr/bin/env bash
# run like:
# sudo -S bash ./install_protobuf.sh
#-------- Config ---------
SO=linux-x86_64 # linux-x86_64 | linux-x86_32 | windows | osx
PROTOBUF_REPO="protocolbuffers/protobuf"
PROTOBUF_USER=`whoami`
## CONFIG
USR=`whoami`
SHARED_FOLDER=/home/${USR}/NAS
## GO CONFIG
GOVER='1.11.1'
GOPATH=/opt/go
GO_INSTALL_FOLDER=/usr/local/
GOROOT=${GO_INSTALL_FOLDER}/go
@Eitol
Eitol / gist:59751e93bdc1c34e551e9781d993adb2
Created March 29, 2021 18:35
regex - numeros chilenos - con todos los codigos de area .js
export const REGEX_TELEFONO_CHILE = /^(\+?(56))?(([92]\d{8})|(((3[2345])|(4[1235])|(5[123578])|(6[134578])|(7[1235]))\d{7}))$/;