View install_check_mk_osx.sh
This file contains 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
# Clone Repo | |
git clone https://github.com/ThomasKaiser/Check_MK.git | |
cd Check_MK | |
# Remove less common plugins | |
rm -f agents/plugins/monitor-jss-and-macos-updates agents/plugins/city-temperatures agents/plugins/monitor-kerio agents/plugins/smart* | |
# Install dependencies | |
brew install smartmontools osx-cpu-temp |
View replace_synology_ssl_certs.sh
This file contains 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 | |
# | |
# *** For DSM v7.x *** | |
# | |
# How to use this script: | |
# 1. Get your 3 PEM files ready to copy over from your local machine/update server (privkey.pem, fullchain.pem, cert.pem) | |
# and put into a directory (this will be $CERT_DIRECTORY). | |
# 2. Ensure you have a user setup on synology that has ssh access (and ssh access is setup). | |
# This user will need to be able to sudo as root (i.e. add this line to sudoers, <USER> is the user you create): | |
# <USER> ALL=(ALL) NOPASSWD: /var/services/homes/<USER>/replace_certs.sh |
View pico_light_switch_std.py
This file contains 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
# | |
# Script to manage a light using standard controls from a Lutron Pico Remote | |
# This will translate the standard button meanings on a Pico to any light controlled | |
# by Home Assistant. | |
# The "favourite" button is presumed to be 50% brightness (but can be overriden). | |
# Expected data packet is: { new_state: X, entity_id: entity_id, fav_brightness: [0-100] } | |
# new_state: REQUIRED. The pico value that triggered the event. | |
# entity_id: REQUIRED. The entity_id of the light to control | |
# fav_brightness: OPTIONAL. What brightness percentage to set when the favourite button is pressed (int 1 - 100). | |
# |
View install_pia_vpn.sh
This file contains 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/bash | |
if [ "$EUID" -ne 0 ]; then | |
echo "Please run as root" | |
exit | |
fi | |
set -o nounset | |
set -o errexit | |
error_exit() |