~porcellis

Pelotas, Brasil

https://www.porcellis.com

Latino americano e escrevo código para pagar as contas

~porcellis/antispam

Last active 5 months ago

~porcellis/cirandas.net-ops

Last active 11 months ago

~porcellis/cirandas-devel

Last active 1 year, 10 months ago

~porcellis/softwarelivrenoestado

Last active 2 years ago

~porcellis/public-inbox

Last active 2 years ago
View more

Recent activity

[PATCH] Avoid clipping gist code's content a month ago

From Pedro Lucas Porcellis to ~edwardloveall/scribe

---
Before: https://canto.eletrotupi.com/NZ7CV.png
After: https://canto.eletrotupi.com/cDOsq.png

 src/css/app.css | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/css/app.css b/src/css/app.css
index 3799385..06f3611 100644
--- a/src/css/app.css
+++ b/src/css/app.css
@@ -11,6 +11,10 @@ p.meta {
  width: 55%;
}
[message trimmed]

Re: pages.sr.ht Allow users to make a custom 404 page 2 months ago

From Pedro Lucas Porcellis to ~sircmpwn/sr.ht-discuss

Hey Topy!

On Thu Sep 8, 2022 at 4:55 PM -03, E-Topy wrote:
> I was wondering if it could be possible to specify a 404 page, and add
> it to the documentation if it exists.

Yes you can, I think you should use the GraphQL API to do that, as you
can see on the Site Entity: 

> "A published website"
> type Site {
> id: Int!
> created: Time!
>

Re: CI can't clone pmaports fork: error reading section header 3 months ago

From Pedro Lucas Porcellis to ~sircmpwn/sr.ht-discuss

On Tue Aug 2, 2022 at 3:56 PM -03, Csepp wrote:
> Hi all!
>
> None of them are shallow clones as far as I'm aware.  I did not find any
> reference to shallowness inside .git, but I didn't look very deeply.
>
> git --version on my machine gives `git version 2.37.0`, the VM seems to
> be one minor release behind.
>
> I'm pretty sure this is a bug somewhere on the CI side.

Hmm, apparently there's an issue with go-git which probably is the root
cause of this bug:

Re: [PATCH] Store page size in the database 4 months ago

From Pedro Lucas Porcellis to ~sircmpwn/searchhut-devel

Hi Umar, nice work! I do have a small question, though:

> +	page_size bigint NOT NULL,

Any particular reason to store the page size as a integer and not as a
float?

[PATCH] web: add domains page to list indexed domains 4 months ago

From Pedro Lucas Porcellis to ~sircmpwn/searchhut-devel

---
I didn't really know if I should include the tags. I can send in a later
patch if you desire.

 cmd/sh-web/main.go        | 27 +++++++++++++++++++
 graph/schema.graphqls     |  1 +
 graph/schema.resolvers.go | 35 ++++++++++++++++++++++++
 query/queries.gql         |  9 +++++++
 static/main.css           | 14 ++++++++++
 templates/domains.html    | 57 +++++++++++++++++++++++++++++++++++++++
 6 files changed, 143 insertions(+)
 create mode 100644 templates/domains.html

diff --git a/cmd/sh-web/main.go b/cmd/sh-web/main.go
[message trimmed]

Re: Enable clojure syntax highlighting for .cljc file extensions 6 months ago

From Pedro Lucas Porcellis to ~sircmpwn/sr.ht-discuss

Hello Danny!

On Fri May 27, 2022 at 4:13 PM -03, Danny Freeman wrote:
> Is there anything else I can do to see that this change makes it way 
> into source hut? I imagine next time yall get this package updated it 
> will just start working.

I believe that all you need to do is send a patch updating the
py3-pygments package that sr.ht-apkbuilds repository shadows.

Re: Workflow for how to apply patches and pull requests from mutt 6 months ago

From Pedro Lucas Porcellis to ~sircmpwn/sr.ht-discuss

Hi Beau!

On Tue, May 24, 2022 at 07:19:12AM +0800, Beau Trepp wrote:
> For the other half as a maintainer, I have gotten a bit lost.
> I would be able to review code in my email client and respond, but I'm
> not sure how to then get the commits or patches out of git and then
> apply them to my repository to 'merge' in.

After you reviewed a patch that looks good to go, you should pipe it
into git am. If you use mutt, you can just use the pipe command (| by
default) and type git am -, same goes to aerc (I don't use it so I don't
know what command it is, but it is surely documented).

> If anyone knows of a good blog or workflow explaining this it would be

[PATCH] android: make https links to open on their default handler 6 months ago

From Pedro Lucas Porcellis to ~emersion/goguma-dev

This also will make things like reddit links being opened on user's
defined handler (i.e. the reddit app client, etc)
---
 android/app/src/main/AndroidManifest.xml | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/android/app/src/main/AndroidManifest.xml b/android/app/src/main/AndroidManifest.xml
index bf4fffd..d283d44 100644
--- a/android/app/src/main/AndroidManifest.xml
+++ b/android/app/src/main/AndroidManifest.xml
@@ -9,6 +9,13 @@
    <uses-permission android:name="android.permission.FOREGROUND_SERVICE"/>
    <uses-permission android:name="android.permission.REQUEST_IGNORE_BATTERY_OPTIMIZATIONS"/>

[message trimmed]

[PATCH hare] strings: fix typo in the suffix doc 6 months ago

From Pedro Lucas Porcellis to ~sircmpwn/hare-dev

Signed-off-by: Pedro Lucas Porcellis <porcellis@eletrotupi.com>
---
 strings/suffix.ha | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/strings/suffix.ha b/strings/suffix.ha
index 5f599e71..70b08d0c 100644
--- a/strings/suffix.ha
+++ b/strings/suffix.ha
@@ -23,7 +23,7 @@ export fn hasprefix(in: str, prefix: (str | rune)) bool = {
	assert(!hasprefix("hello world", 'q'));
};

// Returns true if 'in' has the given prefix.
[message trimmed]

[PATCH kaiju v2] render: replace manual render logic with wlr_scene 6 months ago

From Pedro Lucas Porcellis to ~bl4ckb0ne/kaiju-dev

This patch replaces the custom renderer logic with wlroot's wlr_scene
API. This patch matches wlroots version 0.15.1
---
v1 -> v2: squashed the previous four commits into a single one as
discussed on IRC

 render.c | 130 +++----------------------------------------------------
 server.c |  44 +++++++++++--------
 server.h |   2 +
 view.c   |  10 ++++-
 view.h   |   1 +
 5 files changed, 44 insertions(+), 143 deletions(-)

diff --git a/render.c b/render.c
[message trimmed]