This file contains hidden or 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
| Menüpunkte vor Kunden verbergen (global) | |
| [ ] Domains | |
| [ ] FTP | |
| [ ] Extras | |
| [ ] Verzeichnisschutz | |
| [ ] Pfadoptionen | |
| [ ] System-Log | |
| [ ] Traffic |
This file contains hidden or 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/python | |
| # | |
| ''' | |
| This script reads a JSON from an URL and converts it to nagios-plugin output. | |
| The JSON must be in the following format (See https://nagios-plugins.org/doc/guidelines.html#AEN78 | |
| for Details about min/max/warn/crit values and units: | |
| { | |
| status: 'OK'|'WARNING'|'CRITICAL', | |
| message: 'any text not containing single quote', | |
| metrics: [ // optional |
This file contains hidden or 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
| /* https://www.youtube.com/watch?v=s8a6txkGqOI */ | |
| #include <Servo.h> | |
| Servo servoDreh; | |
| Servo servoHochRunter; | |
| int DREH_UBER_BECHER=170; | |
| int HOCHRUNTER_IN_BECHER=140; | |
| int HOCHRUNTER_UBER_BECHER1=100; |
This file contains hidden or 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 static org.hamcrest.MatcherAssert.*; | |
| import static org.hamcrest.Matchers.*; | |
| import org.junit.Test; | |
| public class TestTheAnswerToTheUltimateQuestionOfLifeTheUniverseAndEverything | |
| { | |
| final int LEET = 1337; | |
| final double PI = Math.PI; |
This file contains hidden or 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
| #include <ESP8266WiFi.h> | |
| #include <WiFiUdp.h> | |
| #include <PacketSerial.h> | |
| boolean initialized; | |
| PacketSerial serial; | |
| WiFiUDP Udp; |
This file contains hidden or 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/ruby | |
| hash=eval(ARGV[0]) | |
| hash.each do |key, value| | |
| puts "["+key+"]" | |
| value.collect do |host| | |
| puts host+" ansible_connection=local" | |
| end | |
| puts | |
| end |
This file contains hidden or 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 testutils.mvc; | |
| import static org.mockito.Matchers.anyString; | |
| import javax.servlet.Filter; | |
| import javax.servlet.RequestDispatcher; | |
| import javax.servlet.Servlet; | |
| import javax.servlet.ServletRequest; | |
| import javax.servlet.ServletResponse; | |
| import javax.servlet.http.HttpServletRequestWrapper; |
This file contains hidden or 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
| { | |
| status: 'OK' | |
| message: 'everything is fine' | |
| metrics: [ | |
| { name: 'value1', unit: '%', value: 65.7, warn: 70, crit: 90, min: 0, max:100 } | |
| { name: 'value2', value: 10, min: 5, max:15 } | |
| ] | |
| } |
This file contains hidden or 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/python | |
| import fcntl | |
| import time | |
| import sys | |
| import os | |
| import yaml | |
| import subprocess | |
| basedir=os.path.dirname(os.path.realpath(__file__)) |
This file contains hidden or 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
| - hosts: default | |
| vars: | |
| - NSCA_PASSWORD: topsecret | |
| handlers: | |
| - name: Restart shinken | |
| service: name=shinken state=restarted | |
| tasks: | |
| - apt_repository: repo='deb http://http.debian.net/debian wheezy-backports main contrib' state=present update_cache=yes | |
| - apt: name=python-pip | |
| - apt: name=python-pycurl |