Written for fairly adept technical users, preferably of Debian GNU/Linux, not for absolute beginners.
|
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
|
You'll probably be working with a single smartcard, so you'll want only one primary key ( |
| ### | |
| # Proxmox or other server kernel params cheap tune and secure. | |
| # Try it if you have heavy load on server - network or memory / disk. | |
| # No harm assumed but keep your eyes open. | |
| # | |
| # @updated: 2020-02-06 - more params used, adjust some params values, more comments on params | |
| # | |
| ### NETWORK ### |
| #!/usr/bin/env python3 | |
| """ | |
| Generate a random IPv6 address for a specified subnet | |
| """ | |
| from random import seed, getrandbits | |
| from ipaddress import IPv6Network, IPv6Address | |
| subnet = '2001:db8:100::/64' |
| lsusb -v 2> /dev/null | grep -e "Apple Inc" -A 2 |
| #!/usr/bin/env python2 | |
| """A very simple Apache access log parser in Python | |
| usage help = http://i.imgur.com/XBiX2kX.png | |
| when required arguments are missing = http://i.imgur.com/P5L0GZV.png | |
| when incorrect file path is passed = http://i.imgur.com/sJDc0om.png | |
| successful sample output = http://i.imgur.com/iH89mwI.png |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)That's it!