Skip to content

Instantly share code, notes, and snippets.

@outadoc
outadoc / pushover
Last active August 17, 2023 16:10
Pushover Bash Script
#!/bin/bash
if [ $# -eq 0 ]; then
echo "Usage: ./pushover <message> [title]"
exit
fi
MESSAGE=$1
TITLE=$2
@outadoc
outadoc / minecon.php
Created February 2, 2013 22:07
minecon.php, a script that I used to be notified when the clock on minecon.mojang.com started ticking (which meant the tickets were going to be sold).
<?php
require 'nmaApi.class.php';
function get_web_page($url)
{
//echo "curl:url<pre>".$url."</pre><BR>";
$options = array(
CURLOPT_RETURNTRANSFER => true, // return web page
CURLOPT_HEADER => false, // don't return headers
CURLOPT_FOLLOWLOCATION => true, // follow redirects