This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;; | |
(defun nxml-comment-next-tag (&optional arg) | |
(interactive "^p") | |
(or arg (setq arg 1)) | |
(nxml-forward-element) | |
(nxml-backward-element) | |
(let (p1 p2) | |
(setq p1 (point)) | |
(nxml-forward-element) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /usr/bin/python3 | |
# A simple HTTP proxy which does caching of requests. | |
# "Inspired" by: https://gist.github.com/justinmeiners/24dcf5904490b621220bed643651f681 | |
# but updated with | |
#- a clean exit on signal allowing it to be easily popped by another script using subprocess | |
#- tcp socket reuse to avoid the tcp socket already in use if popped often | |
#- a cache directory to avoid a lot of files just being in the middle | |
# | |
# use it by getting 'http://localhost:8000/www.kernel.org' to get http://www.kernel.org |