Skip to content

Instantly share code, notes, and snippets.

View KennyStier's full-sized avatar

Kenny Stier KennyStier

View GitHub Profile
@KennyStier
KennyStier / ups-map.php
Last active February 4, 2022 20:36
Get latest UPS Ground delivery time map
<?php
$date = date("mdY");
$upspage = file_get_contents("https://www.ups.com/maps/printerfriendly?loc=en_US&usmDateCalendar=".$date."&stype=O&zip=47240");
preg_match('/\/using.*\.gif/', $upspage, $output_array);
header('Content-type: image/png');
@KennyStier
KennyStier / caddy.html
Created November 18, 2022 06:37
Caddy Startup Page
<!DOCTYPE html>
<html>
<head>
<title>Caddy works!</title>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" href="data:,">
<style>
* {
box-sizing: border-box;
@KennyStier
KennyStier / info.php
Created November 18, 2022 07:14
PHP Info
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
@KennyStier
KennyStier / frigate-export.sh
Created January 20, 2023 07:17
Frigate Export Clip
#!/bin/bash
# Frigate Export Script
# By Kenny Stier (kstr.us)
# Based on https://github.com/blakeblackshear/frigate/issues/2369#issuecomment-1268359613
# Menu taken from https://stackoverflow.com/a/28326129
URL='http://192.168.0.14:5000'
OUTDIR='./archive'