Posts

Configure subdomain as “CDN” in NGINX (+ WordPress & W3 Total Cache configuration)

UPDATE: CORS (Cross-origin resource sharing) added to the “fake” CDN. Based on: https://gist.github.com/alexjs/4165271 In a typical scenario, you serve your webpage from single domain, that includes all yours “server generated” pages and also the images and assets (javascript, css and other files) of your site.

View more

WordPress NGINX configuration

I’ve been installing some wordpress sites in my new VPS running with NGINX. Install wordpress with Nginx is not as complicated as it might seem but you have to do some configurations to increase security and to make it work with cache plugins.

View more

FamFamFam flags sprite (with compass)

Creating css sprites is an amazing feature in compass. There is a tutorial to use compass to generate css sprites in the compass documentation.

View more

Auto-generated cache.manifest in PHP

If you don’t want to read the entire entry, you can get the code (and propose changes, of course) in github: https://github.

View more

Saas @mixin for change measures for responsive desing

Working in my last project I needed to change the measure of some elements to the 60% to adapt them to mobile browsers.

View more

Capture simple, double, triple, long and right clicks in the same element with jQuery

This is a simple code snippet to capture simple, double, triple, long and right clicks in an element with jquery.

View more