To set cookies on the localhost, either have a self signed cert setup (see refs), or exclude the 'secure', and 'sameSite' directives.
- Be aware of:
- forbidden headers
#!/usr/bin/env bash | |
# ---------------------------------------------------------------------------------------------------------------------- | |
# | |
# make-ca-cert.sh | |
# | |
# SYNOPSIS | |
# Creates a CA if one doesn't already exist, and installs it (debian). | |
# Creats a server certificate (including wildcard SAN) signed by the CA. | |
# | |
# ---------------------------------------------------------------------------------------------------------------------- |
To set cookies on the localhost, either have a self signed cert setup (see refs), or exclude the 'secure', and 'sameSite' directives.
🗒️ +(...) is part of extended globs, you need to enable them explicitly with
shopt -s extglob
🗒️ expansions support glob -NOT- regex
https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Shell-Expansions https://www.gnu.org/savannah-checkouts/gnu/bash/manual/bash.html#Pattern-Matching
# ---------------------------------------------------------------------- | |
# File: check_failover_dhcp.ps1 | |
# Description: NRPE Nagios Check for Windows Server 2012 DHCP Failover Servers | |
# https://exchange.nagios.org/directory/Plugins/Network-Protocols/DHCP-and-BOOTP/Windows-2012-DHCP-Failover-and-Scope-Health-Check/details | |
# | |
# Checks: Failover State | |
# Failover Mode | |
# Scope State of Each Scope | |
# Scope Statistics (PercentInUse) of Each Scope | |
# |
This is my free Evernote alternative.
There are three components of this solution: the note taking app, cloud-sync utility, and the optional cloud storage.
NOTE: If you don't need more than 2GB of cloud storage, you can get away with simply putting the vault in Dropbox and accessing from all your devices. NO NEED FOR SYNCTHING. Otherwise, read on.
Availability is measured in nines. Here's the breakdown:
Availability % | Downtime/Y | DownTime/Mo | Downtime/w | Downtime/d | Class |
---|---|---|---|---|---|
55.5555555% ("nine fives") | 162.33 d | 13.53 d | 74.92 h | 10.67 h | |
90% ("one nine") | 36.53 d | 73.05 h | 16.80 h | 2.40 h | 1 |
95% ("one nine five") | 18.26 d | 36.53 h | 8.40 h | 1.20 h | |
97% | 10.96 d | 21.92 h | 5.04 h | 43.20 m |
#!/usr/bin/env bash | |
# file_watch.sh | |
# ------------------------------------------------------------------------------ | |
# Description: | |
# Watches a file for changes. | |
# Includes output on inode changes as that may be desirable in some scenarios. | |
# NOTE: ... Just use inotifywait. | |
# | |
# Usage: | |
# ./file_watch <path/to/file> |
#!/bin/env bash | |
# Checks if subdomain.$1 is registered. | |
# Iterates the 1000 most popular subdomains. | |
# NOTE: Can be changed to 10000, or even 100000. | |
# | |
# Usage: | |
# ./dnsSUBflyover.sh nike.com | |
# | |
# NOTE: | |
# For more subdomains: |