Skip to content

Instantly share code, notes, and snippets.

@djfav
djfav / raspisys.php
Last active Apr 20, 2017 — forked from jvhaarst/gist:4388108
Forked Raspberry Pi System Information PHP Script - Mobile Friendly Version and Misc Tweaks
View raspisys.php
<?php
// Original Gist By: Jan van Haarst
// Original Gist: https://gist.github.com/4388108
// Forked Gist By: Jon Faviell
// Forked Gist: https://gist.github.com/7e9138acb3975f8d886c
header("Cache-Control: no-cache, must-revalidate");
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT");
@djfav
djfav / disktweet.py
Last active Nov 16, 2017
Raspberry Pi Twitter Bot Twython Script - Tweet Current Disk Usage
View disktweet.py
#!/usr/bin/env python
import sys
import os
from twython import Twython
CONSUMER_KEY = 'redacted'
CONSUMER_SECRET = 'redacted'
@djfav
djfav / memtweet.py
Last active Nov 16, 2017
Raspberry Pi Twitter Bot Twython Script - Tweet Current Memory Usage
View memtweet.py
#!/usr/bin/env python
import sys
import os
from twython import Twython
CONSUMER_KEY = 'redacted'
CONSUMER_SECRET = 'redacted'
@djfav
djfav / packettweet.py
Last active Nov 16, 2017
Raspberry Pi Twitter Bot Twython Script - Tweet Packets Received and Transmitted
View packettweet.py
#!/usr/bin/env python
import sys
import os
from twython import Twython
CONSUMER_KEY = 'redacted'
CONSUMER_SECRET = 'redacted'
@djfav
djfav / temptweet.py
Last active Nov 16, 2017
Raspberry Pi Twitter Bot Twython Script - Tweet CPU Temperature
View temptweet.py
#!/usr/bin/env python
import sys
import os
from twython import Twython
CONSUMER_KEY = 'redacted'
CONSUMER_SECRET = 'redacted'
@djfav
djfav / iptweet.py
Last active Nov 16, 2017
Raspberry Pi Twitter Bot Twython Script - Tweet Internal Wi-Fi IP Address
View iptweet.py
#!/usr/bin/env python
import sys
import os
from twython import Twython
CONSUMER_KEY = 'redacted'
CONSUMER_SECRET = 'redacted'
@djfav
djfav / ipmailer.sh
Last active Nov 16, 2017
Raspberry Pi Shell Script and Instructions - Send External and Internal IP Address Via Gmail On Boot
View ipmailer.sh
#! /bin/sh
# ---------------------------------------
# INSTALL AND CONFIGURE SMTP / GMAIL
# ---------------------------------------
# WARNING: YOU WILL BE REQUIRED TO CHANGE
# YOUR GOOGLE ACCOUNT SETTINGS AND
# ENABLE ACCESS FOR LESS SECURE APPS
# ---------------------------------------
@djfav
djfav / uptimetweet.py
Last active Apr 14, 2018
Raspberry Pi Twitter Bot Twython Script - Tweet Uptime
View uptimetweet.py
#!/usr/bin/env python
import math
import sys
import os
from twython import Twython