Skip to content

Instantly share code, notes, and snippets.

@zhongsheng94
zhongsheng94 / map.sublime-syntax
Last active March 9, 2018 03:42
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 :-)
%YAML 1.2
---
# See http://www.sublimetext.com/docs/3/syntax.html
name: ARM Map
file_extensions:
- map
scope: text.map
# first_line_match:
@zhongsheng94
zhongsheng94 / root-ro
Last active November 27, 2018 08:16 — forked from niun/root-ro
Read-only Root-FS with overlayfs for Raspian
#!/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 / SimpleHTTPServerWithUpload.py
Created July 1, 2019 01:43 — forked from UniIsland/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload
#!/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 / server.py
Created July 13, 2019 13:16 — forked from mdonkers/server.py
Simple Python 3 HTTP server for logging all GET and POST requests
#!/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):
@zhongsheng94
zhongsheng94 / SimpleHTTPServerWithUpload.py
Created January 4, 2020 04:26 — forked from touilleMan/SimpleHTTPServerWithUpload.py
Simple Python Http Server with Upload - Python3 version
#!/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
"""