aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/python
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--cheat/.cheat/python19
1 files changed, 19 insertions, 0 deletions
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