Skip to content

Instantly share code, notes, and snippets.

View KennyStier's full-sized avatar

Kenny Stier KennyStier

View GitHub Profile
@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'
@KennyStier
KennyStier / info.php
Created November 18, 2022 07:14
PHP Info
<?php
// Show all information, defaults to INFO_ALL
phpinfo();
?>
@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 / 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 / timelapse-creator.sh
Created October 16, 2020 17:24
timelapse-creator.sh
#!/bin/bash
ls dafang/*/*/*.jpg | sed "s/^/file '/;s/$/'/" > files.txt
ffmpeg -r 45 -f concat -i files.txt -s hd720 -vcodec libx264 timelapse_$(date +%F).mp4
@KennyStier
KennyStier / arch-setup.md
Last active October 26, 2019 19:05
Arch Linux Setup

Prepare disks

  1. /dev/nvme0n1p1 - /
  2. /dev/nvme0n1p2 - /home
mkfs.ext4 /dev/nvme0n1p1
mkfs.ext4 /dev/nvme0n1p2

Install base

@KennyStier
KennyStier / rwget.sh
Last active January 15, 2018 20:36 — forked from forresty/rwget.sh
rwget: wget through ssh tunnel
#!/usr/bin/env bash
# TODO: replace your-hostname-here.com
server="your-hostname-here.com"
if [ $# -lt 1 ] ; then
echo "usage: rwget URL"
exit 1
fi
@KennyStier
KennyStier / keybase.md
Created October 8, 2017 03:10
Keybase Proof

Keybase proof

I hereby claim:

  • I am kennystier61 on github.
  • I am mtdev (https://keybase.io/mtdev) on keybase.
  • I have a public key ASCLXDxf57cfhoEk4ZVhWetUZyY9mBBft1sGGXdzj-vmOAo

To claim this, I am signing this object:

@KennyStier
KennyStier / rarr.sh
Last active May 26, 2017 18:39
Rainier Automatic Raster Resizer
#!/bin/bash
#
# Written by Kenny Stier for Trenta.io
#
# Rainier Automatic Raster Resizer (RARR)
# Copyright (C) 2017 Trenta.io
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation, either version 3 of the License, or