[-] bahmanm@lemmy.ml 19 points 8 months ago

Good question!

IMO a good way to help a FOSS maintainer is to actually use the software (esp pre-release) and report bugs instead of working around them. Besides helping the project quality, I'd find it very heart-warming to receive feedback from users; it means people out there are actually not only using the software but care enough for it to take their time, report bugs and test patches.

31
submitted 8 months ago by bahmanm@lemmy.ml to c/lemmy@lemmy.ml

lemmy-synapse is a light-weight observability and monitoring stack for Lemmy servers.


Using Prometheus and Grafana, it allows the admins to visualise and query the stats of their instance. v1.0.0 comes out of the box with 3 detailed dashboards:

  • Host stats (CPU, RAM, disk, network, ...)
  • PostgreSQL stats (connections, locks, transations, queries, ...)
  • Docker stats (container CPU, RAM, disk, network, OOM signals, ...)

It runs as Docker compose cluster alongside the Lemmy cluster and does not require any changes to it in most cases. Uninstalling lemmy-synapse is as easy as tearing down its cluster and deleting its installation directory.


Got questions/feedback? Pray drop a line:

1
submitted 8 months ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

As an instance admin, would you be interested in receiving alerts in case lemmy-meter detects your instance's health has deteriorated?

The alerts could be sent to any combination of

  • a Matrix chat (private or channel)
  • a Discord server
  • an e-mail address

For example, you could receive an alert if the landing page hasn't been loading for the past 5 minutes.


The details of alerting levels and the conditions that'd trigger them will be ironed out later. At this stage I'd mostly would like to know if there's interest in this feature in the first place before getting to the implementation.


Follow up on https://github.com/bahmanm/lemmy-meter/issues/71

8
submitted 8 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

cross-posted from: https://lemmy.ml/post/6863402

Fed up w/ my ad-hoc scripts to display the targets and variables in a makefile(s), I've decided to write a reusable piece of code to do that: https://github.com/bahmanm/bmakelib/issues/81


The first step toward that would be to understand the common commenting styles. So far I have identified 4 patterns in the wild which you can find below.

Are there any style guides/conventions around this topic? Any references to well-written makefiles I can get inspiration from?


A

VAR1 = foo   ## short one-liner comment
my-target:   ## short one-liner comment 
	…

B

# longer comment which 
# may span
# several lines
VAR1 = foo

## comments can be prefixed w/ more than # 
## lorem ipsum dolor
my-target: 
	…

C

#####
# a comment block which is marked w/ several #s on
# an otherwise blank line
#####
VAR1 = foo

D

#####
#>    # heading 1
#     This is a variation to have markdown comments
#     inside makefile comments.
#
#     ## It's a made-up style!  
#     I came up w/ this style and used it to document `bmakelib`.
#     For example: https://is.gd/QtiqyA (opens github)
#<
#####
VAR1 = foo
1
submitted 8 months ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

Fed up w/ my ad-hoc scripts to display the targets and variables in a makefile(s), I've decided to write a reusable piece of code to do that: https://github.com/bahmanm/bmakelib/issues/81


The first step toward that would be to understand the common commenting styles. So far I have identified 4 patterns in the wild which you can find below.

Are there any style guides/conventions around this topic? Any references to well-written makefiles I can get inspiration from?


A

VAR1 = foo   ## short one-liner comment
my-target:   ## short one-liner comment 
	…

B

# longer comment which 
# may span
# several lines
VAR1 = foo

## comments can be prefixed w/ more than # 
## lorem ipsum dolor
my-target: 
	…

C

#####
# a comment block which is marked w/ several #s on
# an otherwise blank line
#####
VAR1 = foo

D

#####
#>    # heading 1
#     This is a variation to have markdown comments
#     inside makefile comments.
#
#     ## It's a made-up style!  
#     I came up w/ this style and used it to document `bmakelib`.
#     For example: https://is.gd/QtiqyA (opens github)
#<
#####
VAR1 = foo
12
submitted 8 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

cross-posted from: https://lemmy.ml/post/6856563

When writing a (GNU) Makefile, there are times when you need a particular target(s) to be run before anything else. That can be for example to check the environment, ensure variables are set or prepare a particular directory layout.

... take advantage of GNU Make's mechanism of includeing and makeing makefiles which is described in details in the manual:

1
submitted 8 months ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

When writing a (GNU) Makefile, there are times when you need a particular target(s) to be run before anything else. That can be for example to check the environment, ensure variables are set or prepare a particular directory layout.

... take advantage of GNU Make's mechanism of includeing and makeing makefiles which is described in details in the manual:

14
submitted 9 months ago by bahmanm@lemmy.ml to c/programming@lemmy.ml

I just stumbled upon a collection of bash completions which can be quite handy: https://github.com/perlpunk/shell-completions

I tried mojo, cpan and pip completions in a sandbox and they worked like a charm!

The only question I've got is, has anyone ever done a security audit of the repository? Anyone has taken the time to look at the code? I could try auditing but I'm not even sure what to look for.

I feel quite wary of letting an unknown source access to my bash session and what I type.

1
submitted 9 months ago by bahmanm@lemmy.ml to c/makefile@lemmy.ml

I'm trying to gather requirements wrt a potential bmakelib feature linked in the post.

I'd appreciate your feedback around:

  • What are the conventions you follow to document your Makefiles?
  • How/where do you usually declare variables and how do you document them?

Please take a second to share your thoughts on the issue or simply reply to this post if you'd prefer 🙏

1
submitted 9 months ago by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

With most of the initial tasks done, I think 🌎 lemmy-meter.info is in a good place now.

I just tagged v1.0.0-beta on the repository and will be focused mainly on polishing things and fixing potential bugs in the coming days before the release of v1.0.0.

In the meantime, I'd love to know about your experience using lemmy-meter and any feedback/ideas you may have about the current version or any future versions.

Thanks in adavnce 🙏

2
submitted 9 months ago by bahmanm@lemmy.ml to c/chess@lemmy.ml

I'm interested in registering for the tournament but I've got no clue as to where to begin? Where can I find the list of teams? How can I request to join a team?

I'd appreciate any help/hint 🙏

3

Cross-posted from https://lemmy.ml/post/5719058


I've been working on a simple opt-in solution, primarily for Lemmy end users like me (but also helpful for admins), to easily check the status/health of their favourite instance.

🌎 lemmy-meter.info

You can find the details of the implementation in lemmy-meter github repo.


❓ @admins: would you be interested in adding your instance to lemmy-meter?

You don't need to do anything except confirming - I'll handle the rest. It should only take a few minutes for your instance to show up in lemmy-meter.

Out of the box it will send only 4 HTTP GET requests per minute to your instance. However that is totally configurable if it sounds too much or too little.


1
submitted 9 months ago* (last edited 9 months ago) by bahmanm@lemmy.ml to c/lemmy_meter@lemmy.ml

💪 lemmy-meter aspires to be a one-stop webapp for Lemmy end-users (and hopefully admins), to check the status of their favourite instances.


💡 The main idea is to provide the health check information in a opt-in way that is easy consume at a first glance (simple gauges) while offering users and power users more details in case they are interested.


lemmy-meter is NOT affiliated w/ the Lemmy project.


𝜷 Currently, lemmy-meter is in the beta stage while I'm working on proper documentation and mobile-friendly design.


lemmy-meter is licensed under GPLv3 and is available on github.

[-] bahmanm@lemmy.ml 14 points 9 months ago

Thanks! So much for my reading skills/attention span 😂

[-] bahmanm@lemmy.ml 15 points 10 months ago

😆Can someone make a similar one for bluetooth devices too, pretty please?

[-] bahmanm@lemmy.ml 12 points 10 months ago

I agree w/ you RE posts looking horrible 👍

Though I'd say for one-liners like this, it's mostly OK. It gets really messy when folks post more complex posts and mention and tag a bunch of times.

[-] bahmanm@lemmy.ml 21 points 10 months ago

Tell me something I don't know already 😂 The challenge is helping non-techies understand why they should wean themselves off of FB 🤷‍♂️

[-] bahmanm@lemmy.ml 13 points 11 months ago

So I can just boost the automated post in Mastodon instead of copy-pasting everything over.

Hopefully it didn't clutter the post.

[-] bahmanm@lemmy.ml 12 points 11 months ago

Given I was recently involved in minimising the impact of Lightbend's similar move earlier this year, AFAIU it means their products will be conditionally open source. They'll be free to use for non-commercial use but you'd need to pay for anything else.

[-] bahmanm@lemmy.ml 16 points 11 months ago
[-] bahmanm@lemmy.ml 14 points 11 months ago* (last edited 11 months ago)

Hopefully they pull it off for real and it will not get bogged down by bureaucracy and red tapes.

[-] bahmanm@lemmy.ml 12 points 11 months ago

People like me, who actually learned GIMP before PS, obviously didn’t go in with the same bias and therefore have a much better grasp on it.

Speaking for myself, I can say that's true. To the point that even if I've got access to both, my default would be GIMP.

[-] bahmanm@lemmy.ml 16 points 1 year ago

Where there's money, there's war 😬

--

"Can't you see,

It all makes perfect sense,

Expressed in dollars and cents, pennies, shillings and pence.

[-] bahmanm@lemmy.ml 18 points 1 year ago

I don't know. Though, to my mind, Firefox has been all about tight defaults for everyone paired with a not-so-obvious opt-out for those who really need it.

That said I do understand the concern here. The page about quarantined domains doesn't provide much details and it's quite vague.

view more: ‹ prev next ›

bahmanm

joined 1 year ago
MODERATOR OF