Skip to content

Instantly share code, notes, and snippets.

julian romera julianromera

Block or report user

Report or block julianromera

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View theme.css
@import url(,700,500,300);@-webkit-keyframes rotating{from{-webkit-transform:rotate(0deg)}to{-webkit-transform:rotate(360deg)}}@keyframes rotating{from{transform:rotate(0deg)}to{transform:rotate(360deg)}}[src$='blue.png']{background-image:url(data:image/svg+xml;charset=UTF-8,}[src$='red.png']{background-image:url(data:image/svg+xml;charset=UTF-8,
julianromera / install-comodo-ssl-cert-for-nginx.rst
Created Jul 2, 2016 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

julianromera / gist:ba0c1001b696d5faaa5f1f1a29436ef3
Created Apr 14, 2016 — forked from guilherme/gist:9604324
Git pre-commit hook that detects if the developer forget to remove all the javascript console.log before commit.
View gist:ba0c1001b696d5faaa5f1f1a29436ef3
# Redirect output to stderr.
exec 1>&2
# enable user input
exec < /dev/tty
if test $(git diff --cached | grep $consoleregexp | wc -l) != 0
View tmux-cheatsheet.markdown

tmux shortcuts & cheatsheet

start new:


start new with session name:

tmux new -s myname
# Script to install/upgrade Nginx(Naxsi,PageSpeed,PCRE) from sources on CentOS 6
# Author: Duc Hieu - 12/2014.
# Base System: CentOS release 6.6 (Final)
# License: MIT
# Syntax: # sh
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View nginx.conf
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
View default.vcl
# Default backend definition. Set this to point to your content server.
backend default {
.host = "";
.port = "8080";
.connect_timeout = 60s;
.first_byte_timeout = 60s;
.between_bytes_timeout = 60s;
.max_connections = 800;
julianromera /
Last active Aug 29, 2015
user commands, MySQL

CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON . TO 'newuser'@'localhost';

DROP USER ‘newuser’@‘localhost’;

SET PASSWORD FOR 'newuser'@'localhost' = PASSWORD('mypass');

GRANT [type of permission] ON [database name].[table name] TO ‘[username]’@'localhost’; REVOKE [type of permission] ON [database name].[table name] FROM ‘[username]’@‘localhost’;

julianromera / page.css
Last active Aug 29, 2015
Carrot + Solr integration on ODS site.
View page.css
* ODS-Carrot, css override
* append this snippet on page.css (var/lib/tomcat7/webapps/carrot2/skins22/common/css)
body#results {
background-image: none !important;
You can’t perform that action at this time.