Skip to content

Instantly share code, notes, and snippets.

@disorder
disorder / README.md
Created January 14, 2018 09:18
tt-rss init script

Tiny Tiny RSS init script

  • /etc/init.d/tt-rss-DOMAIN
  • /etc/default/tt-rss-DOMAIN

And make tt-rss-DOMAIN start automatically (Debian), adjust init script ordering 4 to your liking:

update-rc.d tt-rss-DOMAIN start 2345 4
@disorder
disorder / README.md
Created January 14, 2018 09:25
letsencrypt snippets

letsencrypt snippets

certbot

# no wildcard certificates yet
certbot certonly --nginx -d domain.tld -d www.domain.tld
certbot renew --nginx
certbot renew --pre-hook "service nginx stop" --post-hook "service nginx start"
@disorder
disorder / gist:40ff4a9b8592064e311ac8065d2dd442
Last active January 14, 2018 12:37 — forked from twneale/gist:5245670
.pythonrc file that adds command history and tab completion to my python shell.
'''
Save this file and add the following line to your ~/.bashrc"
export PYTHONSTARTUP="$HOME/.pythonrc"
'''
import os
import readline
import rlcompleter
import atexit