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 | |
#author: josef lahmer | |
# | |
echo "/sbin/init 6" | at 05:00 |
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
pc=computername | |
:: prozesse mit mehr als einer minute cpu zeit | |
:: /v zeigt auch die cpuzeit an! | |
tasklist /FI "CPUTIME gt 00:01:00" /v /S %pc% | |
:: prozesse mit mehr als 30 minuten cpu zeit | |
tasklist /FI "CPUTIME gt 00:30:00" /v /S %pc% | |
:: prozesse mit mehr als 100mb ram |
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
# list tcpip network conncections for apache (port 80 + https 443) | |
alias topclients80="netstat -plan | grep :80 | awk {'print $5'} | cut -d: -f 1 | sort | uniq -c | sort -n" | |
alias topclients443="netstat -plan | grep :443 | awk {'print $5'} | cut -d: -f 1 | sort | uniq -c | sort -n" | |
# not so pretty, all ip connection... | |
alias topclients="netstat -plan | awk {'print $5'} | cut -d: -f 1 | sort | uniq -c | sort -n" | |
# change order with "sort -rn" |
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
Set WshShell = Wscript.CreateObject("Wscript.Shell") | |
set env = WshShell.Environment("PROCESS") | |
code = WScript.Arguments(0) | |
id = ENV ("COMPUTERNAME") & "_" & ENV ("USERNAME") | |
call logme( code, id) | |
function logme (code, id) |
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 | |
# das pzs "functions.sh" file | |
# logging function | |
# parameter 1: OK ERROR OK_START, OK_DONE | |
# parameter 2: code | |
logstats="https://logurl.domain.com/api/rw/l.php" | |
http_user="user" | |
http_pass='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 | |
# nach_fehlern_suchen.sh logfile | |
if cat $1 | grep "Fehler" ; then | |
gstatslog ERROR_DONE "$code $logfile" | |
elif cat $1 | grep "Error" ; then | |
gstatslog ERROR_DONE "$code $logfile" | |
elif cat $1 | grep "Warnung" ; then | |
gstatslog WARN_DONE "$code $logfile" | |
else |
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
rrdtool create nas.rrd --step 900 \ | |
DS:disk1:GAUGE:1200:-40:80 \ | |
DS:disk2:GAUGE:1200:-40:80 \ | |
RRA:AVERAGE:0.5:1:960 \ | |
RRA:MIN:0.5:96:3600 \ | |
RRA:MAX:0.5:96:3600 \ | |
RRA:AVERAGE:0.5:96:3600 | |
http://exchange.nagios.org/directory/Plugins/Network-and-Systems-Management/Others/Synology-status/details | |
plugin |
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
# author: josef lahmer | |
# last update: 14.4.2016 | |
dpd primetime: | |
http://www.dpd-business.at/pttrack.php?pknr=#PAKETNUMMER#&typ=1&lang=de | |
dpd "normalpaket": | |
https://tracking.dpd.de/parcelstatus?query=#PAKETNUMMER#&locale=de_AT | |
begebrüder weiss: |
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
body { | |
background-color: #fff; | |
font-family: Roboto, sans-serif; | |
color: #000; | |
font-size: 14px; | |
line-height: 20px; | |
} | |
h1 { | |
margin: 10px 0px; |
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
# on osmc | |
# PRETTY_NAME="Open Source Media Center" | |
# NAME="OSMC" | |
# VERSION="February 2016" | |
# VERSION_ID="2016.02-3" | |
# ID=osmc | |
# ID_LIKE=debian | |
sudo apt-get install git-core | |
sudo apt-get install make gcc autoconf gawk libc6 libc6-dev |