Skip to content

Instantly share code, notes, and snippets.

{
"$schema": "https://raw.githubusercontent.com/jsonresume/resume-schema/v1.0.0/schema.json",
"basics": {
"name": "Rafael Díez",
"label": "Technical SEO Advisor & Consultant ",
"image": "https://avatars.githubusercontent.com/u/6414605",
"email": "rafa@rafaeldiez.com",
"email": "rdiezv@gmail.com",
"phone": "+34651912873",
"website": "https://www.rafaeldiez.com",
@rdiezv
rdiezv / optimize.sh
Last active August 29, 2015 14:18 — forked from lgiraudel/optimize.sh
#!/bin/bash
PROGNAME=${0##*/}
INPUT=''
QUIET='0'
NOSTATS='0'
max_input_size=0
max_output_size=0
usage()
# sets the proxy cache path location, max size 2g
proxy_cache_path /data/nginx/cache levels=1:2 keys_zone=STATIC:100m inactive=24h max_size=2g;
# transfers the `Host` header to the backend
proxy_set_header Host $host;
# uses the defined STATIC cache zone
proxy_cache STATIC;
# cache 200 10 minutes, 404 1 minute, others status codes not cached
javascript:(function(){function read(url){var r=new XMLHttpRequest();r.open('HEAD',url,false);r.send(null);return r.getAllResponseHeaders();}alert(read(window.location))})();