~petersanchez

Los Angeles, USA - Managua, Nicaragua

https://petersanchez.com

Recent activity

Re: [PATCH hg.sr.ht-deb] Add GraphQL API 4 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

On 02/17, Denis Laxalde wrote:
>(Having a second look.)
>
>This user does not exist. But we're having an 'hg' user (see 
>debian/srht-hg.postinst), should we use the same one here?

You're right. The user is 'hg'. Sorry about that, I should have verified
before just assuming all the users followed the same pattern.

[PATCH todo.sr.ht-deb] Adding GraphQL API 4 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

---
 debian/rules                           |  7 +++++++
 debian/srht-todo.install               |  1 +
 debian/srht-todo.postinst              |  3 +++
 debian/srht-todo.postrm                | 21 +++++++++++++++++++++
 debian/srht-todo.srht-todo-api.service | 13 +++++++++++++
 5 files changed, 45 insertions(+)
 create mode 100644 debian/srht-todo.install
 create mode 100644 debian/srht-todo.postrm
 create mode 100644 debian/srht-todo.srht-todo-api.service

diff --git a/debian/rules b/debian/rules
index 4abedcb..2d27bca 100755
--- a/debian/rules
[message trimmed]

[PATCH lists.sr.ht-deb] Adding GraphQL API 4 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

---
 debian/rules                             |  7 +++++++
 debian/srht-lists.install                |  1 +
 debian/srht-lists.postinst               |  3 +++
 debian/srht-lists.postrm                 | 21 +++++++++++++++++++++
 debian/srht-lists.srht-lists-api.service | 13 +++++++++++++
 5 files changed, 45 insertions(+)
 create mode 100644 debian/srht-lists.install
 create mode 100644 debian/srht-lists.postrm
 create mode 100644 debian/srht-lists.srht-lists-api.service

diff --git a/debian/rules b/debian/rules
index 1f0e430..3f8c644 100755
--- a/debian/rules
[message trimmed]

[PATCH hg.sr.ht-deb] Add GraphQL API 4 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-packages

# HG changeset patch
# User Peter Sanchez <peter@netlandish.com>
# Date 1645051197 21600
#      Wed Feb 16 16:39:57 2022 -0600
# Node ID b48a2faef25007557c3846811a6d4952e697208c
# Parent  a834e88829f173d439f0cfca106a67d14e0acc99
Add GraphQL API

diff --git a/debian/rules b/debian/rules
--- a/debian/rules
+++ b/debian/rules
@@ -16,11 +16,14 @@ override_dh_auto_build:
	make SRHT_PATH=${SRHT_PATH}
	dh_auto_build
[message trimmed]

Re: [PATCH hg.sr.ht] Use @ as default revision before using tip 6 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 12/02, Roger Pate wrote:
>Use @ as default revision before using tip
>
>The '@' bookmark is special because it will be cloned by default, otherwise it is just another bookmark, which can be defined, moved, and exported.  The 'tip' bookmark is more special, as it always represents the latest commit on any head and cannot be altered except by adding a commit.
>
>Compared to the prior behavior of showing 'tip' by default, it makes more sense to show '@'.  If '@' is not defined, then fall back to 'tip'.

Not sure this makes sense for default behavior.

The use of '@' is, generally, a team specific workflow. One that I don't
see in the wild too frequently. We're a heavy Mercurial shop and many of
our clients also make heavy use of hg and it's quite rare we see this
bookmark workflow revolving around '@'.

Re: [PATCH core-go v5] Add support for mail setups that don't support TLS or Auth 7 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 11/17, Peter Sanchez wrote:
>The go-smtp docs says to not use plain instead of login

Sigh. s/not //

Re: [PATCH] add flag to specify base path to themes 9 months ago

From Peter Sanchez to ~migadu/alps-devel

On 09/09, Simon Ser wrote:
>You mean that the argument type is missing? That's valid Go, if the
>type is omitted, it takes the one from the next argument.

Oh, neat. I honestly didn't know that! Sorry for the confusion Alex.

Peter

Re: [PATCH] add flag to specify base path to themes 9 months ago

From Peter Sanchez to ~migadu/alps-devel

I believe there are a couple of small issues with this patch. See below.

On 09/09, Alex McGrath wrote:
>---
>-func loadTheme(name string, base *template.Template) (*template.Template, error) {
>+func loadTheme(themesPath, name string, base *template.Template) (*template.Template, error) {

I believe this should be `themesPath string` - it's missing it's type
cast.

>-func newRenderer(logger echo.Logger, defaultTheme string) *renderer {
>+func newRenderer(logger echo.Logger, themesPath, defaultTheme string) *renderer {

Same as above.

Re: hacking guide? 1 year, 7 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 11/13, Justin Abrahms wrote:
>How do people develop this software? Based on some mailing list posts
>I read, many of the standard tools I know of from python aren't
>supported (pip, virtualenvs[2]) and things are expected to be installed
>into system directories like /usr. Is that what people are doing
>locally? Are you doing this through virtualization or just directly on
>your system?

I don't have any issues not installing to /usr in my dev setup on my
laptop. Here's how I do it:

I set a custom PYTHONPATH variable where I symlink modules I hack on
locally:

Re: syntax highlighting css 1 year, 9 months ago

From Peter Sanchez to ~sircmpwn/sr.ht-dev

On 09/23, Kurt H Maier wrote:
>I have been unable to locate the source code for whatever is generating
>the !important tags.  Can someone give me some advice on that?

Probably should start here:

https://git.sr.ht/~sircmpwn/core.sr.ht/tree/master/srht/scss

Peter