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
version: "3" | |
services: | |
factorio-server-manager: | |
image: "ofsm/ofsm:latest" | |
container_name: "factorio-server-manager" | |
restart: "unless-stopped" | |
environment: | |
- "FACTORIO_VERSION=latest" | |
- "RCON_PASS" | |
volumes: |
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
TOKEN=$(curl --silent -u dirk:xxx https://portus.example.com/v2/token\?service\=docker.example.com\&scope\=registry:catalog:\* | ./jq -r .token) | |
curl --silent -H "Authorization: Bearer $TOKEN" https://docker.example.com/v2/_catalog | ./jq |
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
echo "Remote Server (e.g. example.com)" | |
read remote_server | |
# test if login already possible | |
ssh -q -o ConnectTimeout=3 -o PasswordAuthentication=no root@$remote_server echo "" > /dev/null | |
if [ $? -eq 0 ] | |
then | |
echo "You can already login!" | |
exit | |
fi |
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
# with sound and file | |
gst-launch-1.0 uridecodebin uri=file:///home/dirk/Videos/Clouds_67_Timelapse.mp4 ! video/x-raw,width=1280,height=720 ! queue ! x264enc threads=0 bitrate=400 tune=zerolatency key-int-max=30 ! queue ! flvmux name=flvmux ! queue ! rtmpsink location=rtmp://live-fra.twitch.tv/app/$APIKEY audiotestsrc ! faac ! flvmux. |
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
object NotificationCommand "slack-overlayr-host-notification" { | |
import "plugin-notification-command" | |
command = [ "/usr/local/bin/slack_nagios.pl" ] | |
arguments = { | |
"-field" = "slack_channel=#general" | |
} | |
env = { | |
ICINGA_HOSTALIAS = "$host.display_name$" |
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
Config { font = "-*-Fixed-Bold-R-Normal-*-13-*-*-*-*-*-*-*" | |
, bgColor = "black" | |
, fgColor = "grey" | |
, position = BottomW L 100 | |
, commands = [ Run Weather "EDDE" ["-t"," <tempC>C","-L","0","-H","30","--normal","green","--high","red","--low","lightblue"] 36000 | |
, Run Cpu ["-L","3","-H","50","--normal","green","--high","red"] 10 | |
, Run Memory ["-t","Mem: <usedratio>%"] 10 | |
, Run Date "%a %b %_d %H:%M" "date" 10 | |
, Run StdinReader | |
] |
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
wget -O - http://debmon.org/debmon/repo.key 2>/dev/null | apt-key add - | |
echo 'deb http://debmon.org/debmon debmon-wheezy main' >/etc/apt/sources.list.d/debmon.list | |
apt-get update | |
apt-get install -y icinga2 mysql-server mysql-client icinga2-ido-mysql apache2 git php5 libapache2-mod-php5 php5-mysql php5-intl php5-gd php5-imagick | |
icinga2 feature enable ido-mysql command | |
service icinga2 restart |