This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export const REGEX_TELEFONO_CHILE = /^(\+?(56))?(([92]\d{8})|(((3[2345])|(4[1235])|(5[123578])|(6[134578])|(7[1235]))\d{7}))$/; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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` |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 /usr/local/lib/python3.6/dist-packages/pgadmin4/pgAdmin4.py |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pip3 install virtualenv | |
pip install psycopg2-binary | |
# Iniciar un proyecto | |
django-admin.py startproject NOMBRE | |
# La wea que migra | |
manage.py makemigrations | |
manage.py migrate | |
manage.py runserver |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# first install pip3 install pytest-mock | |
import os | |
import pytest | |
class TestNodeInteractor: | |
def exists(self, path): | |
return os.path.exists(path) | |
@pytest.fixture(autouse=True) | |
def mock_exists(self, mocker, expect): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt-get install bison flex libusb-dev gcc gcc-avr avr-libc libelf-dev libusb-1.0-0-dev libusb-1.0-0-dev libftdi1-dev libftdi-dev libhidapi-libusb libevent-pthreads-2.0-5 libpthread-workqueue0 -y | |
wget http://ftp.nchc.org.tw/Unix/NonGNU/avrdude/avrdude-6.1.tar.gz | |
tar xfv avrdude-6.2.tar.gz -C /tmp | |
CURRENT_DIR=$(pwd) | |
cd /tmp/avrdude-6.2 | |
./configure --enable-linuxgpio | |
make -j4 | |
sudo make install |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo apt remove minecraft-pi chromium-browser claws-mail galculator bluej greenfoot geany scratch scratcht2 sense-emu-tools sense-hat libreoffice* wolfram* |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
sudo apt-get update | |
apt-get install libsdl2-dev libsdl2-image-dev libsdl2-mixer-dev libsdl2-ttf-dev \ | |
pkg-config libgl1-mesa-dev libgles2-mesa-dev \ | |
python-setuptools libgstreamer1.0-dev git-core \ | |
gstreamer1.0-plugins-{bad,base,good,ugly} \ | |
gstreamer1.0-{omx,alsa} python-dev libmtdev-dev \ | |
xclip xsel libatlas-base-dev | |
pip3 install Cython==0.27.3 kivy==1.10.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import json | |
from kivy.app import App | |
from kivy.lang import Builder | |
from kivy.properties import ListProperty | |
from kivy.uix.label import Label | |
from kivy.uix.togglebutton import ToggleButton | |
from kivy.uix.gridlayout import GridLayout | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.core.window import Window | |
from kivy.uix.scrollview import ScrollView |
NewerOlder