Skip to content

Instantly share code, notes, and snippets.

View cristiancorreau's full-sized avatar

Cristian Correa cristiancorreau

View GitHub Profile
@cristiancorreau
cristiancorreau / site.conf
Created December 15, 2022 01:17 — forked from paskal/site.conf
Nginx configuration for best security and modest performance. Full info on https://terrty.net/2014/ssl-tls-in-nginx/
# read more at https://terrty.net/2014/ssl-tls-in-nginx/
# latest version on https://gist.github.com/paskal/628882bee1948ef126dd/126e4d1daeb5244aacbbd847c5247c2e293f6adf
# security test score: https://www.ssllabs.com/ssltest/analyze.html?d=terrty.net
# your nginx version might not have all directives included, test this configuration before using in production against your nginx:
# $ nginx -c /etc/nginx/nginx.conf -t
server {
# public key, contains your public key and class 1 certificate, to create:
# (example for startssl)
# $ (cat example.com.pem & wget -O - https://www.startssl.com/certs/class1/sha2/pem/sub.class1.server.sha2.ca.pem) | tee -a /etc/nginx/ssl/domain.pem > /dev/null
@cristiancorreau
cristiancorreau / remove-gf-divi.php
Created June 6, 2017 23:03 — forked from mkrdip/remove-gf-divi.php
Remove Google Fonts from Divi
<?php
function wpse_dequeue_google_fonts() {
wp_dequeue_style( 'divi-fonts' );
}
add_action( 'wp_enqueue_scripts', 'wpse_dequeue_google_fonts', 20 );
@cristiancorreau
cristiancorreau / en.yml
Created December 12, 2012 01:27 — forked from scastill/en.yml
es:
# Used in distance_of_time_in_words(), distance_of_time_in_words_to_now(), time_ago_in_words()
datetime:
distance_in_words:
half_a_minute: "hace un minuto"
less_than_x_seconds:
one: "hace menos de 1 segundo"
other: "hace menos de %{count} segundos"
x_seconds:
one: "1 segundo"