Skip to content

Instantly share code, notes, and snippets.

View pedronaves's full-sized avatar

pedro naves pedronaves

View GitHub Profile
@pedronaves
pedronaves / install-comodo-ssl-cert-for-nginx.rst
Created June 2, 2018 03:01 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.

Setting up a SSL Cert from Comodo

I use Namecheap.com 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

@pedronaves
pedronaves / git_revert.md
Created February 2, 2018 10:31 — forked from todgru/git_revert.md
how to use git revert --strategy resolve

Oh yes, this is nice:

git revert --strategy resolve <sha-ish>

Given a git log of A--B--C--D--E you can remove commit C using:

git revert --strategy resolve <sha-of-C> 

Which will produce:

@pedronaves
pedronaves / contact_batch_email.html.erb
Created April 2, 2017 23:50 — forked from Joseworks/contact_batch_email.html.erb
Send batch emails on ActiveAdmin Rails 4.2.0
<!-- Contact batch email -->
<!DOCTYPE html>
<html>
<head>
<meta content='text/html; charset=UTF-8' http-equiv='Content-Type' />
</head>
<body>
<div>Name: <%= @name %></div>
<br>
<div>Subject: <%= @subject %></div>