Skip to content

Instantly share code, notes, and snippets.


@romera romera-github

View GitHub Profile
romera-github / Python3 Virtualenv
Created Sep 30, 2020 — forked from pandafulmanda/Python3 Virtualenv
Setting up and using Python3 Virtualenv on Mac
View Python3 Virtualenv

Python3 Virtualenv Setup

  • Python 3
  • Pip 3
$ brew install python3
View kubernetes
helm install --name odoo4 -f values.yaml stable/odoo
helm install --name odoo stable/odoo
kubectl get nodes -o yaml |less
kubectl describe node
romera-github / fix-libv8-mac.txt
Created Feb 12, 2020 — forked from fernandoaleman/fix-libv8-mac.txt
Fixing libv8 and therubyracer on Mac
View fix-libv8-mac.txt
brew tap homebrew/versions
brew install v8-315
gem install libv8 -v '' -- --with-system-v8
gem install therubyracer -- --with-v8-dir=/usr/local/opt/v8-315
bundle install
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,
romera-github / 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

romera-github / 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
You can’t perform that action at this time.