Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000| import sys | |
| from PyQt5.QtWidgets import QApplication | |
| from PyQt5.QtSvg import QSvgWidget | |
| from io import BytesIO | |
| import matplotlib.pyplot as plt | |
| # matplotlib: force computer modern font set | |
| plt.rc('mathtext', fontset='cm') |
| /* | |
| * Test program for the ambient capabilities | |
| * | |
| * You need to install libcap-ng-dev first, then compile using: | |
| * $ gcc -o ambient ambient.c -lcap-ng && sudo setcap cap_setpcap,cap_net_raw,cap_net_admin,cap_sys_nice+eip ambient | |
| * | |
| * To get a shell with additional caps that can be inherited do: | |
| * | |
| * ./ambient /bin/bash | |
| */ |
Each of these commands will run an ad hoc http static server in your current (or specified) directory, available at http://localhost:8000. Use this power wisely.
$ python -m SimpleHTTPServer 8000A very basic regex-based Markdown parser. Supports the
following elements (and can be extended via Slimdown::add_rule()):