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
Options -Multiviews -Indexes +FollowSymLinks | |
DirectorySlash Off | |
RewriteEngine On | |
RewriteBase / | |
# Remove .html at the end of the request | |
RewriteCond %{THE_REQUEST} "^(GET|POST|HEAD) /(.*).html(\?.*)? HTTP/[0-9.]+$" | |
RewriteRule ^(.*)\.html $1 [R=301,L] |
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 | |
if ( isset($_POST['message']) ) { | |
$url = 'https://api.pushover.net/1/messages.json'; | |
$data = array(); | |
$data['token'] = "YOUR PUSHOVER TOKEN"; | |
$data['user'] = "YOUR PUSHOVER USER ID"; | |
$data['message'] = $_POST['message']; | |
if ( isset($_POST['title']) ) { |
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 | |
function alertMe($message, $sound = "pushover") { | |
$data['message'] = $message; | |
$data['title'] = "THE TITLE OF YOUR APP"; | |
$data['sound'] = $sound; | |
$options = array( | |
'http' => array( | |
'header' => "Content-type: application/x-www-form-urlencoded\r\n", |
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 | |
function alertMe($message, $sound = "pushover") { | |
$data['message'] = $message; | |
$data['title'] = "THE TITLE OF YOUR APP"; | |
$data['sound'] = $sound; | |
$options = array( | |
'http' => array( |
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
<div id="greeting"></div> | |
<script type="text/javascript" src="greetings.js"> | |
now = new Date(); | |
hrs = now.getHours(); | |
msg = ""; | |
if (hrs > 0) msg = "Morning, earlybird."; | |
if (hrs > 6) msg = "Morning."; | |
if (hrs > 12) msg = "Afternoon."; |