This file contains hidden or 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 | |
if(empty($_SERVER['HTTPS']) || $_SERVER['HTTPS'] == "off"){ | |
$redirect = 'https://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']; | |
header('HTTP/1.1 301 Moved Permanently'); | |
header('Location: ' . $redirect); | |
exit(); | |
} | |
?> |
This file contains hidden or 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/sh | |
xset -dpms # disable DPMS (Energy Star) features. | |
xset s off # disable screen saver | |
xset s noblank # don't blank the video device | |
matchbox-window-manager -use_cursor no -use_titlebar no & | |
WEBKIT_DISABLE_TBS=1 epiphany-browser -a --profile /home/pi/.config http://site |