openssl genrsa -out server.key 2048
openssl req -new -x509 -key server.key -out server.pem -days 3650
| package main | |
| import ( | |
| "bufio" | |
| "fmt" | |
| "math/rand" | |
| "os" | |
| "strconv" | |
| "time" | |
| ) |
| #!/usr/bin/env bash | |
| # Generate all non-control unicode characters up to the 3 byte range | |
| # http://stackoverflow.com/questions/5517500/simple-shell-script-for-generating-hex-numbers-of-a-certain-range | |
| # http://www.utf8-chartable.de/ | |
| hex_range () { | |
| from="$1" | |
| to="$2" | |
| for i in $(seq "$(printf "%d" "0x$from")" "$(printf "%d" "0x$to")"); do | |
| printf "%02X\n" "$i" | |
| done |
| #!/usr/bin/env python3 | |
| # -*- coding: utf-8 -*- | |
| """ | |
| Getting Started using the Destiny 2 Api | |
| An annotated guide to some of the public endpoints available for examining a user's | |
| characters, items, and clan using the Destiny 2 API. You will need to use your api key for | |
| this to work. Just insert it as a string where it says <my_api_key> in the beginning. | |
| It is broken into four parts: | |
| 0: Imports, variables, and fixed parameters defined |
I have a Eufy Video doorbell that does a great* job with push notifications, 2K video streaming, and providing basic doorbell functionality; all without a monthy subscription. It comes with a basic 433MHz chime that you can pair and put anywhere in your house. This doesn't really work well with a two story house... it is no where near loud enough to hear it upstairs.
* Despite notifying me that the tree in my front yard is a person when it is windy enough.
| # Install: | |
| # cp rclone-mount@.service ~/.config/systemd/user/ && systemctl --user enable --now rclone-mount@$CLOUD_NAME | |
| # Where $CLOUD_NAME is a section name from rclone.conf | |
| [Unit] | |
| Description=RClone mount: %i | |
| Documentation=man:rclone(1) | |
| After=network.target | |
| Wants=network-online.target | |
| StartLimitIntervalSec=300 |