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 | |
# | |
# Finds all .pem certs on synology under /usr. | |
# | |
# Usage: ./find_all_certs.sh [--valid-only | --invalid-only] | |
# --valid-only - Only show valid certificates found | |
# --invalid-only - Only show invalid certificates found | |
# --no-color - Don't display ANSII Color output | |
if [ "$EUID" -ne 0 ]; then |
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 | |
# This file renews SSL certificates on a "Unifi Protect Cloud Key+ Gen 2" that have already been copied over | |
# from my "create_ssl_certs.sh" script. | |
# | |
# Caveat: You will need to run this again if you upgrade software. I have noticed changes to | |
# file structures when Unifi updates minor versions, so no guarantee this will work above | |
# OS 3.1.x. | |
# Prep: Add sudo perms to run this script for the user that executes this script, via visudo: | |
# your_user_name ALL=NOPASSWD:/root/replace_certs_protect.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
# This is a anonymized version of the script I use to renew all my SSL certs | |
# across my servers. This will not work out of the box for anyone as your network will be | |
# different. But may be useful starting place for others. | |
# | |
# I use a cronjob that runs this every week. It only replaces certificates when a certificate has been renewed. | |
# Renews/creates cert from letsencrypt & places it where it needs to be. | |
# Currently, that is: | |
# * Nginx (local for plex) | |
# * Plex Media Server |
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 |
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
# MOVED to public repo: https://github.com/catchdave/ssl-certs/blob/main/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
# | |
# 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). | |
# |
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() |