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
@SgtBatten
SgtBatten / frigate_0.11_notification.yaml
Last active December 7, 2023 20:09 — forked from hunterjm/frigate_0.10_notification.yaml
Frigate Notifications have moved
blueprint:
name: Frigate Notifications by SgtB have moved
description: |
## ANNOUNCEMENT
I have moved from this gist to a github repositry.
Please checkout https://github.com/SgtBatten/HA_blueprints for the latest versions
domain: automation
@ashleymcnamara
ashleymcnamara / gettoknowyou.txt
Last active August 16, 2022 19:37
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)
@flaviut
flaviut / Setting up Emporia Vue 2 with ESPHome.md
Last active March 12, 2024 00:27
Setting up Emporia Vue 2 with ESPHome
@JoeyBurzynski
JoeyBurzynski / 55-bytes-of-css.md
Last active April 10, 2024 20:23
58 bytes of css to look great nearly everywhere

58 bytes of CSS to look great nearly everywhere

When making this website, i wanted a simple, reasonable way to make it look good on most displays. Not counting any minimization techniques, the following 58 bytes worked well for me:

main {
  max-width: 38rem;
  padding: 2rem;
  margin: auto;
}
@amy
amy / goQuestions.go
Last active September 25, 2016 16:57
/* 1 */
So I'm reading the documentation for database/sql for rows.Close():
"Close closes the Rows, preventing further enumeration. If Next returns false, the Rows are closed automatically
and it will suffice to check the result of Err. Close is idempotent and does not affect the result of Err.""
I still don't get what closing a row does. I get closing in the context of closing for like DB.close() since its a DB
connection. But what does closing a row mean. "Close closes the Rows". Its using the same word to describe itself.
Answer: DB Connection Pooling
Open is essentially only there to store credentials & never makes a connection.
Queries / Insert / etc. each create separate connections in the DB Connection Pool as they are independent of
@jessfraz
jessfraz / go-release-stats.md
Last active March 9, 2019 02:32
stats on the go 1.7 release for fun

Setup:

# set CONTRIBUTORS file to mailmap to remove duplicate emails for the same name
# see: https://git-scm.com/docs/git-shortlog#_mapping_authors
$ git config mailmap.file CONTRIBUTORS

Top 10 contributors (all):

@jonhoo
jonhoo / README.md
Last active July 19, 2021 10:49
Distributed RWMutex in Go
@spf13
spf13 / Genealogy.js
Created February 3, 2012 18:13
Genealogy Schema for MongoDB
individual = {
_id : ObjectId("4f2978dfaa999d9db02618ce"),
AFN : '1XYK-KQJ',
name: {
first: ['john', 'johannes'],
middle: 'peter',
last: ['smith', 'sandvik']
},
events : [
@pceres
pceres / blur_detector
Created March 26, 2011 12:29
blurry photos detection
#! /bin/bash
#
# Author: Pasquale Ceres (pasquale_c@hotmail.com)
# License: GPL ver. 3
#
# Script originally developed for the
# "San Lorenzo Martire Caposele Church Records Digitalization Project"
#
# http://www.facebook.com/group.php?gid=188973755117&v=photos