When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:
main {
max-width: 38rem;
padding: 2rem;
margin: auto;
}| #!/usr/bin/env python3 | |
| # Build a SQLite3 DB for looking up SHA-1 hashes of leaked passwords. | |
| # | |
| # This can be fed the txt file from one of Have I Been Pwned's hash | |
| # lists available from https://haveibeenpwned.com/Passwords -- but any | |
| # text file with line format ``hash-hex:count`` will work. | |
| # | |
| # When run on the v5 hash-ordered SHA-1 file, expect the build to take | |
| # about 35 minutes and produce a 15.7 GiB file (~30.5 bytes per record). | |
| # |
| default['sshd']['sshd_config']['AuthenticationMethods'] = 'publickey,keyboard-interactive:pam' | |
| default['sshd']['sshd_config']['ChallengeResponseAuthentication'] = 'yes' | |
| default['sshd']['sshd_config']['PasswordAuthentication'] = 'no' |
I have tried this setup and although it works and may be good for ceratin circumstances I would advise using ubuntu as the base with docker, docker-compose, and portainer. https://gist.github.com/mow4cash/626275e095f7f90898944a85d66b3be6
Link to my docker run file https://gist.github.com/mow4cash/6a25343cdeb0cd115f263dea0a3b623d
Table of Contents
| #!/usr/bin/env bash | |
| # Runs a command wrapped in ZFS pre-post snapshots. The whole data pool is recursively snapshotted. | |
| # Analogous to my snp script for BTRFS: https://gist.github.com/erikw/5229436 | |
| # Usage: $ znp <commands> | |
| # e.g.: $ znp pgk upgrade | |
| # e.g.: $ znp portmaster -aG | |
| # e.g.: $ znp freebsd-upgrade install | |
| zfs_pool=zroot |
This content has moved.
Please go to bagder/TRRprefs for the current incarnation of the docs, and please help us out polish and maintain this documentation!
| #!/usr/bin/env python3 | |
| # vim: fileencoding=utf-8 | |
| """ | |
| Upload a TLS key and cert to a FRITZ!Box, in pretty Python | |
| Copyright (C) 2018--2021 Olivier Mehani <shtrom@ssji.net> | |
| This program is free software; you can redistribute it and/or modify | |
| it under the terms of the GNU General Public License as published by | |
| the Free Software Foundation; either version 2 of the License, or | |
| (at your option) any later version. |
Setup interface eth1 and configure the DHCP/DNS server
configure
set interfaces ethernet eth1 address 192.168.2.254/24
set interfaces ethernet eth1 description "eth1 - LAN"
set interfaces ethernet eth1 duplex auto
set interfaces ethernet eth1 speed auto
We're looking at CPU bandwidth control via CFS:
Program does number of iterations, in each iteration we burn CPU in small chunks until we get 5ms of real time spent. On each iteration we also print how much