~garritfra

https://garrit.xyz

Working as mobile dev. Wannabe web dev. Linux and other cool stuff in my spare time.

~garritfra/antimony

Last active 2 days ago

~garritfra/flutterflux

Last active 20 days ago

~garritfra/midgard

Last active a month ago

~garritfra/taurus

Last active 2 months ago

~garritfra/omega

Last active 3 months ago

~garritfra/public-inbox

Last active 3 months ago

~garritfra/notiz

Last active 5 months ago

~garritfra/express-rs

Last active 5 months ago

~garritfra/wireguard-tools-announce

Last active 5 months ago

~garritfra/wireguard-tools-discuss

Last active 5 months ago
View more

Recent activity

Re: [PATCH antimony-todo] Clean up Makefile 3 days ago

From Garrit Franke to ~garritfra/antimony

Applied. Thanks!

[PATCH rex v3] Return possible error when reading from file a month ago

From Garrit Franke to ~yerinalexey/public-inbox

---
 main.go | 24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

diff --git a/main.go b/main.go
index a7e4786..8713f14 100644
--- a/main.go
+++ b/main.go
@@ -75,7 +75,7 @@ func regexWorker(in chan string, tests string, out *tview.TextView) {
	}
}

func fromStdin() string {
func readStdin() string {
[message trimmed]

Re: [PATCH rex v2] Return possible error when reading from file a month ago

From Garrit Franke to ~yerinalexey/public-inbox

"Alexey Yerin" yerinalexey98fd@gmail.com – 12. Januar 2021 16:30
> I just realized I don't really like the name of this function. Maybe
> rename it to readFile or something?

Makes sense. One sec.

Re: [Fosspay] stripe.error.InvalidRequestError a month ago

From Garrit Franke to ~sircmpwn/public-inbox

Found the issue. I was trying to send a donation with my own email. Using a different one, it works.

Re: [Fosspay] stripe.error.InvalidRequestError a month ago

From Garrit to ~sircmpwn/public-inbox

"Eddie Barraco" contact@eddiebarraco.fr – 12. Januar 2021 12:23
> I think I get the same issue. Try to logout from the admin back office
> then retry payments.

That didn't seem to work for me.

According to stripe, the API calls get through. I don't see any received payments though.

[Fosspay] stripe.error.InvalidRequestError a month ago

From Garrit to ~sircmpwn/public-inbox

I'm currently in the midst of setting up Fosspay. I believe all the moving parts are in place, but when trying to send a payment to myself, I get the following stacktrace in my logs:


2021-01-12 10:52:17,970 - fosspay.app - ERROR - Exception on /donate [POST]

Traceback (most recent call last):

File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 2447, in wsgi_app

response = self.full_dispatch_request()

File "/usr/local/lib/python3.8/site-packages/flask/app.py", line 1952, in full_dispatch_request

rv = self.handle_user_exception(e)

[PATCH rex v2] Return possible error when reading from file a month ago

From Garrit Franke to ~yerinalexey/public-inbox

---
 main.go | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/main.go b/main.go
index a7e4786..65c762b 100644
--- a/main.go
+++ b/main.go
@@ -86,18 +86,11 @@ func fromStdin() string {
	return data
}

func fromFile(fname string) string {
func fromFile(fname string) (string, error) {
[message trimmed]

Re: [PATCH rex] Return possible error when reading from file a month ago

From Franke, Garrit to ~yerinalexey/public-inbox


> Am 12.01.2021 um 10:47 schrieb Garrit Franke <garrit@slashdev.space>:
> 
> ---
> main.go | 20 +++++++++-----------
> 1 file changed, 9 insertions(+), 11 deletions(-)
> 
> diff --git a/main.go b/main.go
> index a7e4786..c231570 100644
> --- a/main.go
> +++ b/main.go
> @@ -86,18 +86,11 @@ func fromStdin() string {
> 	return data

[PATCH rex] Return possible error when reading from file a month ago

From Garrit Franke to ~yerinalexey/public-inbox

---
 main.go | 20 +++++++++-----------
 1 file changed, 9 insertions(+), 11 deletions(-)

diff --git a/main.go b/main.go
index a7e4786..c231570 100644
--- a/main.go
+++ b/main.go
@@ -86,18 +86,11 @@ func fromStdin() string {
	return data
}

func fromFile(fname string) string {
func fromFile(fname string) (string, error) {
[message trimmed]

[PATCH rex] Add support for STDIN a month ago

From Garrit Franke to ~yerinalexey/public-inbox

This adds the ability to read from stdin, as opposed to reading a file.
A simple example would be the following:

printf "foo\nbar\n" | rex

If text is piped from stdin *and* from a file, the file will be
prioritized:

printf "foo\nbar\n" | rex test.txt
---
 README.md |  3 ++-
 main.go   | 44 +++++++++++++++++++++++++++++++++++---------
 2 files changed, 37 insertions(+), 10 deletions(-)
[message trimmed]