Skip to content

Instantly share code, notes, and snippets.

@silenoth
Last active May 20, 2018 06:15
Show Gist options
  • Save silenoth/265fb545277aad02b2fadeaf9309b6bc to your computer and use it in GitHub Desktop.
Save silenoth/265fb545277aad02b2fadeaf9309b6bc to your computer and use it in GitHub Desktop.
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
}
Linux--
fonts
Noto Sans Bold 9
Noto Sans Regular 10
Noto Sans Regular 10
Hack Regular 10
Install oh my zsh
$ sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
Install apache 2 mysql php
sudo apt install apache2
sudo apt install mysql-server
sudo mysql_secure_installation
sudo apt install php libapache2-mod-php php-mysql
sudo a2enmod rewrite
sudo systemctl restart apache2
--install extension php--
sudo apt install php-xml
sudo apt install php-mbstring
sudo apt install php-gd
Install nodejs--
sudo apt install nodejs
Install npm--
sudo apt install npm
Update npm--
sudo npm cache clean -f
sudo npm install -g n
sudo n stable
Install composer--
sudo apt install composer
Fix password mysql---
sudo service mysql stop
sudo mkdir -p /var/run/mysqld
sudo chown mysql:mysql /var/run/mysqld
sudo mysqld_safe --skip-grant-tables --skip-networking
update mysql.user
set authentication_string=PASSWORD("PWD"), plugin="mysql_native_password"
where User='root' and Host='localhost';
flush privileges;
quit
--Download and install navicat premium
https://mega.nz/#!IldmTCpa
key: !UeQ4G6F4ckfvCVDXvcBIsClQHtdR-fPudeH6V70xfHI
sudo tar -zxvf ~/Descargas/navicat101_*.tar.gz
sudo mv navicat101_premium_en /opt/navicat
sudo apt-get update
sudo apt-get install libfreetype6:i386
sudo apt-get install libsm6:i386
sudo apt-get install libxext6:i386
sudo gedit /usr/share/applications/navicat.desktop
[Desktop Entry]
Name=Navicat 10
Type=Application
Exec=/opt/navicat/start_navicat
Terminal=false
Icon=/opt/navicat/navicat.ico
Comment=Administrator Database
NoDisplay=false
Categories=Development;
Name[en]=Navicat
Serial:
NAVF-CB5O-7JPO-SHCO
--Generate ssh key
cd ~/.ssh
ssh-keygen -t rsa -C "[email protected]"
cat id_rsa.pub
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment