Skip to content

Instantly share code, notes, and snippets.

View marcusramberg's full-sized avatar

Marcus Ramberg marcusramberg

View GitHub Profile
t/00-basic.t ..................... ok
t/backend-file-basic.t ........... ok
t/backend-file-messages.t ........ ok
t/backend.t ...................... ok
t/config.t .......................
Dubious, test returned 2 (wstat 512, 0x200)
All 1 subtests passed
t/connection.t ................... ok
t/connection_name.t .............. ok
t/irc-basic.t .................... ok
diff --git a/lib/Mojolicious/Plugin/DefaultHelpers.pm b/lib/Mojolicious/Plugin/DefaultHelpers.pm
index 5226026cf..c6b983e6e 100644
--- a/lib/Mojolicious/Plugin/DefaultHelpers.pm
+++ b/lib/Mojolicious/Plugin/DefaultHelpers.pm
@@ -173,7 +173,9 @@ sub _is_fresh {
sub _log {
my $c = shift;
return $c->stash->{'mojo.log'}
- ||= $c->app->log->context('[' . $c->req->request_id . ']');
+ ||= $c->app->log->can('context')
diff --git a/lib/Mojolicious/Plugin/DefaultHelpers.pm b/lib/Mojolicious/Plugin/DefaultHelpers.pm
index 5226026cf..db04ef688 100644
--- a/lib/Mojolicious/Plugin/DefaultHelpers.pm
+++ b/lib/Mojolicious/Plugin/DefaultHelpers.pm
@@ -173,7 +173,9 @@ sub _is_fresh {
sub _log {
my $c = shift;
return $c->stash->{'mojo.log'}
- ||= $c->app->log->context('[' . $c->req->request_id . ']');
+ ||= $c->app->log->can('context'
2019-08-11 20:54:02 ERROR (MainThread) [hass_nabucasa.iot] Error handling message
Traceback (most recent call last):
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 220, in _handle_connection
self.cloud, msg["handler"], msg["payload"]
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 274, in async_handle_message
return await handler(cloud, payload)
File "/home/marcus/homeassistant/lib/python3.7/site-packages/hass_nabucasa/iot.py", line 286, in async_handle_google_actions
return await cloud.client.async_google_message(payload)
File "/home/marcus/homeassistant/lib/python3.7/site-packages/homeassistant/components/cloud/client.py", line 147, in async_google_message
self._hass, self.google_config, self.prefs.cloud_user, payload
diff --git a/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2 b/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
index 75e054be..cd66b934 100644
--- a/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
+++ b/ansible/roles/legacy-lb/templates/etc/varnish/default.vcl.varnish4.j2
@@ -226,7 +226,7 @@ sub vcl_recv {
if (req.url ~ "^/(club|klubb|klub|artikler|artiklar|kampanje|kampanj|kampagne|kampania)"
|| req.url ~ "^/(asset|cdn|component|layouts|services)/"
|| req.url ~ "^/(afbudsrejser|sistaminuten)(/|\.json|)(\?.+)?$"
- || req.url ~ "^/(charter|charterredirect|feature|hotel|services|status/[0-9]+$)"
+ || req.url ~ "^/($|charter|charterredirect|feature|hotel|services|status/[0-9]+$)"
def namespace(arg)
end
def help()
end
def there()
end
def is()
end
def no()
diff --git a/README.md b/README.md
index 060403106..93f2966d2 100644
--- a/README.md
+++ b/README.md
@@ -44,6 +44,14 @@
high quality spin-off projects like the
[Minion](https://metacpan.org/pod/Minion) job queue.
+## Benefits
+
Error: Unsupported argument
on .terraform/modules/gce-lb-http/main.tf line 79, in resource "google_compute_backend_service" "default":
79: backend = [ var.backends[count.index] ]
An argument named "backend" is not expected here. Did you mean to define a
block of type "backend"?
diff --git a/assets/components/SidebarChat.svelte b/assets/components/SidebarChat.svelte
index 1b1a6bcf..70be23ec 100644
--- a/assets/components/SidebarChat.svelte
+++ b/assets/components/SidebarChat.svelte
@@ -10,31 +10,30 @@ let unread = 0;
const api = getContext('api');
const byName = (a, b) => a.name.localeCompare(b.name);
-function loadConversations() {
- api.execute('getUser', {
#!/usr/bin/perl -w
use YAML;
my $yaml=Load('---
a:
b: 1
c: 2
e: 3');
$yaml->{a}->{d}=2;