Skip to content

Instantly share code, notes, and snippets.

View waskito's full-sized avatar
Working from home

Yanuar Waskito waskito

Working from home
  • Indonesia
View GitHub Profile
waskito / pagespeed.conf
Created May 24, 2017 16:56 — forked from smj10j/pagespeed.conf
Nginx conf for mod pagespeed
# Google Pagespeed
pagespeed on;
pagespeed FileCachePath /var/cache/ngx_pagespeed/;
# let's speed up PageSpeed by storing it in the super duper fast memcached
pagespeed MemcachedThreads 1;
pagespeed MemcachedServers "";
# show half the users an optimized site, half the regular site
#!/usr/bin/env bash
# User must be root
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
# Check if www-data do exist
q=$(id -u www-data)