Skip to content

Instantly share code, notes, and snippets.

@mufus
mufus / homelab_nut.md
Last active July 10, 2023 18:54
Configuring NUT Server/Client on pfSense, Synology NAS, and VMware ESXi for Homelab UPS Management

NUT (Network UPS Tools) installation for HomeLab

This guide provides instructions on how to install and configure the Network UPS Tools (NUT) server/client to manage the power supply of your homelab components through a pfSense router, VMware ESXi hypervisor, and Synology NAS.

In this configuration, the pfSense router acts as the NUT server connected to the UPS, while the VMware ESXi and Synology NAS act as NUT clients, receiving UPS status information from the NUT server running on the pfSense router.

pfSense (NUT Server)

  1. Install the "NUT" package.
  2. For UPS Settings, configure as follows:
  • UPS type: Local USB
@mufus
mufus / clamav.pm
Created October 19, 2020 17:07 — forked from pmeulen/clamav.pm
A spamassassin plugin that calls clamav
## A spamassassin plugin for calling clamav
# Version 2.0 was downloaded from https://wiki.apache.org/spamassassin/ClamAVPlugin
#
# # version 2.0, 2010-01-07
# - use SA public interface set_tag() and add_header, instead of
# pushing a header field directly into $conf->{headers_spam}
#
# # version 2.1, 2017-09-09 (pmeulen):
# - Allow ClamAV::Client, which is provided by debian package libclamav-client-perl, to be used
# in addition to File::Scan::ClamAV

Keybase proof

I hereby claim:

  • I am mufus on github.
  • I am mufus (https://keybase.io/mufus) on keybase.
  • I have a public key whose fingerprint is 363A 623C C602 3774 7F7D 3020 C539 3B6D F652 802E

To claim this, I am signing this object:

@mufus
mufus / rsnapshot-sudo.rst
Last active January 24, 2019 07:46
Rsnapshot with sudo

Generate ssh-keys

ssh-keygen

Hosts to back up

@mufus
mufus / gist:1975613e529b37eeac53
Last active August 29, 2015 14:04
Customize Debian Wheezy .deb packages
Set up a new Debian 7 machine and install the usual basic packages
sudo apt-get install open-vm-tools lynx vim curl psmisc snmpd ntp patch rcconf rsync equivs
Add wheezy-backport apt-source
sudo vim /etc/apt/sources.list:
deb http://ftp.se.debian.org/debian/ wheezy-backports main non-free contrib
deb-src http://ftp.se.debian.org/debian/ wheezy-backports main non-free contrib
sudo apt-get update

Setting up a SSL Cert from Comodo

Purchasing a Comodo PositiveSSL cert via gogetssl.com and installing it on an Nginx server.

Purchase the cert

Prior to purchasing a cert, you need to generate a private key, and a CSR file