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
| #/bin/bash | |
| #author: josef lahmer | |
| # | |
| echo "/sbin/init 6" | at 05:00 |
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
| 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 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
| # 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 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
| 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 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
| #!/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 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
| #!/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 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
| ## author: josef lahmer (collected infos) | |
| # https://plus.google.com/collection/IiyTgB | |
| # PHASE1 tempsensor working | |
| # PHASE2 RRD GRAPHS (reboot SAFE!!) | |
| # PHASE3 WEBSERVER RRD | |
| # PHASE4 GOOGLE SPREADSHEAT | |
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
| 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 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
| :: Author: josef lahmer | |
| :: http://josy1024.blogspot.co.at/2011/12/robocopy-mirror-script.html | |
| mirror.cmd script (runas admin) | |
| set log=syncjob_%date:~0,2%.log.log | |
| set source=e:\ | |
| set target=h:\ | |
| set OPTSALL=/MIR /MT /R:2 /W:10 /XF "thumbs.db" /XF "._*" /XF ".DS_Store" /NP /NFL /NDL /XD "system volume information" "$recycle.bin" "recycler" "DfsrPrivate" ".Trashes" ".TemporaryItems" |
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
| # 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: |