From 862c895dfc433bc276d7a716a2de3fc873ba0161 Mon Sep 17 00:00:00 2001 From: neodarz Date: Wed, 28 Nov 2018 14:17:02 +0100 Subject: Add some cheat --- cheat/.cheat/django | 3 +++ cheat/.cheat/python | 19 +++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 cheat/.cheat/python (limited to 'cheat') diff --git a/cheat/.cheat/django b/cheat/.cheat/django index 5771985..5d25f15 100644 --- a/cheat/.cheat/django +++ b/cheat/.cheat/django @@ -14,3 +14,6 @@ pip install django # Run dev server python manage.py runserver 127.0.0.1:8000 + +# tinymce for django +https://github.com/romanvm/django-tinymce4-lite diff --git a/cheat/.cheat/python b/cheat/.cheat/python new file mode 100644 index 0000000..e4f5d36 --- /dev/null +++ b/cheat/.cheat/python @@ -0,0 +1,19 @@ +# Desc: Python is a high-level programming language. + +# Basic example of server with python +# Will start a Web Server in the current directory on port 8000 +# go to http://127.0.0.1:8000 + +# Python v2.7 +python -m SimpleHTTPServer +# Python 3 +python -m http.server 8000 + +# SMTP-Server for debugging, messages will be discarded, and printed on stdout. +python -m smtpd -n -c DebuggingServer localhost:1025 + +# Pretty print a json +python -mjson.tool + +# Generate requirements.txt +pipreqs /path/to/project -- cgit v1.2.1