python3 -c 'import sys, yaml, json; json.dump(yaml.load(sys.stdin, Loader=yaml.FullLoader), sys.stdout, indent=4)' < input.yaml > output.json
Nginx can be configured to route to a backend, based on the server's domain name, which is included in the SSL/TLS handshake (Server Name Indication, SNI).
This works for http upstream servers, but also for other protocols, that can be secured with TLS.
- at least nginx 1.15.9 to use variables in ssl_certificate and ssl_certificate_key.
- check
nginx -V
for the following:... TLS SNI support enabled
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
# | |
# Name: nginx-tls.conf | |
# Auth: Gavin Lloyd <gavinhungry@gmail.com> | |
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating | |
# | |
# Enables HTTP/2, PFS, HSTS and OCSP stapling. Configuration options not related | |
# to SSL/TLS are not included here. | |
# | |
# Additional tips: | |
# |
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
const words = [ | |
// Borrowed from xkcd password generator which borrowed it from wherever | |
"ability","able","aboard","about","above","accept","accident","according", | |
"account","accurate","acres","across","act","action","active","activity", | |
"actual","actually","add","addition","additional","adjective","adult","adventure", | |
"advice","affect","afraid","after","afternoon","again","against","age", | |
"ago","agree","ahead","aid","air","airplane","alike","alive", | |
"all","allow","almost","alone","along","aloud","alphabet","already", | |
"also","although","am","among","amount","ancient","angle","angry", | |
"animal","announced","another","answer","ants","any","anybody","anyone", |
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
# -*- coding: utf-8 -*- | |
# @author: Peter Lamut | |
import argparse | |
import os | |
import shutil | |
N = 10 # the number of files in seach subfolder folder | |
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
/********************************************************************* | |
* | |
* Mozilla Firefox configuration file: `user.js` | |
* | |
* date: 2022-01-08 | |
* version: 0.8.2 | |
* maintainer: brainf+ck | |
* | |
* info: Set preferences for the selected profile when Firefox start. | |
* Copy this file on Firefox Profile folder. You should create a |
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
# This is an example resource file for rTorrent. Copy to | |
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
# uncomment the options you wish to enable. | |
# Maximum and minimum number of peers to connect to per torrent. | |
throttle.min_peers.normal = 1 | |
throttle.max_peers.normal.set = 100 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) | |
throttle.min_peers.seed.set = 1 |
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
# This is an example resource file for rTorrent. Copy to | |
# ~/.rtorrent.rc and enable/modify the options as needed. Remember to | |
# uncomment the options you wish to enable. | |
# Maximum and minimum number of peers to connect to per torrent. | |
min_peers = 1 | |
max_peers = 100 | |
# Same as above but for seeding completed torrents (-1 = same as downloading) |
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
#!/bin/zsh | |
# choose OpenSSL version to install | |
# avbailable versions here: https://github.com/openssl/openssl/tags | |
# you have to copy from the "l" or the "L", they use lowecase and uppercase on the various branches | |
VERSION="l-3.0.1" # VERSION="L_1_1_1l" | |
# compiler options: | |
# darwin-i386 | darwin-i386-cc | darwin-ppc | darwin-ppc-cc | darwin64-arm64 | darwin64-arm64-cc | darwin64-ppc | darwin64-ppc-cc | darwin64-x86_64 | darwin64-x86_64-cc | |
COMPILER="darwin64-x86_64-cc" |