Skip to content

Instantly share code, notes, and snippets.

@timmipetit
timmipetit / README.md
Last active January 21, 2020 13:42 — forked from pmoranga/README.md
Raspberry pi dashboardrpi screens

Raspberry pi dashboard

This is what we did to setup a dashboard at Recras.

Preparing the system

We'll assume that Raspbian Buster (with desktop) is installed on the Raspberry Pi.

Update the OS

Keybase proof

I hereby claim:

  • I am timmipetit on github.
  • I am tijmen (https://keybase.io/tijmen) on keybase.
  • I have a public key ASCW43phtldJtGc9UMtJ22LJ-NB3yMOaYT6c61SU0ATI7Ao

To claim this, I am signing this object:

@timmipetit
timmipetit / increase_date.php
Created April 17, 2012 14:29
Search dates (yyyy-mm-dd) in a text file and increase these dates with n days (defaults to 1)
<?php
if($argc < 2){
echo "Usage: " . $argv[0] . " FILE [NUMDAYS]\n";
return(1);
}
// Default to add 1 day
$daysToAdd = ($argc == 3) ? intval($argv[2]) : 1;
$text = file_get_contents($argv[1]);