OpenSSL installs a default configuration file in /etc/ssl/openssl.cnf
.
The configuration defines a (boilerplate) v3_ca
section.
We can use it to generate a subordinate CA certificate request, a.k.a.,
a CSR, for Microsoft Certificate Services by executing:
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Install the 'Regular' fonts in Nerdfonts ZIP files | |
.DESCRIPTION | |
Extract NerdFont Zip files into a temporary directory and install the fonts | |
the fonts matching '-Regular' while filtering out the '-Mono' and '-Propo' | |
variants. | |
.EXAMPLE |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Controls WiZ lightbulbs. | |
.DESCRIPTION | |
I want to control my lightbulbs. These functions allow me to do that. | |
.EXAMPLE | |
# Get the current state of all bulbs on the first network with a gateway | |
Get-WiZBulb | |
.EXAMPLE | |
# Get the current state of all bulbs on the specified network interface |
This file contains hidden or 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
<# | |
.SYNOPSIS | |
Easily create a new Gen 2 Hyper-V VM with reasonable defaults. | |
.DESCRIPTION | |
Easily create a Generation 2 VM using a VHD or ISO image. | |
The defaults are also meant to be "reasonable in most cases," so as to allow |
This file contains hidden or 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
Invoke-Expression (&{ | |
curl -Ls https://gist.githubusercontent.com/amigus/555b34d0b1c872c33f3fee55c7ed17e9/raw/ByteCalculationFunctions.ps1 | |
oh-my-posh init -s pwsh | |
zoxide init --cmd 'cd' powershell | |
} | Out-String) | |
Import-Module posh-git, PSfzf, Terminal-Icons | |
Enable-PoshToolTips | |
Set-PSReadLineOption -EditMode Windows -PredictionSource History -HistoryNoDuplicates |
This file contains hidden or 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/sh | |
UMASK=027 | |
TIMEZONE='EST' | |
# set the timezone *before* creating a bunch of logs 🕛✅ | |
timedatectl set-timezone $TIMEZONE | |
# update and fire up sshguard first 🔥 | |
apt -y update |
This file contains hidden or 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
# A minimal configuration using non-default settings | |
[global] | |
log level = auth:6 idmap:6 | |
map to guest = Bad User | |
restrict anonymous = 1 | |
use sendfile = Yes | |
[root$] | |
path = /srv/smb | |
inherit permissions = Yes | |
browsable = No |
A dhcp-script
for Dnsmasq
that makes it manage DHCP lease information in an SQLite database.
Dnsmasq has a dhcp-script
configuration parameter.
When set, Dnsmasq invokes the script whenever DHCP lease information changes.
When combined with leasefile-ro
it fully replaces the leases file.
OlderNewer