Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
Here is another exciting thing that google has release and i really wish to document this down so that i could reuse it on all of my servers since i can see a good amount of optimization done on the server by mod_pagespeed. Anyway without anymore bull crap, i shall starts. | |
Firstly, you might want to visit mod_pagespeed download page and standby for the time being. And my machine is a 64bit machine so if you are running on 32bit just remove all the ’64′ you see in the instruction. eg. “lib64″ | |
Firstly login into your server as “root” and start firing the below commands, | |
cd /usr/local/src | |
mkdir mod_pagespeed | |
cd mod_pagespeed | |
wget https://dl-ssl.google.com/dl/linux/direct/mod-pagespeed-stable_current_x86_64.rpm |
L will make last rule | |
NE is for no escaping query string | |
QSA will append your existing query parameters | |
NC is for ignore case comparison |
class Bootstrap extends Zend_Application_Bootstrap_Bootstrap { | |
protected function _initNavigation() { | |
// make sure the layout is loaded | |
$this->bootstrap('layout'); | |
// get the view of the layout | |
$layout = $this->getResource('layout'); | |
$view = $layout->getView(); | |
varnishd -C -f /path/to/foo.vcl |
Programa: http://luethje.eu/prog/mbx2e068_de.zip | |
Tutorial: http://email.about.com/od/mozillathunderbirdtips/qt/et_export_to_oe.htm |
Atualizado: http://jsbin.com/emonev/13/edit | |
http://jsbin.com/emonev/1/edit | |
var listaGenero = ['acao', 'drama', 'comedia', 'drama', 'drama', 'comedia', 'humor']; | |
function contarOcorrencia(genero) { | |
count = 0; | |
for (i = 0; i<=listaGenero.length - 1; i++) |
public function slug($name) | |
{ | |
$name = mb_strtolower($name, 'UTF-8'); | |
$pattern = array( | |
'/[âãàáä]/u', | |
'/[êèéë]/u', | |
'/[îíìï]/u', | |
'/[ôõòóö]/u', | |
'/[ûúùü]/u', |
Launch the instance and connect with ssh.
##Update the server
sudo yum update
##Install php and MySQL packages
php -q /home/username/public_html/support_ticket_sw/pipe/pop.php | mail -s "cron output" [email protected] |
# Arrumando a Data | |
rm -f /etc/localtime | |
ln -s /usr/share/zoneinfo/America/Recife /etc/localtime |