View Install Mysql-MariaDB
Install MySQL / MariaDB | |
Install with pacman. | |
sudo pacman -S mariadb | |
Initialize data directories. | |
sudo mysql_install_db --user=mysql --basedir=/usr --datadir=/var/lib/mysql | |
By default MySQL will run as the user running the command unless a user is explicitly specified with --user option. Path to the installation directory can be specified with --basedir option while data directory is specified with --datadir. |
View apuntes.txt
Vee Validate | |
v-validate="'required|regex:^([a-zA-Z\\-]+)(\\s+)([a-zA-Z\\-]+)?$'" | |
it's validate two words with one space | |
node_modules/laravel-mix/src/index.js | |
if (Mix.sees('laravel')) { | |
Config.publicPath = 'system'; //custom folder | |
} |
View ciudades_starken
array ( | |
1287 => 'ACHAO', | |
2424 => 'AGUA BUENA', | |
1531 => 'AHUI', | |
2435 => 'AIQUINA', | |
1250 => 'ALERCE', | |
2346 => 'ALGARROBAL', | |
1143 => 'ALGARROBITO', | |
588 => 'ALGARROBO', | |
1331 => 'ALHUE', |
View starken.php
<?php | |
/* | |
* Sencilla funcion para cotizar los precios de los paquetes enviados a traves de Starken (antes Turbus Cargo). | |
* No requiere el modulo allow_url_fopen. | |
*/ | |
include 'simple_html_dom.php'; | |
/** | |
* @param int $origen Código ciudad origen. |
View chilexpress.php
<?php | |
/** | |
* - Version modificada que no requiere el modulo allow_url_fopen. | |
* | |
* Una simple función para obtener los costos de envío de un paquete mediante Chilexpress. | |
* Como única dependencia se necesita de la liberia PHP Simple HTML DOM Parser: http://simplehtmldom.sourceforge.net/ | |
* | |
* Para poder comunicarse con Chilexpress, se debe tener la lista de todas las comunas que ellos utilizan y el código | |
* que le asignan a cada una. En este archivo, al final, podrás encontrar el listado, el cual podrás parsear fácilmente | |
*/ |