Skip to content

Instantly share code, notes, and snippets.

View chiva's full-sized avatar

Santiago Reig chiva

View GitHub Profile
@chiva
chiva / build-linux.sh
Created December 3, 2011 16:19
Platex build scripts
#!/bin/bash
asterisks ()
{
echo "*********************************************"
}
header ()
{
echo
@chiva
chiva / ubuntu-11.sh
Created March 12, 2012 14:09
Instalador del IDE Arduino para Linux Ubuntu 11.XX
#!/bin/bash
asterisks ()
{
echo "*********************************************"
}
header ()
{
echo
@chiva
chiva / rpi_stats.sh
Last active December 3, 2017 06:23
#!/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 May 6, 2022 13:04
Raspberry Monitor using ThingSpeak
#!/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) }')