Skip to content

Instantly share code, notes, and snippets.

View Akku's full-sized avatar

Tim Dellas Akku

View GitHub Profile
@maxkramer
maxkramer / Daily Server Reporting
Last active December 16, 2015 00:49
Daily server reporting via email. Make sure you add a cron job to run it, and edit all of the email addresses! e.g. 59 23 * * * /home/max/dailyreport.sh > /dev/null 2>&1
#!/bin/bash
apt-get update
(
echo To: emailtosendreportto@gmail.com
echo From: reporting@`hostname`
if [ "$( df -h | grep hda1 | cut -c40-42)" -ge "80" ]; then echo Subject: Production Server : Low Disk Space : Daily reporting for `date +%e\ %B\ %Y`
else echo Subject: Production Server: Daily reporting for `date +%e\ %B\ %Y`
fi
echo Reporting of Production Server: `hostname`
echo
<?php
/*
Twitter JSON to Atom proxy for Twitter API 1.1
Original version by yimingliu ( https://gist.github.com/yimingliu/4735445 )
Display user_timeline instead of home_timeline
*/
date_default_timezone_set('America/Los_Angeles');
ini_set('display_errors', 0);
@jimmynotjim
jimmynotjim / more-mute-regex.md
Created July 19, 2012 14:37 — forked from imathis/tweetbot-mute-regex.md
Tweetbot can use regular expressions to mute tweets in your timeline and mentions.

##Simply annoying Tweets

Annoyingly extended words (4+ of the same letter in a phrase): OOOOHHHHMMMMYYYYGGGGOOOODDDD

([a-z])/1{4}

Tweet w/ just a single hashtag: #omgthissucks

^ *#[^ ]+$