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
import java.util.ArrayList; | |
import java.util.List; | |
import org.junit.jupiter.api.MethodOrderer; | |
import org.junit.jupiter.api.Nested; | |
import org.junit.jupiter.api.Order; | |
import org.junit.jupiter.api.Test; | |
import org.junit.jupiter.api.TestInstance; | |
import org.junit.jupiter.api.TestMethodOrder; | |
import org.junit.jupiter.api.parallel.Execution; |
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
# Contributed by: Steven Tappert <admin@dark-it.net> | |
. "$SUBR_DIR/ip" | |
WgConfig=("${WgConfig}") | |
wireguard_up() { | |
if is_interface "$Interface"; then | |
report_error "Interface '$Interface' already exists" | |
return 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
#!/usr/bin/perl -w | |
use strict; | |
use warnings; | |
use Nagios::Plugin; | |
use birdctl; | |
my $np = Nagios::Plugin->new( | |
plugin => "check_bird_proto", shortname => "BIRD_PROTO", version => "0.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
#!/usr/bin/php | |
<?php | |
/* | |
* XMPP Notification Script for Icinga2 | |
* | |
* This script uses prosody webpush as target to contact the user | |
*/ | |
$xmppUser = '<user>'; | |
$xmppPass = '<pass>'; |
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 | |
LOCAL_HOSTNAME=`hostname -f` | |
BACKUP_NAME='root' | |
BACKUP_PATH='/' | |
BACKUP_APPEND="$(date +%Y-%m-%d)$([ ! -z "$@" ] && echo "-$@")" | |
export BORG_RSH="ssh -p22" | |
export BORG_PASSPHRASE="xxxx" |
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
[Unit] | |
Description=TS3 Server-Query Bot | |
After=network.target | |
[Service] | |
ExecStart=/usr/bin/java -jar /srv/ts3bot/adminbot.jar | |
RestartSec=5 | |
User=ts3bot | |
Restart=always | |
WorkingDirectory=/srv/ts3bot |
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 bash | |
share_volume="<zfs base-dataset>" # ex. /trunk | |
target_host="<user>@<target_host>" # ex. root@fileserver | |
keep_snaps=$((24*4)) | |
for path in $(zfs list -o name -t filesystem -r "$share_volume" | tail -n +2) | |
do | |
echo "=> Volume: $path"; |
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
##### | |
# Simple Update Commands for VMware ESXi with Internet Connection | |
# | |
# Please replace: | |
# $ESXiVersion with i.e. "5.5" or "5.1" or others | |
# $TargetProfile with the chosen Profile got by first command | |
##### | |
# Allow http-client | |
esxcli network firewall ruleset set -e true -r httpClient |
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
USERNAME="" | |
PASSWORD="" | |
URL="https://scr.2linux.de/upload.php" |
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
Host 172.16.*.* | |
StrictHostKeyChecking no | |
UserKnownHostsFile=/dev/null |
NewerOlder