Skip to content

Instantly share code, notes, and snippets.

View adionditsak's full-sized avatar

Anders Aarvik adionditsak

  • urteknik
  • Copenhagen, Denmark.
View GitHub Profile
#!/usr/bin/env bash
# vars #
disk="/dev/disk0s2" # disk to monitor
current_usage=$(df -h | grep ${disk} | awk {'print $5'}) # get disk usage from monitored disk
max_usage="20%" # max 90% disk usage
mail="[email protected]" # mail to sent alert to
# functions #
function max_exceeded() {
<?php
/*
*
* Get your Facebook-statuses and Twitter-tweets on your website with ease.
* Go to http://feedburner.com and burn your feed.
* Use your feedburner-url with this class to set feed.
*
* Author: Anders Aarvik
*
*/