~fluix

Somewhere on the internet...

https://fluix.one

~fluix/public-inbox

Last active 6 months ago
View more

Recent activity

Proposal to add command parameters an hour ago

From Steven Guikal to ~arivigo/scalc-devel

I think it would be nice to add parameters to commands to allow some
additional functionality. For example, :d could have a parameter for how
many elements to drop, the WIP :s command could be used to limit how
many elements are printed, and (maybe) the :swp command could allow
specifying two indices to swap. These would be optional and have
(the currennt) functionalities as defaults.

The alternative is a more complex command framework that allows
repeating commands many times, but that adds complexity for what I think
is unnecessary extensibility.

Let me know what you think.

[PATCH] Add command to print contents of stack an hour ago

From Steven Guikal to ~arivigo/scalc-devel

Fixes #18
---
 Makefile |  4 ++--
 scalc.1  |  5 ++++-
 scalc.c  |  9 ++-------
 stack.c  | 16 +++++++++++++++-
 stack.h  |  1 +
 util.c   |  9 +++++++++
 util.h   |  1 +
 7 files changed, 34 insertions(+), 11 deletions(-)
 create mode 100644 util.c
 create mode 100644 util.h

diff --git a/Makefile b/Makefile
[message trimmed]

Re: [PATCH scalc] Separate LDFLAGS and LIBS a day ago

From Steven Guikal to ~arivigo/scalc-devel

On Sun Jun 13, 2021 at 5:57 AM EDT, Ariadna Vigo wrote:
> Thank for your patch. Very informative indeed! I've applied it already.

Thanks!

> This seems important enough for packaging purposes as per releasing
> scalc 0.2.1 with this patch included.

It's helpful, but for now I've just used `sed` to add on to the line in
config.mk before `make install`ing. See the AUR package[1] if you're
interested. I'll update it to 0.2.1 when that's released!

[1]: https://aur.archlinux.org/packages/scalc/

[PATCH scalc] Separate LDFLAGS and LIBS a day ago

From Steven Guikal to ~arivigo/scalc-devel

---
Paraphrasing from a conversation with Eli Schwartz:

The purpose of LDFLAGS is to allow users and packagers to modify
non-critical flags when compiling. LIBS, on the other hand, are required
for compilation.

 Makefile  | 2 +-
 config.mk | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 594116e..a07a21a 100644
--- a/Makefile
[message trimmed]

Re: Differences between monthly and annual payments a month ago

From Steven Guikal to ~sircmpwn/sr.ht-discuss

I'm not affiliated with Sourcehut, but I've used Stripe for some work.                                                                        
With a basic setup, Stripe takes $0.30 + 2.9%. There are some caveats
with international cards and alike, but generally that leads to the
following:

Monthly: $2.00 -> $1.64/m = $19.68/y
Yearly: $20.00 -> $19.12/y

Calculation: <amount>*(1-0.029)-0.3=<net>

Re: New SSH key types a month ago

From Steven Guikal to ~sircmpwn/sr.ht-discuss

Hey,

Support for this landed[1] a bit ago and it's just been updated on
meta.sr.ht to support the new key types.

[1]: https://git.sr.ht/~sircmpwn/sr.ht-apkbuilds/commit/35b9ca70b87adfd1feb18f27724f0f2925dd9dee

Thanks,
Steven

[PATCH sr.ht-apkbuilds] py3-sshpubkeys: upgrade to 3.3.1 a month ago

From Steven Guikal to ~sircmpwn/sr.ht-packages

This should allow for FIDO/U2F ssh keys of various types.

Also, it seems there was a typo in the dependencies referencing
py3-crypto when py3-cryptography is what is needed[1].

[1]: https://github.com/ojarva/python-sshpubkeys/blob/c81fbf0668c58a7d5518772127b0ad2aeda79076/setup.py#L36

---

I tested this by installing the old version of this package, confirming
that SSHKey(<key>).bits being nonexistant, then upgrading and confirming
that it was a valid integer (256 for my specific test of an
sk-ssh-ed25519@openssh.com key). The hash_md5() function of the SSHKey
also yielded adequate results for what I expect the code here[2] to be
[message trimmed]

[PATCH useplaintext.email] Remove extra space and use proper arrow character a month ago

From Steven Guikal to ~sircmpwn/public-inbox

---
 index.html | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

diff --git a/index.html b/index.html
index 76861a2..d40d4db 100644
--- a/index.html
+++ b/index.html
@@ -391,12 +391,12 @@
        <span class="red">Supports bottom posting</span>
    </div>
    <ol>
      <li> Click the gear icon on the top right</li>
      <li> Click "See all Outlook settings"</li>
[message trimmed]

[PATCH sourcehut.org 2/2] Add more consistent padding throughout 4 months ago

From Steven Guikal to ~sircmpwn/sr.ht-dev

 - Mainly 2rem vertcial padding between front-page elements
 - Match blog header width to content and make it consistent across
   pages
---
 assets/main.scss | 22 ++++++++++------------
 1 file changed, 10 insertions(+), 12 deletions(-)

diff --git a/assets/main.scss b/assets/main.scss
index b15f63f..2aeaf44 100644
--- a/assets/main.scss
+++ b/assets/main.scss
@@ -43,7 +43,7 @@ main {
}

[message trimmed]

[PATCH sourcehut.org 1/2] Bold and darken service headers 4 months ago

From Steven Guikal to ~sircmpwn/sr.ht-dev

Old index: https://fluix.dev/srht/main-old.png
New index: https://fluix.dev/srht/main.png
Old blog: https://fluix.dev/srht/blog-old.png
New blog: https://fluix.dev/srht/blog.png

---
 assets/main.scss | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/assets/main.scss b/assets/main.scss
index 6ad0397..b15f63f 100644
--- a/assets/main.scss
+++ b/assets/main.scss
@@ -44,6 +44,18 @@ main {
[message trimmed]