Skip to content

Instantly share code, notes, and snippets.

View spf13's full-sized avatar
💭
I may be slow to respond.

Steve Francia spf13

💭
I may be slow to respond.
View GitHub Profile
@spf13
spf13 / frigate_0.10_notification.yaml
Created November 3, 2022 21:56 — forked from hunterjm/frigate_0.10_notification.yaml
Frigate 0.10 Notifications
blueprint:
name: Frigate Notification (0.10.0)
description: |
## Frigate Mobile App Notification
This blueprint will send a notification to your device when a Frigate event for the selected camera is fired. The notification will initially include the thumbnail of the detection, but include an actionable notification allowing you to view the clip and snapshot.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Software Version Requirements
@spf13
spf13 / gettoknowyou.txt
Last active August 16, 2022 20:03 — forked from ashleymcnamara/gettoknowyou.txt
Get to know you survey
## TELL ME ABOUT YOURSELF
#### You can fill this form out on your own or we can do it together, conversation style. If you prefer to have a conversation then please let me know so we can extend our 1:1
* What are your pronouns?
* What's your personality type? (example: I'm an ENPF [Take the quiz](https://www.16personalities.com/free-personality-test))
* What motivates you?
* What keeps you up at night?
* What's your learning style? (example: I'm an Auditory-ISFP, but keep in mind that people can be between learning styles or identify with more than one. Don't let it define you. It's simply information [Take the quiz](https://learningstylequiz.com/))
* Visual (spatial)
* Aural (auditory)
@spf13
spf13 / turn_off_light_no_motion.yaml
Last active December 5, 2021 05:12
Turn off light after timeout with no motion
blueprint:
name: Turn off unoccupied lights
source_url: https://gist.github.com/spf13/94ab32ed57a765ef83363a428e0a6ab4
description: Turn off a light that has been left on with no motion
domain: automation
input:
motion_entity:
name: Motion Sensor
selector:
entity:
@spf13
spf13 / win_autoinstall_chocolatey.ps1
Last active November 7, 2015 04:32
Windows autoinstaller of programs using chocolatey. (Remove last line if you need to keep track of which packages were installed)
# Run the following line to execute this script
#@powershell -NoProfile -ExecutionPolicy unrestricted -Command "iex ((new-object net.webclient).DownloadString('https://gist.githubusercontent.com/spf13/206a1be3f98f9d72c4a8/raw/15b8000d565f1370763a1826573be51541af682b/win_autoinstall_chocolatey.ps1'))
#########################
# Autoinstall script using chocolatey
#########################
# Note: Net 4.0 must be installed prior to running this script
#
#Modify this line to change packages
$items = @("GoogleChrome", "skype", "vlc", "quicktime", "flashplayerplugin", "javaruntime", "DotNet4.5", "dropbox", "Teracopy", "7zip.install", notepadplusplus.install", "git.install", "ConEmu", "cpu-z", "f.lux", "ffmpeg", "golang", "hg", "KickAssVim", "poweriso", "linkshellextension", "lastpass", "ConsoleZ", "SourceTree", "putty", "vim", "svn", "wget", "winscp", "windirstat", "speccy", "ctags", "ChocolateyGUI")
git ls-tree -r -z --name-only HEAD -- */* | xargs -0 -n1 git blame \
-CM --minimal -f |grep -i "USERNAME"
1 USER TO SIGN/REWRITE:
[ 1 1 53 ] dylanmackenzie https://github.com/dylanmackenzie
1032 by dylanmackenzie https://github.com/spf13/hugo/pull/1032
+ 51 , - 2
commands/server.go
helpers/path.go
@spf13
spf13 / DCO
Created November 2, 2015 22:36
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.
@spf13
spf13 / CLA
Last active November 24, 2015 03:18
Developer Certificate of Origin
Version 1.1
Copyright (C) 2004, 2006 The Linux Foundation and its contributors.
660 York Street, Suite 102,
San Francisco, CA 94110 USA
Everyone is permitted to copy and distribute verbatim copies of this
license document, but changing it is not allowed.

Keybase proof

I hereby claim:

  • I am spf13 on github.
  • I am spf13 (https://keybase.io/spf13) on keybase.
  • I have a public key whose fingerprint is 87A5 581C C823 7583 0E71 F3F5 2793 1F46 4397 80A0

To claim this, I am signing this object:

@spf13
spf13 / img.html
Created December 10, 2013 19:14
img.html shortcode
<!-- image -->
<figure {{ if isset .Params "class" }}class="{{ index .Params "class" }}"{{ end }}>
{{ if isset .Params "link"}}<a href="{{ index .Params "link"}}">{{ end }}
<img src="{{ index .Params "src" }}" {{ if or (isset .Params "alt") (isset .Params "caption") }}alt="{{ if isset .Params "alt"}}{{ index .Params "alt"}}{{else}}{{ index .Params "caption" }}{{ end }}"{{ end }} />
{{ if isset .Params "link"}}</a>{{ end }}
{{ if or (or (isset .Params "title") (isset .Params "caption")) (isset .Params "attr")}}
<figcaption>{{ if isset .Params "title" }}
<h4>{{ index .Params "title" }}</h4>{{ end }}
{{ if or (isset .Params "caption") (isset .Params "attr")}}<p>
{{ index .Params "caption" }}
@spf13
spf13 / MongoHadoopTwitterStreaming.sh
Created February 22, 2012 22:15
MongoHadoopTwitterStreaming
hadoop jar mongo-hadoop-streaming.jar \
-mapper examples/twitter/twit_map.py \
-reducer examples/twitter/twit_reduce.py \
-inputURI mongodb://127.0.0.1/test.live \
-outputURI mongodb://127.0.0.1/test.twit_reduction \
-file examples/twitter/twit_map.py \
-file examples/twitter/twit_reduce.py