Skip to content

Instantly share code, notes, and snippets.

@daviddang91
daviddang91 / supervisor.conf
Created October 2, 2019 09:00 — forked from tsabat/supervisor.conf
Sample supervisor config file
; Sample supervisor config file.
[unix_http_server]
file=/tmp/supervisor.sock ; (the path to the socket file)
;chmod=0700 ; sockef file mode (default 0700)
;chown=nobody:nogroup ; socket file uid:gid owner
;username=user ; (default is no username (open server))
;password=123 ; (default is no password (open server))
;[inet_http_server] ; inet (TCP) server disabled by default
@daviddang91
daviddang91 / fontawesome-scss-in-nextjs.md
Created January 29, 2020 14:33 — forked from mehmetnyarar/fontawesome-scss-in-nextjs.md
Loading FontAwesome with SCSS in NextJS

Loading FontAwesome with SCSS in NextJS

Install Plugins

Install these two plugins:

Edit Configuration File

@daviddang91
daviddang91 / gist:dec70c90b8a5d0333782d3e0b8dfd852
Created February 27, 2020 03:10 — forked from pingwping/gist:92219a8a1e9d44e1dd8a
Create and update embedded documents with MongoEngine
# REF: http://www.quora.com/How-do-I-create-and-update-embedded-documents-with-MongoEngine
class Comment(EmbeddedDocument):
content = StringField()
name = StringField(max_length=120)
class Post(Document):
title = StringField(max_length=120, required=True)
author = StringField(required=True)