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
# On homestead | |
$ cd Code | |
$composer create-project johnpbloch/wordpress project-name | |
# Set a local domain in host file | |
192.168.10.10 project-name.dev | |
# Update Hometead.yaml | |
sites: | |
- map: project-name.dev | |
to: /home/vagrant/Code/project-name/wordpress | |
# in terminal |
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
/* | |
|-------------------------------------------------------------------------- | |
| Run The Artisan Application | |
|-------------------------------------------------------------------------- | |
| | |
| When we run the console application, the current CLI command will be | |
| executed in this console and the response sent back to a terminal | |
| or another output device for the developers. Here goes nothing! | |
| | |
*/ |
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 add-apt-repository ppa:ondrej/php | |
$sudo apt-get update | |
(optional) sudo apt-get remove php7.0 | |
$sudo apt-get install php7.1 | |
$sudo apt-get install php7.1-fpm | |
# config de extensiones php | |
$sudo apt-get install php7.1-xml | |
$sudo apt-get install php7.1-gd | |
$sudo apt-get install php7.1-mbstring | |
$sudo apt-get install php-curl |
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
server { | |
listen 80 default_server; | |
listen [::]:80 default_server ipv6only=on; | |
root /var/www/laravel-project/public; | |
index index.php index.html index.htm; | |
server_name laravelProject.com www.laravelProject.com; | |
charset utf-8; | |
location /blog/index.php(/.*)?$ { |
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
$('input[maxlength]').on('keyup',function(){ | |
var max = $(this).attr('maxlength'); | |
var currentLength = $(this).val().length; | |
return max <= currentLength; | |
}); |
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
#in homestead | |
$ cd ~/Code | |
$ cd mkdir my-wordpress-project | |
$ cd my-wordpress-project | |
$ composer require johnpbloch/wordpress | |
# in homestead.yaml | |
sites: | |
- map: my-project.dev | |
to: /home/vagrant/Code/my-wordpress-project/wordpress |
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
$crobtab -e | |
//copy ( * * * * * php /var/www/to/artisan schedule:run 1>> /dev/null 2>&1) to end of file | |
$sudo service cron restart | |
//check if cron is running , (see last 3 rows) | |
$sudo grep -i cron /var/log/syslog|tail -3 |
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
#for add font size or color | |
# subtitle shape: | |
#3 | |
#00:02:31,570 --> 00:02:35,829 | |
#Lorem ipsum dolor | |
#Find what | |
[0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3} --> [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}\n | |
#Replace with | |
$0<font color="#FFFF00"> |
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
$ npm cache clear (optional) | |
$ npm install --no-bin-links | |
$ npm install laravel-elixir --save-dev --no-bin-link | |
$ npm install laravel-elixir-livereload --save-dev --no-bin-links | |
#configurar gulpfile.js | |
$gulp watch |
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
#in /etc/nginx/sites-available/sample.dev | |
#replace or add these lines | |
location / { | |
index index.php index.html; | |
try_files $uri $uri/ /index.php?url=$uri&$args; | |
} |
NewerOlder