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
#! /usr/bin/env php | |
<?php | |
/** | |
* This is a simple local check for Check_MK which triggers a warning in case an update for your Nextcloud installation is available. | |
* | |
* The check does not request the update information from the Nextcloud update server, the cached data stored in the database is used instead. | |
* | |
* The check was tested with Nextcloud 12. As this script is not using some official API of Nextcloud, a future update of Nextcloud might break it. | |
* | |
* Installation: |
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 | |
set -e | |
file_owner="nagios" | |
rrd_file="$1" | |
required_ds="$2" | |
if [[ -z ${rrd_file} ]] || [[ -z ${required_ds} ]]; then | |
echo "Usage: $0 <rrd file> <no required data sources>" |
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
[ | |
{ | |
"id": "77643d95.63b8d4", | |
"type": "tab", | |
"label": "Loxone", | |
"disabled": false, | |
"info": "" | |
}, | |
{ | |
"id": "c7f2764c.9bda68", |
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
#! /usr/bin/env python3 | |
import docker | |
client = docker.from_env() | |
containers = client.containers.list(all=True) | |
outdated_containers = [] | |
for container in containers: |
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
package com.github.jikoo.experience; | |
import org.bukkit.entity.Player; | |
/** | |
* A utility for managing Player experience properly. | |
* | |
* @author Jikoo | |
*/ | |
public class Experience { |
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 is a simple daemon script for Linux to start you SAMP servers as daemons. | |
# So it is possible to auto start the SAMP servers if you restart you Linux server. | |
# It will also prevent you from multiple launchings of the same SAMP server. | |
# | |
# Login to you Linux server using SSH or whatever you want to use to get a terminal of you server. | |
# Create a directory "/opt/samp/port-of/your/samp-server". | |
# Download the SAMP server for Linux from the SAMP website (http://www.sa-mp.com) using wget (Example: "wget http://files.sa-mp.com/samp03bsvr_R2.tar.gz"). | |
# Extract the archive using "tar -xf samp03bsvr_R2.tar.gz". |
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 | |
SINCE="$1" | |
if [ -z "${SINCE}" ]; then | |
echo "Usage: $0 <since>" | |
exit 1 | |
fi | |
for REPO in `find ${GIT_HOME} -name .git -type d`; do |
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 | |
set -e | |
CERT_FILE="$1" | |
CA_FILE="$2" | |
CA_DIR="$3" | |
ISSUER=$(openssl x509 -in ${CERT_FILE} -noout -issuer | sed "s/^issuer= //g") | |
for PEM in ${CA_DIR}/*; do |
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 | |
set -e | |
# This is a simply function to require a specific command | |
# The script will print an error message "Command x not found!" and exit if the command does not exist | |
function require() | |
{ | |
which $1 > /dev/null 2>&1 || (echo "Command '$1' not found!"; exit 1) | |
} |
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 | |
BASEPATH="/data/music" # Replace with your music directory | |
for FILE in $BASEPATH/*.mp3; do | |
ID3_INFO="`id3info \"$FILE\" | grep -i \"===\"`" | |
TITLE=$(echo "$ID3_INFO" | grep -i TIT2) | |
ARTIST=$(echo "$ID3_INFO" | grep -i TPE1) | |
ALBUM=$(echo "$ID3_INFO" | grep -i TALB) |