~yerinalexey

Russia (GMT+3)

https://yerinalexey.srht.site

Compiler guy. I like C, Rust and Go. Allergic to C++

~yerinalexey/public-inbox

Last active an hour ago
View more

Recent activity

Re: [PATCH] gtranslate: Switched to GET instead of POST for api an hour ago

From Alexey Yerin to ~yerinalexey/public-inbox

Merged, thanks!

To git.sr.ht:~yerinalexey/gtranslate
 + 857ff7e...b5c15c3 master -> master

[PATCH] community/tut: upgrade to 0.0.36 3 days ago

From Alexey Yerin to ~sircmpwn/alpine-aports

---
 community/tut/APKBUILD | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/community/tut/APKBUILD b/community/tut/APKBUILD
index ea70dee071..82050e2ece 100644
--- a/community/tut/APKBUILD
+++ b/community/tut/APKBUILD
@@ -1,7 +1,7 @@
# Contributor: Alexey Yerin <yyp@disroot.org>
# Maintainer: Alexey Yerin <yyp@disroot.org>
pkgname=tut
pkgver=0.0.35
pkgver=0.0.36
[message trimmed]

[PATCH senpai] window: fix buffer number toggle 3 days ago

From Alexey Yerin to ~taiite/public-inbox

The arguments to strings.HasPrefix were in the wrong order, causing
false positives like "/ " ("/" is a substring of "/buffer").

As well as that, it fixes recognition of /b abbreviation.
---
 window.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/window.go b/window.go
index e2bb506..af5b155 100644
--- a/window.go
+++ b/window.go
@@ -63,7 +63,7 @@ func (app *App) setStatus() {

[message trimmed]

Re: [PATCH senpai v3] config: allow specifying an external password cmd 3 days ago

From Alexey Yerin to ~taiite/public-inbox

Oops, missed a thing in my last review:

On Fri Oct 22, 2021 at 9:30 PM MSK, Kalyan Sriram wrote:
> +func RunPasswordCmd(command string) (password string, err error) {
> + cmd := exec.Command("sh", "-c", command)
> + stdout, err := cmd.Output()
> + if err == nil {
> + password = strings.TrimSuffix(string(stdout), "\n")
> + }
> +
> + return
> +}

This should be runPasswordCmd so that it's not public.

Re: [PATCH senpai v3] config: allow specifying an external password cmd 3 days ago

From Alexey Yerin to ~taiite/public-inbox

Looks good to me!

You may want to run 'go fmt' to fix up some small style issues (like
unaligned fields in Config).

Re: Override/custom syntax highlighting 11 days ago

From Alexey Yerin to ~sircmpwn/sr.ht-discuss

On Fri Oct 15, 2021 at 5:28 AM MSK, toastal wrote:
> > Would be better if it was 'language' instead of 'srht-language' 
>
> No opinion. GitLab prefixed their implementation so I can only assume
> there was a strong reason to do this, possibly as it's not standard.

Well yes, properties in .gitattributes are not really standard but
I think it would be nicer to not tie them to Sourcehut from the start.

Re: Override/custom syntax highlighting 11 days ago

From Alexey Yerin to ~sircmpwn/sr.ht-discuss

On Thu Oct 14, 2021 at 6:54 PM MSK, toastal wrote:
> I’ve been wanting to show projects I’ve written off in a smaller
> progamming
> language community. Currently it and its config file langauge are in a
> syntax
> not supported by Pygments (which I believe is the highlighter, yes?).
> While
> syntax highlighting isn’t the most important feature, it does affect
> the
> perception of the platform. Specifically not having comments
> de-emphasized makes
> it hard to read code.

I agree that this is useful, though I don't usually read code in the

[PATCH] community/opustags: move from testing 12 days ago

From Alexey Yerin to ~sircmpwn/alpine-aports

---
 {testing => community}/opustags/APKBUILD | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {testing => community}/opustags/APKBUILD (100%)

diff --git a/testing/opustags/APKBUILD b/community/opustags/APKBUILD
similarity index 100%
rename from testing/opustags/APKBUILD
rename to community/opustags/APKBUILD
-- 
2.33.1

[PATCH] community/tut: move from testing 12 days ago

From Alexey Yerin to ~sircmpwn/alpine-aports

---
 {testing => community}/tut/APKBUILD | 0
 1 file changed, 0 insertions(+), 0 deletions(-)
 rename {testing => community}/tut/APKBUILD (100%)

diff --git a/testing/tut/APKBUILD b/community/tut/APKBUILD
similarity index 100%
rename from testing/tut/APKBUILD
rename to community/tut/APKBUILD
-- 
2.33.1

[PATCH] downstream: handle name=... in BOUNCER 12 days ago

From Alexey Yerin to ~emersion/soju-dev

---
 downstream.go | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/downstream.go b/downstream.go
index 5493add..ef1e9e2 100644
--- a/downstream.go
+++ b/downstream.go
@@ -2346,6 +2346,8 @@ func (dc *downstreamConn) handleMessageRegistered(msg *irc.Message) error {
				s := string(v)
				switch k {
				// TODO: host, port, tls
				case "name":
					record.Name = s
[message trimmed]