I hereby claim:
- I am fvdm on github.
- I am fvdm (https://keybase.io/fvdm) on keybase.
- I have a public key ASAyX5-yLgqCT-ZYVwdO6e_9cjdCHf0BRl3P5Vm6yEIdNwo
To claim this, I am signing this object:
I hereby claim:
To claim this, I am signing this object:
| #!/bin/bash | |
| # Human readable statistics for connected WireGuard clients | |
| # | |
| # Source: https://gist.github.com/fvdm/cb5b90541b076914ee897d048cd4f549 | |
| # | |
| # This script is following the 'wireguard-manager' storage | |
| # Filenames: [wg_iface]-client-[name].conf | |
| # | |
| # Set 'wg_clients' to the path where client configs are saved |
| /** | |
| * Request bandwidth monitor stats from Fritz!Box | |
| * | |
| * Values are converted to megabits per second | |
| * The user must have permission to access the Fritz!Box settings | |
| * Set the existing number-variable names in the `saveMap` object keys | |
| * | |
| * @see {@link https://gist.github.com/fvdm/d2c36c9c26e3df8a56fdc12d943aa469} | |
| */ |
| /** | |
| * HomeyScript to stall the flow a number of [m]inutes, [s]econds or [m]illi[s]econds (default) | |
| * | |
| * @example 2 -> waiting 2ms | |
| * @example 2m -> waiting 2 min | |
| * @example 2s -> waiting 2 seconds | |
| * | |
| * @see {@link https://gist.github.com/fvdm/23a77945799d204512877caf87aee9a2} | |
| */ |
| /** | |
| * Parse the argument to an integer of `number` type. | |
| * Optionally you can enforce the output type to `number` (default), `string` or `bool`. | |
| * The result is provided in the `value` tag. | |
| * | |
| * @example '22:00' -> 22 | |
| * @example '22:00 string' -> '22' | |
| * @example '22:00 bool' -> true | |
| * @example '0 bool' -> false | |
| * |
| /** | |
| * Get current date and time as card tags | |
| * Optional date offset calculation using Homey's timezone | |
| * suffix: [y]ears, [m]onths, [d]ays, [h]ours, m[i]nutes, [s]econds, [m]illi[s]econds | |
| * | |
| * @example | |
| * // two months ago | |
| * '-2m' | |
| * | |
| * @example |
I hereby claim:
To claim this, I am signing this object:
| [ | |
| { | |
| "id": "EC1657C2-44A7-446C-8E2F-D2D6D2A9BAB1", | |
| "name": "Resource abuse", | |
| "rules": [ | |
| { | |
| "content": { | |
| "action": { | |
| "type": "block" | |
| }, |
| <?xml version="1.0" encoding="UTF-8"?> | |
| <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> | |
| <plist version="1.0"> | |
| <dict> | |
| <key>Label</key> | |
| <string>homebrew.mxcl.pdnsrec</string> | |
| <key>ProgramArguments</key> | |
| <array> | |
| <string>/usr/local/opt/pdnsrec/sbin/pdns_recursor</string> | |
| </array> |