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 | |
#Install VNC and add boot script | |
echo "----Install VNC Server" | |
#Verify if vnc server is installed | |
dpkg -s "tightvncserver"|grep "Status: install ok installed" > /dev/null 2>&1 | |
if [[ $? == 1 ]] | |
then | |
apt-get install tightvncserver | |
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
<? | |
unset($myUser); | |
echo "Token reset"; | |
header("location:index.php"); | |
?> |
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 | |
/* | |
@name Room | |
@author Valentin CARRUESCO <idleman@idleman.fr> | |
@link http://blog.idleman.fr | |
@licence CC by nc sa | |
@version 1.0.0 | |
@type module | |
@description Modele de plugin pour les modules | |
*/ |
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
sudo mount -t cifs //pi.local/web /home/remi/pi/web -o guest,rw,nosetuids,sec=ntlmv2 |
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 | |
/* | |
@name Camera | |
@author Valentin CARRUESCO <idleman@idleman.fr> | |
@link http://blog.idleman.fr | |
@licence CC by nc sa | |
@version 1.0.0 | |
@description Plugin permettant de prendres des photos avec la camera PI depuis l'interface web | |
*/ |
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
----------------------------- | |
http://www.freesound.org/ | |
Username : qsdfgh | |
Password : qsdfgh | |
----------------------------- |
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
#include <RCSwitch.h> | |
RCSwitch radio = RCSwitch(); | |
const int txPin = 3; | |
const long code = 1234; | |
//void setup(){ | |
radio.enableTransmit(txPin); | |
//} | |
//void loop(){ |
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
/* | |
* pwm.c: | |
* Test of the software PWM driver | |
* | |
* | |
* Copyright (c) 2012-2013 Gordon Henderson. <projects@drogon.net> | |
* Hacked by Sarrailh Rémi 2014 | |
*/ | |
#include <stdio.h> |
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
#!/usr/bin/python | |
import sys | |
Wpi = {8:2,9:3,7:4,15:14,16:15,0:17,1:18,2:27,3:22,4:23,5:24,12:10,13:9,14:11,10:8,11:7,6:25} | |
gpio = sys.argv[1] | |
pin_bcm = int(gpio) | |
pin_wpi = Wpi[pin_bcm] | |
print "WiringPi:" + str(pin_bcm) + " --> BROADCOM:"+ str(pin_wpi) |
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
#!/usr/bin/python | |
import sys | |
Wpi = {2:8,3:9,4:7,14:15,15:16,17:0,18:1,27:2,22:3,23:4,24:5,10:12,9:13,11:14,8:10,7:11,25:6} | |
gpio = sys.argv[1] | |
pin_bcm = int(gpio) | |
pin_wpi = Wpi[pin_bcm] | |
print "BROADCOM:" + str(pin_bcm) + " --> WiringPi:"+ str(pin_wpi) |
OlderNewer