Skip to content

Instantly share code, notes, and snippets.

Mattanja Kern mattanja

Block or report user

Report or block mattanja

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@agarzon
agarzon / queueCounter.sh
Last active Feb 7, 2019
alert based in mail queue size for postfix and plesk
View queueCounter.sh
#!/bin/sh
MAIL_BIN=`command -v mail`
QUEUE_SIZE=`/usr/sbin/postqueue -p | tail -n1 | awk '{print $5}'`
QUEUE_SUMMARY=`/usr/sbin/qshape -s deferred | head`
MAILTO="xxx@gmail.com"
LIMIT=100
function send_notification_mail() {
echo $QUEUE_SUMMARY | $MAIL_BIN -s "WARNING: mail queue critical on $HOSTNAME" $MAILTO
@davidfowl
davidfowl / dotnetlayout.md
Last active Aug 22, 2019
.NET project structure
View dotnetlayout.md
$/
  artifacts/
  build/
  docs/
  lib/
  packages/
  samples/
  src/
  tests/
You can’t perform that action at this time.