~petersanchez

Los Angeles, CA

https://www.petersanchez.com

LA, CA USA - Managua, Nicaragua

~petersanchez/public-inbox

Last active 9 months ago

~petersanchez/blog-discussion

Last active 1 year, 1 month ago
View more

Recent activity

[PATCH links] Avoiding potential issue when not letting parseBaseURLs terminate normally. We make sure we wait for that to finish before shutting down the `links` service. a day ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-added: Be sure we are shutting down background tasks correctly
  to avoid any data errors, etc.
Signed-off-by: Peter Sanchez <peter@netlandish.com>
---
 cmd/links/main.go  | 6 +++++-
 cmd/links/parse.go | 3 ++-
 2 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/cmd/links/main.go b/cmd/links/main.go
index 4372a40..732886e 100644
--- a/cmd/links/main.go
+++ b/cmd/links/main.go
@@ -8,6 +8,7 @@ import (
	"os"
[message trimmed]

Re: [PATCH links] gobwebs bump a day ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   b614e0a..bb0235a  master -> master

[PATCH links] gobwebs bump a day ago

From Peter Sanchez to ~netlandish/links-dev

---
Updating gobwebs and gobwebs apps.

 go.mod | 12 ++++++------
 go.sum | 24 ++++++++++++------------
 2 files changed, 18 insertions(+), 18 deletions(-)

diff --git a/go.mod b/go.mod
index 0066578..e0cbe93 100644
--- a/go.mod
+++ b/go.mod
@@ -28,12 +28,12 @@ require (
	golang.org/x/text v0.21.0
	golang.org/x/time v0.8.0
[message trimmed]

Deployed Anubis to help with bot abuse 5 days ago

From Peter Sanchez to ~netlandish/links-discuss

I wanted to make sure I let everyone know about a change introduced 
today to LinkTaco. We deployed Anubis to help stop the AI bot scrapers 
that are constantly hitting the service.

I wrote a blog post[0] about this. If you remember, two weeks ago I 
wrote a post[1] to this list about a code change I pushed also to combat 
the scrapers. I hope to revert that change in the future if Anubis turns 
out to be a good solution for us.

Just a heads up. As always please let us know if you notice any issues.

Thanks,

Peter

Re: [PATCH links] Correct IP extraction logic for api server. 6 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   536b6d2..b614e0a  master -> master

[PATCH links] Correct IP extraction logic for api server. 6 days ago

From Peter Sanchez to ~netlandish/links-dev

Changelog-fixed: IP detection for api server under nginx reverse proxy.
Signed-off-by: Peter Sanchez <peter@netlandish.com>
---
 cmd/api/main.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/cmd/api/main.go b/cmd/api/main.go
index c9f0a7b..5546df4 100644
--- a/cmd/api/main.go
+++ b/cmd/api/main.go
@@ -104,8 +104,8 @@ func run() error {

	e := echo.New()
	// https://echo.labstack.com/docs/ip-address
[message trimmed]

Re: [PATCH links] Fixing bug when no valid input is given to the tsquery conversion. 6 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   3c4d9f9..536b6d2  master -> master

Re: [PATCH links] Following up on 685ba820bc85a66 this adds an additional index to make auditlog metadata searching faster. Also adds the misisng translations. 6 days ago

From Peter Sanchez to ~netlandish/links-dev

Applied.

To git@git.code.netlandish.com:~netlandish/links
   47a5324..3c4d9f9  master -> master

[PATCH links] Fixing bug when no valid input is given to the tsquery conversion. 6 days ago

From Peter Sanchez to ~netlandish/links-dev

Fixed: ISE when no valid input is given to a query used in tsquery
  conversions.
Signed-off-by: Peter Sanchez <peter@netlandish.com>
---
 core/routes.go                                    | 11 ++++++-----
 helpers.go                                        | 12 +++++++-----
 migrations/0006_update_auditlog_metadata.down.sql |  2 +-
 3 files changed, 14 insertions(+), 11 deletions(-)

diff --git a/core/routes.go b/core/routes.go
index 661c1d9..5d2995b 100644
--- a/core/routes.go
+++ b/core/routes.go
@@ -3187,13 +3187,14 @@ func (s *Service) TagAutocomplete(c echo.Context) error {
[message trimmed]