This is now a part of amigus.dnsmasq.
A dhcp-script for Dnsmasq
that makes it manage DHCP lease information in an SQLite database.
Dnsmasq has a dhcp-script configuration parameter.
A dhcp-script for Dnsmasq
that makes it manage DHCP lease information in an SQLite database.
Dnsmasq has a dhcp-script configuration parameter.
| # 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 |
| #!/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 |
| 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 |
| <# | |
| .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 |
| <# | |
| .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 |
| <# | |
| .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 |
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:
| function ConvertFrom-BytesByFactor { | |
| [CmdletBinding()] | |
| param( | |
| [Parameter(Mandatory)][int]$Factor, | |
| [Parameter(Mandatory, ValueFromPipeline)][Int64]$Amount | |
| ) | |
| process { | |
| Write-Debug ("Rounding the result of $Amount * 1024 ^ $Factor") | |
| [Convert]::ToInt64([Math]::Round($Amount * [Math]::Pow(1024, $Factor))) | |
| } |
| CONF := /etc/openldap | |
| BACKUP := $(CONF)/backup.ldif | |
| DATA := $(CONF)/slapd.d | |
| LIB := /var/lib/ldap | |
| LDIF := ./data.ldif | |
| INPUT := ./slapd.conf.custom | |
| GROUP := ldap | |
| OWNER := root |