Skip to content

Instantly share code, notes, and snippets.

View auduny's full-sized avatar

Audun Ytterdal auduny

View GitHub Profile
# Call Service Event
event_type: call_service
data:
domain: cover
service: open_cover
service_data:
entity_id: cover.garage_door
origin: LOCAL
time_fired: '2022-01-20T12:44:02.578943+00:00'
We can make this file beautiful and searchable if this error is corrected: Unclosed quoted field in line 10.
[ay:~/src … o_generator/language] master(+253/-167)* 1 ± cat audio_no.csv
back_dock_failed.wav,"Jeg klarte ikke å finne ladestasjonen, kan du fjerne ting som er i veien og eventuelt sjekke at ladestasjonen er ren og pen?"
back_dock_nearby.wav,"Jeg klarer ikke å finne ladestasjonen. Kan du hjelpe meg littegranne er du snill?"
bin_in.wav,"Filter på plass, jeg er klar. Var det mye og ekkelt?"
bin_out.wav,"Tusen takk for at du tar ut støvet jeg har samlet for deg. Jeg liker at du også gjør ting."
binout_error10.wav,"Tusen takk for at du tømmer støvet jeg har samlet for deg. Det er på tide å renske filteret denne gangen. Kan du gjøre det også er du snill?"
bl_recovery_bootfailed.wav,"Boot failure, it will take about 5 minutes to restore the initial version. Plase be patient."
bl_recovery_failed.wav,"Restoring recovery failed. Please try again."
bl_recovery_retry.wav,"Restarting recovery. It will take about 5 minutes. Please be patient."
bl_recovery_start.wav,"Restoring recovery. It will take about 5 minutes. Pleas
@auduny
auduny / script-examples.yaml
Created June 3, 2019 09:16
Examples of home-assistant scripts
CONFIGURATION.YAML:
===================
shell_command:
roborock_play_superstition: ssh -oStrictHostKeyChecking=no -i /config/shellscripts/roborock.sshkey root@192.168.1.12 'play "Stevie Wonder Superstition.mp3"'
roborock_speak: ssh -oStrictHostKeyChecking=no -i /config/shellscripts/roborock.sshkey root@192.168.1.12 "cd simple-google-tts && ./simple_google_tts {{ language }} '{{ text }}'"
SCRIPTS.YAML:
http first read error: -1 11 (Resource temporarily unavailable)
http first read error: -1 0 (Success)
no backend connection
Resource temporarily unavailable
backend write error: 0 (Success)
http first read error: -1 104 (Connection reset by peer)
TestGunzip error at the very end
--- original/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php 2012-11-22 10:02:41.000000000 +0100
+++ vgnett/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php 2012-11-22 13:07:01.000000000 +0100
@@ -538,12 +554,17 @@
$page_objects = array();
}
- return $this->buildStandardPageResponse(
+ $nav = $this->buildBaseSideNav();
+ $nav->selectFilter(null);
+ $nav->appendChild(
--- original/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php 2012-11-22 10:02:41.000000000 +0100
+++ vgnett/phabricator/src/applications/maniphest/controller/ManiphestTaskEditController.php 2012-11-22 13:07:01.000000000 +0100
@@ -1,5 +1,21 @@
<?php
+/*
+ * Copyright 2012 Facebook, Inc.
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
varnishlog -c -o TxStatus 418
5858 ay 15 0 125m 104m 80m S 7.3 0.3 0:13.42 varnishlog
varnishlog -o TxStatus 418
6608 ay 15 0 125m 104m 80m S 8.0 0.3 0:07.07 varnishlog
They start at 103m and grows to 125m and stays there
varnishncsa -o TxStatus 418
@auduny
auduny / content lenght
Created April 13, 2011 07:13
content length patch varnish
ay@quinn:/usr/src/redhat/SOURCES$ cat varnish-content_lenght.patch
Index: /trunk/varnish-cache/bin/varnishtest/tests/r00801.vtc
===================================================================
--- /trunk/varnish-cache/bin/varnishtest/tests/r00801.vtc (revision 5461)
+++ /trunk/varnish-cache/bin/varnishtest/tests/r00801.vtc (revision 5461)
@@ -0,0 +1,24 @@
+# $Id$
+
+test "Regression test for duplicate content-length in pass"
+
@auduny
auduny / varnishnsca
Created April 13, 2011 07:12
The varnishncsca-patch
y@quinn:/usr/src/redhat/SOURCES$ cat varnishncsa.patch
diff -rubB varnish-2.1.4b.orig/bin/varnishncsa/varnishncsa.c varnish-2.1.4b/bin/varnishncsa/varnishncsa.c
--- varnish-2.1.4b.orig/bin/varnishncsa/varnishncsa.c 2010-10-08 19:57:23.000000000 +0200
+++ varnish-2.1.4b/bin/varnishncsa/varnishncsa.c 2010-10-08 19:58:11.000000000 +0200
@@ -79,6 +79,7 @@
#include "libvarnish.h"
#include "shmlog.h"
+#include "vre.h"
#include "varnishapi.h"