Skip to content

Instantly share code, notes, and snippets.

@FaridLU
FaridLU / django_deployment.md
Last active June 3, 2024 14:02
Deploy Django project - Digital Ocean / AWS (EC2) - (Django + Redis + Gunicorn + Nginx + Supervisor + Lets Encrypt)

Login to your server via ssh

$ ssh root@server-ip-address

Initial Server Setup:

  1. Create a new user and set the password:
$ adduser ubuntu
@goodevilgenius
goodevilgenius / fortune_variety_quotes.py
Last active October 28, 2023 05:09
[Variety fortune plugin] Plugin for Variety background changer that uses the UNIX fortune program as a quotes source
#!/usr/bin/python
from variety.plugins.IQuoteSource import IQuoteSource
import subprocess, re
from locale import gettext as _
class FortuneSource(IQuoteSource):
@classmethod
def get_info(cls):
return {