Skip to content

Instantly share code, notes, and snippets.

View mattkasa's full-sized avatar

Matt Kasa mattkasa

  • GitLab, Inc.
  • Reno, NV
View GitHub Profile
substitutions:
name: korvo-1
friendly_name: "Korvo 1"
ip_address: 192.168.1.101
wifi_ssid: iot
power_save: high
esphome:
name: ${name}
platformio_options:
@mattkasa
mattkasa / frigate_notification.yaml
Last active May 9, 2022 19:01 — forked from hunterjm/frigate_notification.yaml
Frigate Notification Blueprint
blueprint:
name: Frigate Notification
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 will update to include actionable notifications allowing you to view the saved clip/snapshot when available, or silence the notification for a configurable amount of time.
With this blueprint, you may send the notification to multiple devices by leaving "Device" blank and instead use a [notification group][1].
### Required entities:
@mattkasa
mattkasa / debug.log
Created July 19, 2021 21:42
TestAccGitLabProjectApprovalRule_basic failing debug output
➜ make testacc SERVICE=gitlab-ee RUN=TestAccGitLabProjectApprovalRule_basic TF_LOG=DEBUG
TF_ACC=1 GITLAB_TOKEN=ACCTEST GITLAB_BASE_URL=http://127.0.0.1:8080/api/v4 go test -v ./gitlab -test.run TestAccGitLabProjectApprovalRule_basic -timeout 40m
2021/07/19 14:38:39 [DEBUG] GitLab API Request Details:
---[ REQUEST ]---------------------------------------
GET /api/v4/ HTTP/1.1
Host: 127.0.0.1:8080
User-Agent: Go-http-client/1.1
Accept-Encoding: gzip
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 38 columns, instead of 3. in line 3.
procedure_name,subject_name,file,start_date,end_date,subject,experiment,group,box,start_time,end_time,msn,a,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,b,c
RF6,4B-2 N,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 2 5-8pm\3--RF EXT Sessions\4B-2_N_RF6_031820,03/18/20,03/18/20,0,0,0,3,18:12:39,18:17:23,MOV_RF,0.0,5.0,15.0,23.72,9.0,5.81,0.0,27.3,0.0,15.0,20.0,278.0,0.0,5.0,0.0,0.0,0.0,278.5,0.0,0.0,0.0,3.0,0.0,0.0,"[1.0, 2.0, 3.0, 4.0, 5.0]","[27.3, 29.2, 29.6, 31.2, 50.7, 51.5, 73.8, 79.1, 79.8, 81.6, 170.0, 178.9, 266.5, 268.7, 269.5]"
RF6,4A-2 L,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 2 5-8pm\3--RF EXT Sessions\4A-2_L_RF6_031820,03/18/20,03/18/20,0,0,0,1,17:22:34,17:29:05,MOV_RF,0.0,5.0,15.0,23.8,21.0,25.81,0.0,60.5,0.0,15.0,20.0,317.0,0.0,5.0,0.0,0.0,0.0,317.4,0.0,0.0,0.0,5.0,0.0,0.0,"[1.0, 2.0, 3.0, 4.0, 5.0]","[60.5, 74.5, 114.7, 141.2, 160.3, 168.3, 191.1, 208.5, 228.4, 232.9, 276.1, 278.4, 280.3, 285.6, 308.4]"
RF6,4A-2 R,C:\Users\lab\Dropbox\MO Valu
We can make this file beautiful and searchable if this error is corrected: It looks like row 3 should actually have 38 columns, instead of 3. in line 2.
procedure_name,subject_name,file,start_date,end_date,subject,experiment,group,box,start_time,end_time,msn,a,b,e,f,g,h,i,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,c,d,j,k
PROBE_0H,3B-1 R,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 2 5-8pm\4--Probes\3B-1_R_PROBE_0H_040420,04/04/20,04/04/20,0,0,0,2,14:34:52,14:44:22,MOV_PROBE,5.0,52.0,5.0,0.0,22.0,20.98,52.0,5.0,5.0,493.0,5.0,0.0,0.0,0.0,0.0,493.0,5.0,0.0,0.0,0.0,0.0,0.0,"[265.3, 265.9, 270.6, 271.7, 271.9]","[34.2, 34.8, 35.3, 35.5, 36.9, 37.2, 39.9, 40.4, 40.6, 41.4, 41.9, 42.2, 46.5, 47.5, 48.0, 48.3, 48.8, 49.5, 50.6, 53.3, 53.7, 53.9, 54.2, 54.6, 398.8, 399.6, 400.0, 400.4, 400.8, 401.9, 409.3, 409.6, 410.7, 410.9, 411.3, 413.7, 414.0, 420.3, 420.7, 420.9, 421.2, 423.0, 423.5, 423.9, 424.2, 430.6, 433.5, 433.8, 434.6, 435.2, 435.5, 436.2]","[58.0, 154.0, 250.0, 346.0, 442.0, 0.0]","[10.0, 106.0, 202.0, 298.0, 394.0, 0.0]"
PROBE_0H,3A-1 L,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 2 5-8pm\4--Probes\3A-1_L_PROBE_0H_04062
We can make this file beautiful and searchable if this error is corrected: It looks like row 4 should actually have 38 columns, instead of 3. in line 3.
procedure_name,subject_name,file,start_date,end_date,subject,experiment,group,box,start_time,end_time,msn,a,b,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,c
EXT5,1B-2 R,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\3--RF EXT Sessions\1B-2_R_EXT5_031420,03/14/20,03/14/20,0,0,0,2,13:08:32,13:10:41,MOV_EXT,0.0,0.0,0.0,15.0,0.0,9.0,8.12,0.0,6.5,0.0,15.0,20.0,53.0,0.0,0.0,0.0,0.0,0.0,53.9,0.0,0.0,0.0,0.0,0.0,0.0,"[6.5, 10.4, 12.6, 14.2, 14.9, 17.5, 18.3, 20.5, 23.1, 25.2, 26.7, 32.5, 35.0, 38.5, 50.9]"
EXT5,2A-2 L,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\3--RF EXT Sessions\2A-2_L_EXT5_031520,03/15/20,03/15/20,0,0,0,1,13:55:19,14:01:40,MOV_EXT,0.0,0.0,0.0,15.0,0.0,10.0,5.16,0.0,235.1,0.0,15.0,20.0,311.0,0.0,0.0,0.0,0.0,0.0,311.4,0.0,0.0,0.0,0.0,0.0,0.0,"[235.1, 238.9, 239.4, 240.9, 242.2, 244.2, 247.0, 249.7, 250.7, 252.7, 255.2, 256.1, 274.6, 275.7, 308.4]"
EXT5,1A-2 N,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\3-
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 2.
procedure_name,subject_name,file,start_date,end_date,subject,experiment,group,box,start_time,end_time,msn,a,b,e,f,g,h,i,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z,c,d,j,k
PROBE_24H,1A-1 L,C:\Users\lab\Dropbox\MO Value Study\MOV 1 and 2 Spring 2020\Data\MOV 1 1-4pm\4--Probes\1A-1_L_PROBE_24H_040520,04/05/20,04/05/20,0,0,0,1,12:53:21,13:03:09,MOV_PROBE,22.0,60.0,22.0,0.0,15.0,13.62,60.0,5.0,5.0,493.0,5.0,0.0,0.0,0.0,0.0,493.0,5.0,0.0,0.0,0.0,0.0,0.0,"[87.7, 88.1, 88.4, 88.9, 89.2, 89.7, 89.9, 93.2, 93.6, 94.3, 95.2, 95.8, 99.2, 99.7, 100.2, 100.4, 100.6, 101.0, 294.2, 360.7, 362.7, 364.4]","[19.2, 19.8, 20.3, 20.6, 21.3, 21.6, 22.1, 22.5, 22.7, 23.4, 23.6, 24.2, 24.7, 25.2, 30.8, 31.4, 32.0, 32.5, 32.7, 33.6, 34.0, 34.6, 36.8, 37.1, 37.7, 38.0, 38.4, 38.9, 40.5, 40.8, 41.3, 41.6, 42.5, 46.8, 47.7, 107.0, 108.5, 109.5, 112.1, 112.8, 113.1, 113.4, 113.7, 132.9, 223.7, 224.3, 240.7, 243.5, 304.6, 305.2, 305.5, 305.7, 305.9, 308.8, 309.7, 309.9, 422.4, 424.6, 424.8, 425.2]","[58.0, 154.0, 250.0, 346.0, 442.0, 0.0]","[10.0, 106.
#!/usr/bin/env ruby
require 'chef'
require 'fileutils'
app_name = ARGV[0]
run_list = ARGV[1]
if ENV.has_key?('CHEF_ENVIRONMENTS') && (!ENV.has_key?('TEST_GROUP') || ENV['TEST_GROUP'] == '1')
environments = ENV['CHEF_ENVIRONMENTS'].split(/\s+/)
#!/usr/bin/env ruby
require 'chef'
require 'fileutils'
app_name = ARGV[0]
run_list = ARGV[1]
if ENV.has_key?('CHEF_ENVIRONMENTS') && (!ENV.has_key?('TEST_GROUP') || ENV['TEST_GROUP'] == '1')
environments = ENV['CHEF_ENVIRONMENTS'].split(/\s+/)
jobs = {}
Sidekiq::Queue.new('boule').each do |j|
if jobs.has_key?("#{j.klass}.#{j.args[0]}(#{j.args[1..-1]})")
j.delete and puts "Deleted jid #{j.jid} duplicate of #{jobs["#{j.klass}.#{j.args[0]}(#{j.args[1..-1]})"]}"
else
jobs["#{j.klass}.#{j.args[0]}(#{j.args[1..-1]})"] = j.jid
end
end