aboutsummaryrefslogtreecommitdiff
path: root/cheat/.cheat/python
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 /cheat/.cheat/python
parent15a404e6a0d95383f02423860a599ad987830424 (diff)
downloaddotfiles_ascii-862c895dfc433bc276d7a716a2de3fc873ba0161.tar.xz
dotfiles_ascii-862c895dfc433bc276d7a716a2de3fc873ba0161.zip
Add some cheat
Diffstat (limited to 'cheat/.cheat/python')
-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