aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorneodarz <neodarz@neodarz.net>2018-11-28 14:17:02 +0100
committerneodarz <neodarz@neodarz.net>2018-11-28 14:17:02 +0100
commit862c895dfc433bc276d7a716a2de3fc873ba0161 (patch)
tree33189a4f996a7d31eef21aeee2ef1990f828dbb5
parent15a404e6a0d95383f02423860a599ad987830424 (diff)
downloaddotfiles_ascii-862c895dfc433bc276d7a716a2de3fc873ba0161.tar.xz
dotfiles_ascii-862c895dfc433bc276d7a716a2de3fc873ba0161.zip
Add some cheat
-rw-r--r--cheat/.cheat/django3
-rw-r--r--cheat/.cheat/python19
2 files changed, 22 insertions, 0 deletions
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