Skip to content

Instantly share code, notes, and snippets.

View reecebenson's full-sized avatar
😎

Reece reecebenson

😎
View GitHub Profile
@reecebenson
reecebenson / Ignore .DS_Store forever
Created April 18, 2021 01:16 — forked from linuslundahl/Ignore .DS_Store forever
Make git always ignore .DS_Store
$ git config --global core.excludesfile ~/.gitignore
$ echo .DS_Store >> ~/.gitignore
@reecebenson
reecebenson / nginx-minio-static.md
Last active April 14, 2021 20:20 — forked from harshavardhana/nginx-minio-static.md
How to configure static website using Nginx with MinIO ?

How to configure static website using Nginx with MinIO ?

1. Install nginx

2. Install minio

3. Install mc client

4. Create a bucket:

$ mc mb myminio/static
Bucket created successfully ‘myminio/static’.
@reecebenson
reecebenson / python_decorator_guide.md
Created March 18, 2021 10:52 — forked from Zearin/python_decorator_guide.md
The best explanation of Python decorators I’ve ever seen. (An archived answer from StackOverflow.)

NOTE: This is a question I found on StackOverflow which I’ve archived here, because the answer is so effing phenomenal.


Q: How can I make a chain of function decorators in Python?


If you are not into long explanations, see [Paolo Bergantino’s answer][2].