~lmarz

~lmarz/public-inbox

Last active 6 months ago
View more

Recent activity

Re: [pages.sr.ht] graphql invalid auth method a month ago

From Leon Marz to ~sircmpwn/sr.ht-discuss

> Are you sure you're using an OAuth 2.0 token, and not a legacy OAuth  > token?
I am. I've generated it on meta.sr.ht/oauth2. Publishing a website with
this token works without any issues.

- Leon

[pages.sr.ht] graphql invalid auth method a month ago

From Leon Marz to ~sircmpwn/sr.ht-discuss

I was trying out the graphql api for pages.sr.ht, but when trying to access
restricted data, the api returns "Access denied for invalid auth method" 
with a
valid oath2 personal access token.

curl --oauth2-bearer "$oauth_token" \
  -H 'Content-Type: application/json' \
  -d '{"query": { me { canonicalName }}}' \
  https://meta.sr.ht/query

returns {"data": {"me": {"canonicalName": "~lmarz"}}}


curl --oauth2-bearer "$oauth_token" \

Re: [PATCH wlsunset v2] Add daemonize option 5 months ago

From Leon Marz to ~kennylevinsen/public-inbox

Oh sorry. I forgot this was an option.

[PATCH wlsunset v2] Add daemonize option 5 months ago

From Leon Marz to ~kennylevinsen/public-inbox

---
 main.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 52 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 4c27d58..3509aad 100644
--- a/main.c
+++ b/main.c
@@ -8,7 +8,9 @@
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
[message trimmed]

[PATCH wlsunset v2] Add daemonize option 5 months ago

From Leon Marz to ~kennylevinsen/public-inbox

---
 main.c | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 52 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 4c27d58..3509aad 100644
--- a/main.c
+++ b/main.c
@@ -8,7 +8,9 @@
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
[message trimmed]

[PATCH wlsunset] Add daemonize option 5 months ago

From Leon Marz to ~kennylevinsen/public-inbox

---
 main.c | 48 ++++++++++++++++++++++++++++++++++++++++++++++--
 1 file changed, 46 insertions(+), 2 deletions(-)

diff --git a/main.c b/main.c
index 4c27d58..0e78435 100644
--- a/main.c
+++ b/main.c
@@ -8,7 +8,9 @@
#include <stdlib.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>
#include <sys/types.h>
[message trimmed]

[PATCH pine-bootstrap] Improve indentation 6 months ago

From Leon Marz to ~fultonbrowne/pine

Use tabs with length 4 instead of 3 spaces
---
 bootstrap | 150 ++++++++++++++++++++++++++----------------------------
 1 file changed, 73 insertions(+), 77 deletions(-)

diff --git a/bootstrap b/bootstrap
index 67776ec..3b81cf5 100755
--- a/bootstrap
@@ -1,82 +1,82 @@
#! /bin/sh -e
check_var(){
   if [ -z $($1) ]; then
   echo "$1 is unset"
[message trimmed]

[PATCH pine-bootstrap] Automatically run download() if $PKG_MAN does not exist 6 months ago

From Leon Marz to ~fultonbrowne/pine

---
 bootstrap | 10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

diff --git a/bootstrap b/bootstrap
index dadc0ce..67776ec 100755
--- a/bootstrap
@@ -30,7 +30,7 @@ get_vars(){

download(){
   git clone https://github.com/kisslinux/kiss package_man
   git clone https://git.sr.ht/~fultonbrowne/pine-repos temp_repos 
   git clone https://git.sr.ht/~fultonbrowne/pine-repos temp_repos
[message trimmed]