Skip to content

Instantly share code, notes, and snippets.

[Unit]
Description=Start Chromium GUI
After=nginx.service php5-fpm.service mpd.service
[Service]
Type=simple
ExecStart=/opt/start-gui
User=pi
[Install]
@lorenzoferrarajr
lorenzoferrarajr / .xsession
Last active September 4, 2016 11:42
Test with Moode 2.7 and the official Raspberry Pi touch display
# file: /home/pi/.xsession
xset s off
xset -dpms
xset s noblank
DISPLAY=${DISPLAY} /home/pi/start-x.sh
##
# Shutdown the Raspberry Pi if we quit the application
@lorenzoferrarajr
lorenzoferrarajr / include.php
Last active January 19, 2016 21:45
Demo showing the danger of using PHP's include statement
<?php
$variable = 'include';
return $variable;

Keybase proof

I hereby claim:

  • I am lorenzoferrarajr on github.
  • I am lorenzoferrarajr (https://keybase.io/lorenzoferrarajr) on keybase.
  • I have a public key whose fingerprint is 3AE9 AFE5 D5BD 8409 F9CB 6C6C 1F90 1BF6 A470 BEF2

To claim this, I am signing this object: