import { validateRUN } from 'your/dir/file.ts';
const run: string = '11.111.111-1'; // also can be '11111111-1' or '111111111'
const response: boolean = validateRUN({run});
This file contains 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 enum Methods { | |
post = 'POST', | |
get = 'GET', | |
put = 'PUT', | |
patch = 'PATCH', | |
delete = 'DELETE', | |
head = 'HEAD', | |
options = 'OPTIONS', | |
} |
In your git project download the script, change the name, made it executable and you can use it
wget https://gist.githubusercontent.com/themakunga/1ba3d397594d5f3fa298c547c14c82e2/raw/65b4a81eaef5ba30063f6f2954e3c87da11bd84d/prepare-commit-msg.py
mv ./prepare-commit-msg.py ./.git/hooks/prepare-commit-msg
This file contains 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
const RutLengthException = (message) => { | |
this.message = message; | |
this.type = 'RutLengthException'; | |
}; | |
RutLengthException.prototype.toString = () => `${this.type}: ${this.message}`; | |
const validadorRut = (rut) => { | |
let sum = 0; | |
let mul = 2; |
This file contains 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
{ | |
"scripts": { | |
"serve": "node --max-old-space-size=3072 ./workAround.js", | |
} | |
} |
This file contains 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
#!/bin/bash | |
optdir=/opt/Postman | |
cd /tmp || exit | |
echo "Descargando la ultima version ..." | |
wget https://dl.pstmn.io/download/latest/linux?arch=64 -O postman.tar.gz | |
tar -xzf postman.tar.gz | |
rm postman.tar.gz |
This file contains 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
#!/bin/bash | |
# @Author: Salvador Maureira B. | |
# @Date: 09-05-2018 18:58:35 | |
# @Email: [email protected] | |
# @Last modified by: Salvador Maureira B. | |
# @Last modified time: 11-05-2018 09:35:14 | |
###### Parametros para la configuracion |
Rutas Colombia es la mayot operadora de concesiones de carreteras interurbanas a lo largo del pais, para lo cual cuenta con una amplia y probada experiencia en la promocion, financiamiento, construccion y operacion de concesiones. Cuenta con 5 concesiones a lo largo del pais como:
- Ruta del Norte 1.
- Ruta del Norte 2.
- Ruta Centro.
- Ruta Sur 1.
- Ruta Sur 2.
This file contains 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
#!/bin/bash | |
###### Parametros para la configuracion | |
ADMIN_FIRSTNAME="Allware" #Nombre del administrador | |
ADMIN_LASTNAME="Allware" #Apellido del Administrador | |
ADMIN_MAIL="[email protected]" #Correo del Administrador | |
ADMIN_USER="allware" #Nombre de Usuario del Administrador | |
ADMIN_PASS="allware123" #Contrasela del Administrador | |
DB_HOST="localhost" #Ubicacion de la base de datos | |
DB_USER="webservice" #usuario con permisos para la base de datos |
NewerOlder