Skip to content

Instantly share code, notes, and snippets.

Avatar

zhongsheng94

  • China
View GitHub Profile
@zhongsheng94
zhongsheng94 / SimpleHTTPServerWithUpload.py
Created Jan 4, 2020 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
View SimpleHTTPServerWithUpload.py
#!/usr/bin/env python3
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
see: https://gist.github.com/UniIsland/3346170
"""
@zhongsheng94
zhongsheng94 / server.py
Created Jul 13, 2019 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
View server.py
#!/usr/bin/env python3
"""
Very simple HTTP server in python for logging requests
Usage::
./server.py [<port>]
"""
from http.server import BaseHTTPRequestHandler, HTTPServer
import logging
class S(BaseHTTPRequestHandler):
View SimpleHTTPServerWithUpload.py
#!/usr/bin/env python
"""Simple HTTP Server With Upload.
This module builds on BaseHTTPServer by implementing the standard GET
and HEAD requests in a fairly straightforward manner.
"""
@zhongsheng94
zhongsheng94 / root-ro
Last active Nov 27, 2018 — forked from niun/root-ro
Read-only Root-FS with overlayfs for Raspian
View root-ro
#!/bin/sh
#
# Read-only Root-FS for Raspian
#
# Modified 2018 by Zhong Sheng to support using filesystem other than tmpfs as upper filesystem
#
# Modified 2015 by Pascal Rosin to work on raspian-ua-netinst with
# overlayfs integrated in Linux Kernel >= 3.18.
#
# Originally written by Axel Heider (Copyright 2012) for Ubuntu 11.10.
@zhongsheng94
zhongsheng94 / map.sublime-syntax
Last active Mar 9, 2018
This is a sublime-syntax file for *Sublime Text 3* which highlights the MAP FILE generated by Keil MDK-ARM, you can just put it into Packages/User folder to apply it :-)
View map.sublime-syntax
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: ARM Map
file_extensions:
- map
scope: text.map
# first_line_match:
You can’t perform that action at this time.