For salt see: https://github.com/NagVis/nagvis/blob/51051b851b1b9981b51db81818700015735900a5/share/server/core/defines/global.php#L182
NAGVIS_SALT=42371010993337eeebe65383f731080da0f9f035
echo -n "${NAGVIS_SALT}mypassword" | sha1sum -
# Just an example to test dependencies | |
FROM centos:8 | |
RUN yum install -y mariadb mariadb-server | |
RUN yum install -y https://packages.icinga.com/epel/icinga-rpm-release-8-latest.noarch.rpm | |
RUN yum install -y icinga2 icinga2-ido-mysql | |
RUN ldd /usr/lib64/icinga2/libmysql_shim.so \ |
server { | |
listen 80 default_server; | |
listen [::]:80 default_server; | |
root /var/www/html; | |
index index.html; | |
server_name icinga.example.com; | |
location ~ ^/icinga2 { | |
return 301 https://$server_name$request_uri; |
<?php | |
$list = array(array("key1"=>"value","key4"=>"value"),array("key3"=>"value"),array("key2"=>"value")); | |
function uniqueKeysOfList($list) { | |
$keys = []; | |
foreach ($list as $obj) { | |
foreach ($obj as $k => $v) { | |
$keys[$k] = 1; |
- name: Icinga 2 const | |
hosts: | |
- test | |
tasks: | |
- name: Determine PluginDir for default | |
set_fact: | |
icinga2_plugin_dir: /usr/lib/nagios/plugins | |
- name: Determine PluginDir for RedHat |
diff --git a/library/Director/Objects/ImportSource.php b/library/Director/Objects/ImportSource.php | |
index a58aa195..e9b115c5 100644 | |
--- a/library/Director/Objects/ImportSource.php | |
+++ b/library/Director/Objects/ImportSource.php | |
@@ -119,7 +119,7 @@ class ImportSource extends DbObjectWithSettings implements ExportInterface | |
$this->loadedRowModifiers = $this->fetchRowModifiers(); | |
} | |
$current = $this->loadedRowModifiers; | |
- if ($current !== null && count($current) !== count($modifiers)) { | |
+ if (empty($current) || count($current) !== count($modifiers)) { |
#!/bin/bash | |
# git-all | |
# | |
# Copyright (c) 2019 Markus Frosch <markus@lazyfrosch.de> | |
# | |
# Licensed under GPL-2+ | |
rc=0 | |
color() { |
#!/bin/bash | |
set -e | |
case "$1" in | |
init) | |
git config filter.git-filter-secrets.smudge "git-filter-secrets smudge" | |
git config filter.git-filter-secrets.clean "git-filter-secrets clean" | |
git config filter.git-filter-secrets.required true | |
echo "Configuration updated" |
For salt see: https://github.com/NagVis/nagvis/blob/51051b851b1b9981b51db81818700015735900a5/share/server/core/defines/global.php#L182
NAGVIS_SALT=42371010993337eeebe65383f731080da0f9f035
echo -n "${NAGVIS_SALT}mypassword" | sha1sum -
from datetime import datetime | |
from pytz import timezone | |
from dateutil.parser import parse | |
def get_unix_time(time_string, tz_name): | |
# parse the time input (without timezone) | |
ts = parse(time_string) | |
# localize to the specified timezone | |
tz = timezone(tz_name) |