~gildarts

Indianapolis, IN

https://orbital.rocks

~gildarts/seabird

Last active 1 year, 1 month ago

~gildarts/inspector

Last active 3 years ago
View more

Recent activity

[PATCH] fix /msg command only sending first word 1 year, 2 months ago

From gildarts to ~delthas/senpai-dev

---
 commands.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands.go b/commands.go
index 072c433..b8db69f 100644
--- a/commands.go
+++ b/commands.go
@@ -341,8 +341,8 @@ func commandDoMe(app *App, args []string) (err error) {

func commandDoMsg(app *App, args []string) (err error) {
	target := args[0]
	content := args[1]
	return commandSendMessage(app, target, content)
[message trimmed]

[PATCH] fix /msg command only sending first word 1 year, 2 months ago

From gildarts to ~delthas-alt/senpai-dev

---
 commands.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/commands.go b/commands.go
index 072c433..b8db69f 100644
--- a/commands.go
+++ b/commands.go
@@ -341,8 +341,8 @@ func commandDoMe(app *App, args []string) (err error) {

func commandDoMsg(app *App, args []string) (err error) {
	target := args[0]
	content := args[1]
	return commandSendMessage(app, target, content)
[message trimmed]

Re: using diagrams in sourcehut 1 year, 2 months ago

From gildarts to ~sircmpwn/sr.ht-discuss

On Mon Jul 18, 2022 at 12:58 PM EDT, Ethan Davidson wrote:
>
> What workflow do you typically use for including diagrams in sourcehut?
>

You could also use srht.site to host custom documentation. By using a
static site generator, you should be able to generate any kind of
diagrams you want though using cdns is blocked by the service.

[RFC PATCH] WIP database: client cert storage 1 year, 2 months ago

From gildarts to ~emersion/soju-dev

---
Mostly looking for comments on if this is the right approach for
storing the client certs in the database. Still need to work on
the actual authentication pieces.

 database/database.go | 10 +++++
 database/postgres.go | 72 +++++++++++++++++++++++++++++++++++
 database/sqlite.go   | 89 ++++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 171 insertions(+)

diff --git a/database/database.go b/database/database.go
index eb5240e..6618fe0 100644
--- a/database/database.go
+++ b/database/database.go
[message trimmed]

Re: Can't create Git repo in self-hosted instance 1 year, 2 months ago

From gildarts to ~sircmpwn/sr.ht-discuss

On Fri Jul 8, 2022 at 7:13 PM UTC, Riccardo Sacchetto wrote:
> [2]: https://paste.sr.ht/~occhioverde/0d663adc06ff66a63daadf0b2f8d87761f7eb19f

Just fyi, you need to rotate your secrets, since they are included in
that paste. Assuming the secrets in the paste are what you are using in
your instance.

-gildarts

[PATCH] general cleanup 1 year, 2 months ago

From gildarts to ~emersion/soju-dev

fixes issues highlighted by go vet and go-staticcheck including

- deprecated packages
- unneeded use of *printf
- unlabeled fields
- capitalized error strings
- deprecated functions
- unused variables
- unclear time math
- unneeded use of the fmt package
---
 cmd/sojuctl/main.go        |  4 ++--
 contrib/znc-import/main.go |  2 +-
 downstream.go              |  2 +-
[message trimmed]

[PATCH v2] database: upgrade bcrypt cost as needed 1 year, 2 months ago

From gildarts to ~emersion/soju-dev

Closes: https://todo.sr.ht/~emersion/soju/136
---
Addresses feedback on patch.

- returning bool for if the password is upgraded
- camelCase no longer applicable to highlighted point
- using the SetPassword function instead of duplicating logic

database/database.go | 24 +++++++++++++++++++-----
 downstream.go        | 10 +++++++++-
 2 files changed, 28 insertions(+), 6 deletions(-)

diff --git a/database/database.go b/database/database.go
index 977d1b7..1c22bfb 100644
[message trimmed]

Re: [builds.sr.ht] Ed25519 SSH Key Secret Issue 1 year, 2 months ago

From gildarts to ~sircmpwn/sr.ht-discuss

Okay, never mind. Something is funky with how my keys are getting 
copied. Looks like it is putting the wrong key format into the 
clipboard. Looked right at first glance, but isn't long enough.

-gildarts

[builds.sr.ht] Ed25519 SSH Key Secret Issue 1 year, 2 months ago

From gildarts to ~sircmpwn/sr.ht-discuss

Running into an issue with using Ed25519 ssh keys as a secret in builds. 
You can add the key with no issues, but then builds will put the key 
into `id_rsa` which appears to confuse ssh, since the file indicates 
that it is an rsa key rather than an ed25519 key, which is stored in 
`id_ed25519` by default.

This mismatch appears to be causing errors when the key is loaded in 
builds. Only happens on private repos as far as I can tell.

 > Load key "/home/build/.ssh/id_rsa": invalid format

Obviously, this is easy to workaround in multiple different ways, but 
figured I'd bring it up as a potential issue since it is non-obvious 
what is happening.

[PATCH] database: upgrade bcrypt cost as needed 1 year, 2 months ago

From gildarts to ~emersion/soju-dev

Closes: https://todo.sr.ht/~emersion/soju/136
---
 database/database.go | 16 ++++++++++++++++
 downstream.go        |  6 ++++++
 2 files changed, 22 insertions(+)

diff --git a/database/database.go b/database/database.go
index 977d1b7..dd0d9bc 100644
--- a/database/database.go
+++ b/database/database.go
@@ -82,6 +82,22 @@ func (u *User) CheckPassword(password string) error {
		return fmt.Errorf("wrong password: %v", err)
	}

[message trimmed]