~whynothugo

The Netherlands

https://whynothugo.nl

~whynothugo/superd-services

Last active 19 days ago

~whynothugo/vdirsyncer-devel

Last active 28 days ago

~whynothugo/public-inbox

Last active a month ago

~whynothugo/lsp_lines.nvim

Last active a month ago

~whynothugo/shotman

Last active 4 months ago

~whynothugo/photostore-devel

Last active 1 year, 6 months ago

~whynothugo/docker-makepkg

Last active 1 year, 7 months ago
View more

Recent activity

[PATCH todo.sr.ht v2 4/4] Implement view to rename trackers 3 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
 todosrht/blueprints/settings.py         | 42 +++++++++++++++++++++++++
 todosrht/templates/settings_rename.html | 32 +++++++++++++++++++
 todosrht/templates/tracker-details.html |  9 ++++--
 3 files changed, 80 insertions(+), 3 deletions(-)
 create mode 100644 todosrht/templates/settings_rename.html

diff --git a/todosrht/blueprints/settings.py b/todosrht/blueprints/settings.py
index 2fcdb9b..f784d94 100644
--- a/todosrht/blueprints/settings.py
+++ b/todosrht/blueprints/settings.py
@@ -91,6 +91,48 @@ def details_POST(owner, name):
        name=resp["name"]))

[message trimmed]

[PATCH todo.sr.ht v2 3/4] api: implement tracker renames 3 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
v2: perform all validation before starting transaction
 api/graph/schema.graphqls     |  2 +-
 api/graph/schema.resolvers.go | 31 +++++++++++++++++++++++++++++++
 2 files changed, 32 insertions(+), 1 deletion(-)

diff --git a/api/graph/schema.graphqls b/api/graph/schema.graphqls
index 69db11a..78dcee2 100644
--- a/api/graph/schema.graphqls
+++ b/api/graph/schema.graphqls
@@ -689,8 +689,8 @@ type Query {
}

"You may omit any fields to leave them unchanged."
[message trimmed]

[PATCH todo.sr.ht v2 2/4] Redirect views if a Redirect instance matches 3 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
 todosrht-lmtp                       |  1 +
 todosrht/access.py                  | 35 ++++++++++++++++++++++++++++-
 todosrht/blueprints/api/tickets.py  |  7 +++---
 todosrht/blueprints/api/trackers.py |  5 +++--
 todosrht/blueprints/settings.py     |  9 ++++----
 todosrht/blueprints/ticket.py       |  9 ++++----
 todosrht/blueprints/tracker.py      |  7 +++---
 7 files changed, 56 insertions(+), 17 deletions(-)

diff --git a/todosrht-lmtp b/todosrht-lmtp
index 514fcc8..7a536bb 100755
--- a/todosrht-lmtp
+++ b/todosrht-lmtp
[message trimmed]

[PATCH todo.sr.ht v2 1/4] Implement a Redirect model for renamed trackers 3 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
v2: use raw SQL in migration
 schema.sql                                    |  8 ++++++
 .../baa9630d2a96_add_redirect_table.py        | 26 +++++++++++++++++++
 todosrht/types/__init__.py                    |  1 +
 todosrht/types/redirect.py                    | 21 +++++++++++++++
 4 files changed, 56 insertions(+)
 create mode 100644 todosrht/alembic/versions/baa9630d2a96_add_redirect_table.py
 create mode 100644 todosrht/types/redirect.py

diff --git a/schema.sql b/schema.sql
index c3cd63d..7fade67 100644
--- a/schema.sql
+++ b/schema.sql
[message trimmed]

Re: Support Installing sourcehut Via Docker 4 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-discuss

On Mon, 2 Dec 2024, at 05:52, Noelle Leigh wrote:
> There's an example of running Sourcehut with Docker Compose in 
> [~emersion/sr.ht-container-compose][0]. 
> The project is unmaintained, but could serve as a jumping-
> off point for you.
>
> [0]: https://git.sr.ht/~emersion/sr.ht-container-compose

That unmaintained mirror doesn't work (old version of Alpine with an
old version of golang and another tiny quirk). I have a fork with a
few minor patches on top:

https://git.sr.ht/~whynothugo/sr.ht-container-compose

Re: [RFC v1] ifas 7 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/hare-rfc

On Fri, 29 Nov 2024, at 09:32, Drew DeVault wrote:
> I am strongly in favor of:
>
> 	if (let x as int) {
> 		// x rebound as int
> 	};
>

In existing usages, `x as int` syntax is used to declare "I know that x is of
type int". This usage is orthogonal; it declares a condition "if x is of type
int".

I think that the following makes more sense:

[PATCH todo.sr.ht 4/4] Implement view to rename trackers 8 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
 todosrht/blueprints/settings.py         | 42 +++++++++++++++++++++++++
 todosrht/templates/settings_rename.html | 32 +++++++++++++++++++
 todosrht/templates/tracker-details.html |  9 ++++--
 3 files changed, 80 insertions(+), 3 deletions(-)
 create mode 100644 todosrht/templates/settings_rename.html

diff --git a/todosrht/blueprints/settings.py b/todosrht/blueprints/settings.py
index 2fcdb9b..f784d94 100644
--- a/todosrht/blueprints/settings.py
+++ b/todosrht/blueprints/settings.py
@@ -91,6 +91,48 @@ def details_POST(owner, name):
        name=resp["name"]))

[message trimmed]

[PATCH todo.sr.ht 3/4] api: implement tracker renames 8 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
 api/graph/schema.graphqls     |  2 +-
 api/graph/schema.resolvers.go | 40 +++++++++++++++++++++++++++++++++++
 2 files changed, 41 insertions(+), 1 deletion(-)

diff --git a/api/graph/schema.graphqls b/api/graph/schema.graphqls
index 69db11a..78dcee2 100644
--- a/api/graph/schema.graphqls
+++ b/api/graph/schema.graphqls
@@ -689,8 +689,8 @@ type Query {
}

"You may omit any fields to leave them unchanged."
# TODO: Allow users to change the name of a tracker
[message trimmed]

[PATCH todo.sr.ht 2/4] Redirect views if a Redirect instance matches 8 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
 todosrht-lmtp                       |  1 +
 todosrht/access.py                  | 35 ++++++++++++++++++++++++++++-
 todosrht/blueprints/api/tickets.py  |  7 +++---
 todosrht/blueprints/api/trackers.py |  5 +++--
 todosrht/blueprints/settings.py     |  9 ++++----
 todosrht/blueprints/ticket.py       |  9 ++++----
 todosrht/blueprints/tracker.py      |  7 +++---
 7 files changed, 56 insertions(+), 17 deletions(-)

diff --git a/todosrht-lmtp b/todosrht-lmtp
index 514fcc8..7a536bb 100755
--- a/todosrht-lmtp
+++ b/todosrht-lmtp
[message trimmed]

[PATCH todo.sr.ht 1/4] Implement a Redirect model for renamed trackers 8 days ago

From Hugo Osvaldo Barrera to ~sircmpwn/sr.ht-dev

---
 schema.sql                                    |  8 ++++++
 .../baa9630d2a96_add_redirect_table.py        | 28 +++++++++++++++++++
 todosrht/types/__init__.py                    |  1 +
 todosrht/types/redirect.py                    | 21 ++++++++++++++
 4 files changed, 58 insertions(+)
 create mode 100644 todosrht/alembic/versions/baa9630d2a96_add_redirect_table.py
 create mode 100644 todosrht/types/redirect.py

diff --git a/schema.sql b/schema.sql
index c3cd63d..7fade67 100644
--- a/schema.sql
+++ b/schema.sql
@@ -428,3 +428,11 @@ CREATE TABLE ticket_webhook_delivery (
[message trimmed]