~emersion

France

https://emersion.fr

I'm Simon Ser, I write open-source software.

~emersion/hut-dev

Last active 8 hours ago

~emersion/public-inbox

Last active 4 days ago

~emersion/goguma-dev

Last active 16 days ago

~emersion/soju-dev

Last active 22 days ago

~emersion/grim-dev

Last active a month ago

~emersion/mrsh-dev

Last active 2 months ago

~emersion/alps-dev

Last active 1 year, 5 months ago

~emersion/drm-constraints

Last active 1 year, 8 months ago
View more

Recent activity

Re: [PATCH] pages publish: accept archive from stdin 8 hours ago

From Simon Ser to ~emersion/hut-dev

Pushed with an edit to update the man page, thanks!

[PATCH pages.sr.ht] Upgrade dependencies 8 hours ago

From Simon Ser to ~sircmpwn/sr.ht-dev

Brings gqlgen 0.17.6 which has some multipart file upload fixes.
---
 go.mod |  39 ++++--
 go.sum | 415 ++++++++++++++++++++-------------------------------------
 2 files changed, 172 insertions(+), 282 deletions(-)

diff --git a/go.mod b/go.mod
index 3918ad8ccc07..af2534be078c 100644
--- a/go.mod
+++ b/go.mod
@@ -3,17 +3,36 @@ module git.sr.ht/~sircmpwn/pages.sr.ht
go 1.15

require (
[message trimmed]

Re: [PATCH] Make timeout configurable 8 hours ago

From Simon Ser to ~emersion/hut-dev

On Monday, May 16th, 2022 at 17:02, Blallo <blallo@autistici.org> wrote:

> The http client used for interacting with the hut instance had a
> hardcoded 30 seconds timeout. While this might be ok in most cases, I
> happened to hit one of the corner cases when trying to push a tarball to
> site.ht. This commit adds a global flag to set the value, defaulting to
> the old one.

Hm. If possible, I'd prefer to do the right thing by default and set a
longer timeout for queries involving large file uploads, without
requiring the user to manually pass a --timeout option.

Re: [PATCH 2/2] todo: Add ticket delete 8 hours ago

From Simon Ser to ~emersion/hut-dev

Pushed, thanks!

Re: [PATCH sr.ht-docs] fix typo 8 hours ago

From Simon Ser to ~sircmpwn/sr.ht-dev

Pushed, thanks!

[PATCH hare v3 1/2] dirs/xdg: ignore relative paths a day ago

From Simon Ser to ~sircmpwn/hare-dev

The spec says:

> All paths set in these environment variables must be absolute. If an
> implementation encounters a relative path in any of these variables it
> should consider the path invalid and ignore it.

Signed-off-by: Simon Ser <contact@emersion.fr>
---
 dirs/xdg.ha | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/dirs/xdg.ha b/dirs/xdg.ha
index 24e74ae462cb..098b970d5bd3 100644
--- a/dirs/xdg.ha
[message trimmed]

[PATCH hare v3 2/2] dirs/xdg: add runtime a day ago

From Simon Ser to ~sircmpwn/hare-dev

This parses XDG_RUNTIME_DIR and performs the required sanity checks.

Signed-off-by: Simon Ser <contact@emersion.fr>
---
 dirs/xdg.ha        | 32 ++++++++++++++++++++++++++++++++
 scripts/gen-stdlib |  2 +-
 stdlib.mk          |  4 ++--
 3 files changed, 35 insertions(+), 3 deletions(-)

diff --git a/dirs/xdg.ha b/dirs/xdg.ha
index 098b970d5bd3..7e62aa2cd9d6 100644
--- a/dirs/xdg.ha
+++ b/dirs/xdg.ha
@@ -3,11 +3,14 @@
[message trimmed]

Re: [RFC] Build Attributes a day ago

From Simon Ser to ~sircmpwn/sr.ht-discuss

It should also be possible to use srht.site for this use-case.

[PATCH] storage/filesystem: simplify UserPrincipalBackend 4 days ago

From Simon Ser to ~sircmpwn/tokidoki-devel

Use composition to expose UserPrincipalBackend in filesystemBackend.
That way, no need to re-define the CurrentUserPrincipal method.
---
 storage/filesystem.go | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/storage/filesystem.go b/storage/filesystem.go
index cd19f4d0a6c5..04e383df7562 100644
--- a/storage/filesystem.go
+++ b/storage/filesystem.go
@@ -26,10 +26,10 @@ import (
)

type filesystemBackend struct {
[message trimmed]

[PATCH] auth/imap: close IMAP connection earlier 4 days ago

From Simon Ser to ~sircmpwn/tokidoki-devel

No need to keep it around after Authenticate succeeds while handling
the HTTP request (via next.ServeHTTP).
---
 auth/imap.go | 1 +
 1 file changed, 1 insertion(+)

diff --git a/auth/imap.go b/auth/imap.go
index 268cedfa63f2..ca1bd0ceba78 100644
--- a/auth/imap.go
+++ b/auth/imap.go
@@ -57,6 +57,7 @@ func (prov *IMAPProvider) doAuth(next http.Handler,
		http.Error(w, "Invalid username or password", http.StatusUnauthorized)
		return
	}
[message trimmed]