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
<select name="timezone" id="timezone"> | |
<option> | |
Africa/Abidjan | |
</option> <option> | |
Africa/Accra | |
</option> <option> | |
Africa/Addis_Ababa | |
</option> <option> | |
Africa/Algiers | |
</option> <option> |
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
Alternate way to find php-fpm size in human readable format. | |
ps -eo size,pid,user,command --sort -size | awk '{ hr=$1/1024 ; printf("%13.2f Mb ",hr) } { for ( x=4 ; x<=NF ; x++ ) { printf("%s ",$x) } print "" }' | grep php-fpm | |
pm.max_children = Total RAM dedicated to the web server / MAXIMUM child process size - in my case it was 85MB | |
The server has 8GB of RAM, so: | |
pm.max_children = 6144MB / 85MB = 72 | |
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
https://www.owasp.org/index.php/SCG_WS_nginx#SSL_Module | |
https://github.com/denji/nginx-tuning | |
https://gist.github.com/plentz/6737338 | |
https://gist.github.com/denji/8359866 | |
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
yum clean all | |
yum update | |
if doesn't work than | |
rpm --rebuilddb | |
yum update |
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
composer dump-autoload | |
php artisan clear-compiled | |
php artisan config:cache | |
php artisan optimize --force |
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
# multi curstor edit | |
select all | |
CTRL + SHIFT + L | |
# Add comma after every string | |
find: (.*+$) | |
replace: $1, | |
# Add comma after every number | |
find: (^\d+$) |
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
DEMO: https://jsfiddle.net/k3zfzxgx/ | |
<!-- HTML --> | |
<div id="loginModal" class="modal"> | |
<div class="modal-content modal-login"> | |
<div class="modal-header"> | |
<span class="modal-close">×</span> | |
<h2>My title</h2> | |
</div> | |
<div class="modal-body"> |
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
php yiic.php rresque stop | |
php yiic.php rresque start --count=1 | |
ps aux | grep resque |
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
/* ----------- Non-Retina Screens ----------- */ | |
@media screen | |
and (min-device-width: 1200px) | |
and (max-device-width: 1600px) | |
and (-webkit-min-device-pixel-ratio: 1) { | |
} | |
/* ----------- Retina Screens ----------- */ | |
@media screen | |
and (min-device-width: 1200px) |
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 netstat -ltnp | grep ':80' | |
This would return the following: | |
tcp 0 0 :::80 :::* LISTEN 1047/httpd | |
Then I ran the following command: | |
sudo kill -9 1047 |