Skip to content

Instantly share code, notes, and snippets.

View rpi_stats.sh
#!/bin/bash
# How to make this work
#----------------------
# 1. Install required packages:
# sudo apt-get install curl
# 2. Copy this file to /etc
# 3 .Make this file executable:
@chiva
chiva / rpi-monitor.sh
Last active Apr 10, 2019
Raspberry Monitor using ThingSpeak
View rpi-monitor.sh
#!/bin/bash
## Installation: sudo bash -c "wget -P /usr/local/bin https://raw.github.com/gist/5721473/rpi-monitor.sh && chmod +x /usr/local/bin/rpi-monitor.sh"
echo() { :; } # comment line to enable debugging
apiKey=XXXXXXXX # ThingSpeak channel write API key, put your own
freeram=$(free -m | awk '/Mem:/ { print $4 }')
freeroot=$(df -BM | awk '/rootfs/ { print substr($4, 1, length($4)-1) }')
@chiva
chiva / ubuntu-11.sh
Created Mar 12, 2012
Instalador del IDE Arduino para Linux Ubuntu 11.XX
View ubuntu-11.sh
#!/bin/bash
asterisks ()
{
echo "*********************************************"
}
header ()
{
echo
@chiva
chiva / build-linux.sh
Created Dec 3, 2011
Platex build scripts
View build-linux.sh
#!/bin/bash
asterisks ()
{
echo "*********************************************"
}
header ()
{
echo
You can’t perform that action at this time.