mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
mitmproxy is an excellent console app written in Python.
It is easy to use on Linux and OS X.
Use brew install mitmproxy to install it on OS X.
| # Originally from http://sharebear.co.uk/blog/2009/09/17/very-simple-python-caching-proxy/ | |
| # | |
| # Usage: | |
| # A call to http://localhost:80000/example.com/foo.html will cache the file | |
| # at http://example.com/foo.html on disc and not redownload it again. | |
| # To clear the cache simply do a `rm *.cached`. To stop the server simply | |
| # send SIGINT (Ctrl-C). It does not handle any headers or post data. | |
| import BaseHTTPServer | |
| import hashlib |
I used to think that
ssh -X [email protected]
"just bloody worked". However this might not work - ssh must play ball on both sides of the link. On the remote (ssh server, X client) sshd must sit behind some port, tell Xlib to send X11 requests to it and then forward them back to you the X server (where the ssh client is). If the remote box is locked down to prevent this, you will get:
X11 forwarding request failed on channel 0
as part of an otherwise working login. As it happens, I am the admin of the remote box in question, so I followed the ArchWiki and went to /etc/ssh/sshd_config and uncommented
Unfortunately, there are 2 versions of this. The other is here: https://github.com/endolith/waveform-analyzer I intend to either completely combine them or completely separate them, eventually.
Somewhat crude THD+N calculator in Python
Measures the total harmonic distortion plus noise (THD+N) for a given input signal, by guessing the fundamental frequency (finding the peak in the FFT), and notching it out in the frequency domain. This is a THDR