Skip to content

Instantly share code, notes, and snippets.

version: '3'
services:
synapse:
image: docker.io/matrixdotorg/synapse:latest
restart: unless-stopped
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
volumes:
@kohfuchs
kohfuchs / Django_Default_Config.md
Created August 5, 2020 04:55 — forked from singerng/Django_Default_Config.md
Config for Django/Pipenv/Gunicorn/Nginx/Systemd.

Reasonable default configuration for a web app that uses Django and the following dependencies:

  • Pipenv: Python package manager
  • Gunicorn: WSGI server
  • Nginx: Static webserver passing to gunicorn, handling SSL, etc.
  • Systemd: Used to load Gunicorn on startup

This is my goto for setting up projects.

@kohfuchs
kohfuchs / default nginx configuration file
Created June 21, 2020 19:08 — forked from skbr1234/default nginx configuration file
The default nginx configuration file inside /etc/nginx/sites-available/default
## Personal note: Muslims are not terrorists and I humbly request my engineering community to help end racism.
# You should look at the following URL's in order to grasp a solid understanding
# of Nginx configuration files in order to fully unleash the power of Nginx.
# http://wiki.nginx.org/Pitfalls
# http://wiki.nginx.org/QuickStart
# http://wiki.nginx.org/Configuration
#
# Generally, you will want to move this file somewhere, and start with a clean
# file but keep this around for reference. Or just disable in sites-enabled.
#
@kohfuchs
kohfuchs / urldl.py
Last active January 3, 2020 19:58
Download list of links in python with wget
#!/usr/bin/python3
import wget
import argparse
parser = argparse.ArgumentParser(description='Download files via .list file')
parser.add_argument('list', help='.list file')
parser.add_argument('--path' , help='path to save your outputfile')
arg = parser.parse_args()

Keybase proof

I hereby claim:

  • I am kohfuchs on github.
  • I am fuchsr (https://keybase.io/fuchsr) on keybase.
  • I have a public key ASDo4XMMD7IBO-NuvXjIOllei8NEnkmzIZiRcYMoS_FG7Qo

To claim this, I am signing this object: