Skip to content

Instantly share code, notes, and snippets.

@rlr
rlr / surveygizmo.py
Created March 8, 2013 16:59
Grab emails from SUMO's email collection survey and add them to the Exit Survey email campaign.
#!/usr/bin/env python
import json
import optparse
import sys
from datetime import datetime
try:
import requests
except ImportError:
@rlr
rlr / git-url
Created March 19, 2013 18:02
* copies the commit's github url to your clipboard * prints out the log message * opens the bugzilla page if it found a bug number
#!/bin/sh
# Usage: `git url` or `git url <commitish>`
#
# * copies the commit's github url to your clipboard
# * prints out the log message
# * opens the bugzilla page if it found a bug number
#
# Set up the github url with `git config github.url <url>`.
# Only for the Mac.
# To get the number of support forum contributors:
from datetime import date
from django.db.models import F, Count
from kitsune.questions.models import Answer
start_date =date(2013,1,1)
end_date = date(2014,1,1)
@rlr
rlr / letsencrypt_2018.md
Created November 23, 2018 13:48 — forked from cecilemuller/letsencrypt_2020.md
How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SSL rating)

How to setup Let's Encrypt for Nginx on Ubuntu 18.04 (including IPv6, HTTP/2 and A+ SLL rating)


Virtual hosts

Let's say you want to host domains first.com and second.com.

Create folders for their files: