Skip to content

Instantly share code, notes, and snippets.

@bradmontgomery
bradmontgomery / install-comodo-ssl-cert-for-nginx.rst
Last active November 2, 2024 06:45
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

@fbidu
fbidu / mimimi.py
Last active August 10, 2018 02:21
def mimimi(frase):
"""
Função que mimimiza frases
>>> mimimi('Por que você não tá estudando pra sua prova de amanhã?')
'Pir qii vici nii ti istidindi pri sii privi di iminhi?'
"""
n = ('ã', 'a', 'e', 'o', 'u', 'á', 'é', 'ê', 'í', 'ó')
for letra in n:
frase = frase.replace(letra, 'i')
return frase
@prendradjaja
prendradjaja / tests.py
Last active April 16, 2018 17:56
Python unit test boilerplate (with spaces)
# https://gist.github.com/prendradjaja/35a2816c0b5750ffc91cc091e760dc00
# for version with tabs
import unittest
class TestSomething(unittest.TestCase):
def test_something(self):
pass
if __name__ == '__main__':