~sircmpwn

The Netherlands

https://drewdevault.com

I write code.

~sircmpwn/hare-dev

Last active an hour ago

~sircmpwn/sr.ht-dev

Last active 3 hours ago

~sircmpwn/sr.ht-ops

Last active 3 hours ago

~sircmpwn/sr.ht-discuss

Last active 3 hours ago

~sircmpwn/sr.ht-support

Last active 11 hours ago

~sircmpwn/hare-users

Last active 17 hours ago

~sircmpwn/sr.ht-image-failures

Last active a day ago

~sircmpwn/email-test-drive

Last active a day ago

~sircmpwn/sr.ht-admins

Last active 2 days ago

~sircmpwn/public-inbox

Last active 2 days ago
View more

Recent activity

[PATCH git.sr.ht] Add login gate to git blame 3 hours ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

There is a scourge of aggressive crawlers who don't respect robots.txt
terrorizing the internet like a bull in a china shop and git blames are
just too computationally expensive to permit them to keep smashing us up
with.
---
 gitsrht/blueprints/repo.py   | 2 ++
 gitsrht/templates/utils.html | 2 +-
 2 files changed, 3 insertions(+), 1 deletion(-)

diff --git a/gitsrht/blueprints/repo.py b/gitsrht/blueprints/repo.py
index 59df6c7..8cf03f1 100644
--- a/gitsrht/blueprints/repo.py
+++ b/gitsrht/blueprints/repo.py
@@ -25,6 +25,7 @@ from scmsrht.formatting import get_formatted_readme, get_highlighted_file
[message trimmed]

Re: [PATCH meta.sr.ht] Fix oversights from the user/payment split 3 hours ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

Thanks!

To git@git.sr.ht:~sircmpwn/meta.sr.ht
   3bf6b06..2935ef6  master -> master

Re: [PATCH hare-glm 1/2] Add aabb_point a day ago

From Drew DeVault to ~vladh/general

You might be a patch or two short of my fork?

https://git.sr.ht/~sircmpwn/hare-glm

I thought I had sent them all but perhaps not...

[PATCH hare-glm 2/2] Add ray_at a day ago

From Drew DeVault to ~vladh/general

---
 glm/ray.ha | 5 +++++
 1 file changed, 5 insertions(+)
 create mode 100644 glm/ray.ha

diff --git a/glm/ray.ha b/glm/ray.ha
new file mode 100644
index 0000000..6d32e84
--- /dev/null
+++ b/glm/ray.ha
@@ -0,0 +1,5 @@
export fn ray_at(orig: *v3, dir: *v3, t: f32, point: *v3) void = {
	let dst = V3_ZERO;
	v3_scale_to(dir, t, &dst);
[message trimmed]

[PATCH hare-glm 1/2] Add aabb_point a day ago

From Drew DeVault to ~vladh/general

---
 glm/box.ha | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/glm/box.ha b/glm/box.ha
index 518ca85..8d9793a 100644
--- a/glm/box.ha
+++ b/glm/box.ha
@@ -9,3 +9,9 @@ export fn aabb_frustrum(box: *[2]v3, planes: *[6]v4) bool = {
	};
	return true;
};

export fn aabb_point(box: *[2]v3, point: *v3) bool = {
[message trimmed]

[PATCH lists.sr.ht] schema.sql: add missing subscription_request table 2 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

This table was added in Alembic migration 49616d9375c2.
---
 schema.sql | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/schema.sql b/schema.sql
index 21a7695..0356355 100644
--- a/schema.sql
+++ b/schema.sql
@@ -172,6 +172,13 @@ CREATE TABLE subscription (
	UNIQUE (list_id, user_id)
);

CREATE TABLE subscription_request (
[message trimmed]

[PATCH meta.sr.ht v2 8/8] schema: drop confirmation_hash et al 2 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

---
 api/graph/model/user.go                       |  1 -
 ...793c3c9f64_drop_confirmation_hash_et_al.py | 33 +++++++++++++++
 metasrht/auth/pam.py                          |  1 -
 metasrht/blueprints/users.py                  |  6 +--
 metasrht/templates/profile.html               |  6 ---
 metasrht/templates/user.html                  | 41 ++-----------------
 metasrht/types/user.py                        | 23 -----------
 schema.sql                                    |  6 ---
 8 files changed, 37 insertions(+), 80 deletions(-)
 create mode 100644 metasrht/alembic/versions/73793c3c9f64_drop_confirmation_hash_et_al.py

diff --git a/api/graph/model/user.go b/api/graph/model/user.go
index 275eee0..9f10b60 100644
[message trimmed]

[PATCH meta.sr.ht v2 7/8] API: Update audit log & send security emails when anonymous 2 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

This requires editing the auth context at runtime, which is a bit hacky
but it works just fine.
---
 api/graph/resolver.go         | 22 ++++++++++++++++++++++
 api/graph/schema.resolvers.go | 27 ++++++++++++++++++++++++++-
 2 files changed, 48 insertions(+), 1 deletion(-)

diff --git a/api/graph/resolver.go b/api/graph/resolver.go
index e245ee9..621c97c 100644
--- a/api/graph/resolver.go
+++ b/api/graph/resolver.go
@@ -3,6 +3,7 @@ package graph
import (
	"context"
[message trimmed]

[PATCH meta.sr.ht v2 6/8] API: Implement password resets 2 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

---
 api/graph/email.go            | 60 ++++++++++++++++++++++++++
 api/graph/schema.graphqls     |  3 ++
 api/graph/schema.resolvers.go | 81 ++++++++++++++++++++++++++++++++++-
 metasrht/blueprints/auth.py   | 72 ++++++++++---------------------
 metasrht/templates/reset.html |  9 +++-
 5 files changed, 174 insertions(+), 51 deletions(-)

diff --git a/api/graph/email.go b/api/graph/email.go
index a4282e0..83f4abc 100644
--- a/api/graph/email.go
+++ b/api/graph/email.go
@@ -283,3 +283,63 @@ change, click the following link:
		panic(err)
[message trimmed]

[PATCH meta.sr.ht v2 5/8] API: Implement email change confirmation 2 days ago

From Drew DeVault to ~sircmpwn/sr.ht-dev

---
 api/graph/email.go             | 10 +++---
 api/graph/schema.resolvers.go  | 56 +++++++++++++++++++++++++++-------
 metasrht/blueprints/auth.py    | 25 +++++----------
 metasrht/blueprints/profile.py | 25 +++++++++++++--
 4 files changed, 81 insertions(+), 35 deletions(-)

diff --git a/api/graph/email.go b/api/graph/email.go
index cdf7b4b..a4282e0 100644
--- a/api/graph/email.go
+++ b/api/graph/email.go
@@ -190,8 +190,8 @@ to contact support. Otherwise, no action is required.
	}
}
[message trimmed]