This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#fakewebcam script | |
TIME=$(date +"%H") | |
DAY='10' | |
NIGHT='20' | |
if [ ${TIME} -ge ${DAY} -a ${TIME} -le ${NIGHT} ]; then | |
#echo "It's day!" | |
raspistill -q 90 -w 640 -h 480 -t 60 -o /var/www/webcam.jpg | |
else |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Edit this file to introduce tasks to be run by cron. | |
# | |
# For example, you can run a backup of all your user accounts | |
# at 5 a.m every week with: | |
# 0 5 * * 1 tar -zcf /var/backups/home.tgz /home/ | |
# | |
# For more information see the manual pages of crontab(5) and cron(8) | |
# | |
# m h dom mon dow command |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Basic /etc/network/interfaces file to access an encrypted AP | |
#Replace SSID by the name of the network the RPi must connect too | |
#Replace PASSWORD by the WPA password of the network | |
#loopback and ethernet | |
auto lo | |
iface lo inet loopback | |
iface eth0 inet dhcp | |
#wlan |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//returns an array with the names extracted | |
function name_extractor($url){ | |
$res=array(); | |
$html = file($url); | |
foreach($html as $ligne) | |
if(preg_match("/class\=\"username\"\>(.+)\<\/a\>/",$ligne,$matches)) | |
array_push($res,$matches[1]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<title>Flickr</title> | |
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> | |
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script> | |
<script> | |
//jsonFlickrFeed is the default callback function returned by flickr, let's use it... |