Assunto: Alcance mais clientes para sua empresa de forma eficaz.
Olá [Nome do Proprietário] ou [Empresa],
FileETag MTime Size | |
<IfModule mod_expires.c> | |
ExpiresActive on | |
ExpiresDefault "access 1 month" | |
ExpiresByType text/html "access 1 month" | |
# CSS | |
ExpiresByType text/css "access 1 year" | |
ExpiresByType application/javascript "access 1 year" |
#!/usr/bin/env python3 | |
""" | |
License: MIT License | |
Copyright (c) 2023 Miel Donkers | |
Very simple HTTP server in python for logging requests | |
Usage:: | |
./server.py [<port>] | |
""" | |
from http.server import BaseHTTPRequestHandler, HTTPServer |
The TP Link Kasa smart switches log energy consumption data over time, however the app is very limited and won't let you get out data, graph it or see historical usage. This script extracts and saves to a CSV file.
The python-kasa
library is used to communicate with the Kasa switch.
(let* | |
((fish-path (shell-command-to-string "/opt/homebrew/bin/fish -i -c \"echo -n \\$PATH[1]; for val in \\$PATH[2..-1];echo -n \\\":\\$val\\\";end\"")) | |
(full-path (append exec-path (split-string fish-path ":")))) | |
(setenv "PATH" fish-path) | |
(setq exec-path full-path)) |
Part of collection: Hyper-converged Homelab with Proxmox
Keepalived is a Loadbalancer to add ‘high availability` to Linux systemen. See the Keepalived documentatie for more background information.
This setup build on High Available Pi-hole failover cluster using Keepalived and Orbital Sync.
For my desk and laptop bag:
# -*- coding: utf-8 -*- | |
from __future__ import unicode_literals | |
''' | |
List of reserved usernames (pre-defined list of special banned and reserved keywords in names, | |
such as "root", "www", "admin"). Useful when creating public systems, where users can choose | |
a login name or a sub-domain name. | |
__References:__ | |
1. http://www.bannedwordlist.com/ | |
2. http://blog.postbit.com/reserved-username-list.html |
function Get-MsiProducts { | |
function Get-MsiUpgradeCode { | |
[CmdletBinding()] | |
param ( | |
[System.Guid]$ProductCode | |
, | |
[System.Guid]$UpgradeCode | |
) | |
function ConvertFrom-CompressedGuid { |