summaryrefslogtreecommitdiff
path: root/about/showcase.gmi.tpl
diff options
context:
space:
mode:
Diffstat (limited to 'about/showcase.gmi.tpl')
-rw-r--r--about/showcase.gmi.tpl1175
1 files changed, 652 insertions, 523 deletions
diff --git a/about/showcase.gmi.tpl b/about/showcase.gmi.tpl
index fcbfa0bc..799d86f0 100644
--- a/about/showcase.gmi.tpl
+++ b/about/showcase.gmi.tpl
@@ -1,6 +1,6 @@
# Project Showcase
-Generated on: 2025-07-12
+Generated on: 2025-07-19
This page showcases my side projects, providing an overview of what each project does, its technical implementation, and key metrics. Each project summary includes information about the programming languages used, development activity, and licensing. The projects are ordered by recent activity, with the most actively maintained projects listed first.
@@ -8,29 +8,81 @@ This page showcases my side projects, providing an overview of what each project
## Overall Statistics
-* ๐Ÿ“ฆ Total Projects: 55
-* ๐Ÿ“Š Total Commits: 10,446
-* ๐Ÿ“ˆ Total Lines of Code: 211,600
-* ๐Ÿ“„ Total Lines of Documentation: 21,802
-* ๐Ÿ’ป Languages: Go (20.2%), Java (19.1%), C++ (17.6%), C/C++ (9.9%), Perl (8.1%), C (7.1%), Shell (6.9%), Config (2.2%), HTML (2.1%), Ruby (1.3%), HCL (1.3%), Make (0.9%), Python (0.8%), CSS (0.7%), Raku (0.6%), JSON (0.4%), XML (0.3%), Haskell (0.3%), YAML (0.2%), TOML (0.1%)
-* ๐Ÿ“š Documentation: Text (52.5%), Markdown (45.2%), LaTeX (2.3%)
-* ๐ŸŽต Vibe-Coded Projects: 2 out of 55 (3.6%)
-* ๐Ÿค– AI-Assisted Projects (including vibe-coded): 7 out of 55 (12.7% AI-assisted, 87.3% human-only)
-* ๐Ÿš€ Release Status: 33 released, 22 experimental (60.0% with releases, 40.0% experimental)
+* ๐Ÿ“ฆ Total Projects: 56
+* ๐Ÿ“Š Total Commits: 10,528
+* ๐Ÿ“ˆ Total Lines of Code: 202,691
+* ๐Ÿ“„ Total Lines of Documentation: 236,370
+* ๐Ÿ’ป Languages: Go (31.4%), Java (20.0%), C (9.5%), C++ (8.7%), Perl (7.9%), Shell (6.4%), C/C++ (6.0%), HTML (1.8%), Config (1.8%), Ruby (1.4%), HCL (1.4%), Python (0.8%), Make (0.8%), Raku (0.4%), JSON (0.4%), CSS (0.4%), XML (0.3%), Haskell (0.3%), YAML (0.2%), TOML (0.1%)
+* ๐Ÿ“š Documentation: Text (94.3%), Markdown (5.5%), LaTeX (0.2%)
+* ๐ŸŽต Vibe-Coded Projects: 3 out of 56 (5.4%)
+* ๐Ÿค– AI-Assisted Projects (including vibe-coded): 8 out of 56 (14.3% AI-assisted, 85.7% human-only)
+* ๐Ÿš€ Release Status: 34 released, 22 experimental (60.7% with releases, 39.3% experimental)
## Projects
+### totalrecall
+
+* ๐Ÿ’ป Languages: Go (99.8%), YAML (0.2%)
+* ๐Ÿ“š Documentation: Markdown (92.7%), Text (7.3%)
+* ๐Ÿ“Š Commits: 42
+* ๐Ÿ“ˆ Lines of Code: 7418
+* ๐Ÿ“„ Lines of Documentation: 438
+* ๐Ÿ“… Development Period: 2025-07-14 to 2025-07-19
+* ๐Ÿ”ฅ Recent Activity: 2.0 days (avg. age of last 42 commits)
+* โš–๏ธ License: MIT
+* ๐Ÿท๏ธ Latest Release: v0.5.0 (2025-07-19)
+* ๐ŸŽต Vibe-Coded: This project has been vibe coded
+
+
+**totalrecall** is a Bulgarian language learning tool that generates comprehensive Anki flashcard materials from Bulgarian words. It creates high-quality audio pronunciations using OpenAI TTS, AI-generated contextual images via DALL-E, and automatic translations, making it easier for learners to memorize Bulgarian vocabulary through visual and auditory associations. The tool is particularly useful for language learners who want to create professional-quality flashcards with authentic Bulgarian pronunciation and memorable visual contexts without manually sourcing audio and images.
+
+The project is implemented in Go with a modular architecture featuring both CLI and GUI interfaces. It leverages OpenAI's APIs for audio generation (11 available voices) and image creation, includes audio caching to minimize API costs, and supports batch processing from text files. The tool outputs Anki-compatible packages (.apkg format) or CSV files with all media included, following a clean package structure with separate modules for audio generation, image processing, Anki formatting, and configuration management using industry-standard libraries like Cobra for CLI and Viper for configuration.
+
+=> https://codeberg.org/snonux/totalrecall View on Codeberg
+=> https://github.com/snonux/totalrecall View on GitHub
+
+Go from `internal/gui/generator.go`:
+
+```AUTO
+func (a *Application) saveAudioAttribution(word, audioFile, voice string, speed
+ float64) error {
+ attribution := fmt.Sprintf("Audio generated by OpenAI TTS\n\n")
+ attribution += fmt.Sprintf("Bulgarian word: %s\n", word)
+ attribution += fmt.Sprintf("Model: %s\n", a.audioConfig.OpenAIModel)
+ attribution += fmt.Sprintf("Voice: %s\n", voice)
+ attribution += fmt.Sprintf("Speed: %.2f\n", speed)
+
+ if a.audioConfig.OpenAIInstruction != "" {
+ attribution += fmt.Sprintf("\nVoice instructions:\n%s\n",
+ a.audioConfig.OpenAIInstruction)
+ }
+
+ attribution += fmt.Sprintf("\nGenerated at: %s\n", time.Now().Format(
+ "2006-01-02 15:04:05"))
+
+ attrPath := strings.TrimSuffix(audioFile, filepath.Ext(audioFile)) +
+ "_attribution.txt"
+ if err := os.WriteFile(attrPath, []byte(attribution), 0644); err != nil {
+ return fmt.Errorf("failed to write audio attribution file: %w", err)
+ }
+
+ return nil
+}
+```
+
+---
+
### gitsyncer
-* ๐Ÿ’ป Languages: Go (89.5%), Shell (8.9%), YAML (1.1%), JSON (0.4%)
+* ๐Ÿ’ป Languages: Go (90.3%), Shell (8.3%), YAML (1.0%), JSON (0.4%)
* ๐Ÿ“š Documentation: Markdown (100.0%)
-* ๐Ÿ“Š Commits: 76
-* ๐Ÿ“ˆ Lines of Code: 8340
-* ๐Ÿ“„ Lines of Documentation: 2363
-* ๐Ÿ“… Development Period: 2025-06-23 to 2025-07-12
-* ๐Ÿ”ฅ Recent Activity: 2.5 days (avg. age of last 42 commits)
+* ๐Ÿ“Š Commits: 88
+* ๐Ÿ“ˆ Lines of Code: 8976
+* ๐Ÿ“„ Lines of Documentation: 2475
+* ๐Ÿ“… Development Period: 2025-06-23 to 2025-07-13
+* ๐Ÿ”ฅ Recent Activity: 7.9 days (avg. age of last 42 commits)
* โš–๏ธ License: BSD-2-Clause
-* ๐Ÿท๏ธ Latest Release: v0.5.0 (2025-07-09)
+* ๐Ÿท๏ธ Latest Release: v0.7.2 (2025-07-13)
* ๐ŸŽต Vibe-Coded: This project has been vibe coded
@@ -41,14 +93,97 @@ The tool is implemented in Go with a clean architecture that supports both indiv
=> https://codeberg.org/snonux/gitsyncer View on Codeberg
=> https://github.com/snonux/gitsyncer View on GitHub
-Go from `internal/showcase/images.go`:
+Go from `internal/showcase/showcase.go`:
+
+```AUTO
+func New(cfg *config.Config, workDir string) *Generator {
+ return &Generator{
+ config: cfg,
+ workDir: workDir,
+ }
+}
+```
+
+---
+
+### dtail
+
+* ๐Ÿ’ป Languages: Go (91.0%), Shell (4.1%), JSON (2.1%), C (1.4%), Make (0.9%), C/C++ (0.2%), Config (0.1%)
+* ๐Ÿ“š Documentation: Text (98.3%), Markdown (1.7%)
+* ๐Ÿ“Š Commits: 1049
+* ๐Ÿ“ˆ Lines of Code: 27726
+* ๐Ÿ“„ Lines of Documentation: 220214
+* ๐Ÿ“… Development Period: 2020-01-09 to 2025-07-04
+* ๐Ÿ”ฅ Recent Activity: 17.0 days (avg. age of last 42 commits)
+* โš–๏ธ License: Apache-2.0
+* ๐Ÿท๏ธ Latest Release: v4.2.0 (2023-06-21)
+* ๐Ÿค– AI-Assisted: This project was partially created with the help of generative AI
+
+
+=> showcase/dtail/image-1.png dtail screenshot
+
+DTail is a distributed log processing system written in Go that allows DevOps engineers to tail, cat, and grep log files across thousands of servers concurrently. It provides secure access through SSH authentication and respects UNIX file system permissions, making it ideal for enterprise environments where log analysis needs to scale horizontally across large server fleets. The tool supports advanced features like compressed file handling (gzip/zstd) and distributed MapReduce aggregations for complex log analytics.
+
+=> showcase/dtail/image-2.gif dtail screenshot
+
+The system uses a client-server architecture where dtail servers run on target machines (listening on port 2222) and clients connect to multiple servers simultaneously. It can also operate in serverless mode for local operations. The implementation leverages SSH for secure communication, includes sophisticated connection throttling and resource management, and provides specialized tools (dcat, dgrep, dmap) for different log processing tasks. The MapReduce functionality supports SQL-like queries with server-side local aggregation and client-side final aggregation, enabling powerful distributed analytics across log data.
+
+=> https://codeberg.org/snonux/dtail View on Codeberg
+=> https://github.com/snonux/dtail View on GitHub
+
+Go from `cmd/dcat/main.go`:
+
+```AUTO
+flag.StringVar(&args.SSHPrivateKeyFilePath, "key", "", "Path to private key")
+flag.StringVar(&args.ServersStr, "servers", "", "Remote servers to connect")
+flag.StringVar(&args.UserName, "user", userName, "Your system user name")
+flag.StringVar(&args.What, "files", "", "File(s) to read")
+flag.StringVar(&pprof, "pprof", "", "Start PProf server this address")
+
+profiling.AddFlags(&profileFlags)
+
+flag.Parse()
+config.Setup(source.Client, &args, flag.Args())
+
+if displayVersion {
+ version.PrintAndExit()
+}
+```
+
+---
+
+### rexfiles
+
+* ๐Ÿ’ป Languages: Perl (38.3%), Shell (30.6%), Config (8.0%), CSS (7.9%), TOML (6.9%), Ruby (5.8%), Lua (1.7%), JSON (0.7%), INI (0.1%)
+* ๐Ÿ“š Documentation: Text (97.3%), Markdown (2.7%)
+* ๐Ÿ“Š Commits: 880
+* ๐Ÿ“ˆ Lines of Code: 4142
+* ๐Ÿ“„ Lines of Documentation: 854
+* ๐Ÿ“… Development Period: 2021-12-28 to 2025-07-16
+* ๐Ÿ”ฅ Recent Activity: 22.0 days (avg. age of last 42 commits)
+* โš–๏ธ License: No license found
+* ๐Ÿงช Status: Experimental (no releases yet)
+
+
+Based on my analysis of the codebase, **rexfiles** is a comprehensive infrastructure automation and configuration management project built with the Rex framework (a Perl-based alternative to Ansible, Puppet, or Chef). The project provides structured automation for managing multiple aspects of a personal infrastructure, including dotfiles, server configurations, and application deployments.
+
+The project consists of three main components: **dotfiles** management for personal development environment configuration (bash, fish shell, helix editor, tmux, etc.), **frontends** for managing production OpenBSD servers with services like DNS (nsd), web servers (httpd), mail (OpenSMTPD), SSL certificates (ACME), and monitoring systems, and **babylon5** containing Docker container startup scripts for self-hosted applications. The implementation leverages Rex's declarative syntax to define tasks for package installation, file management, service configuration, and system state management, with templates for configuration files and support for multiple operating systems (OpenBSD, FreeBSD, Fedora Linux, Termux). This approach provides a KISS (Keep It Simple, Stupid) alternative to more complex configuration management tools while maintaining the ability to manage both local development environments and production infrastructure consistently.
+
+=> https://codeberg.org/snonux/rexfiles View on Codeberg
+=> https://github.com/snonux/rexfiles View on GitHub
+
+Perl from `frontends/scripts/foostats.pl`:
```AUTO
-func isGitHostedImage(url string) bool {
- return strings.Contains(url, "github.com") ||
- strings.Contains(url, "githubusercontent.com") ||
- strings.Contains(url, "codeberg.org") ||
- strings.Contains(url, "codeberg.page")
+sub write ( $path, $content ) {
+ open my $fh, '>', "$path.tmp"
+ or die "\nCannot open file: $!";
+ print $fh $content;
+ close $fh;
+
+ rename
+ "$path.tmp",
+ $path;
}
```
@@ -62,7 +197,7 @@ func isGitHostedImage(url string) bool {
* ๐Ÿ“ˆ Lines of Code: 873
* ๐Ÿ“„ Lines of Documentation: 135
* ๐Ÿ“… Development Period: 2025-06-25 to 2025-07-12
-* ๐Ÿ”ฅ Recent Activity: 15.4 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 22.2 days (avg. age of last 42 commits)
* โš–๏ธ License: BSD-2-Clause
* ๐Ÿท๏ธ Latest Release: v0.0.0 (2025-06-29)
* ๐Ÿค– AI-Assisted: This project was partially created with the help of generative AI
@@ -95,7 +230,7 @@ func tick() tea.Cmd {
* ๐Ÿ“ˆ Lines of Code: 6160
* ๐Ÿ“„ Lines of Documentation: 162
* ๐Ÿ“… Development Period: 2025-06-19 to 2025-07-12
-* ๐Ÿ”ฅ Recent Activity: 16.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 22.9 days (avg. age of last 42 commits)
* โš–๏ธ License: BSD-2-Clause
* ๐Ÿท๏ธ Latest Release: v0.9.2 (2025-07-02)
* ๐ŸŽต Vibe-Coded: This project has been vibe coded
@@ -112,46 +247,27 @@ The implementation follows a clean architecture with clear separation of concern
=> https://codeberg.org/snonux/tasksamurai View on Codeberg
=> https://github.com/snonux/tasksamurai View on GitHub
-Go from `internal/version.go`:
+Go from `internal/task/task.go`:
```AUTO
-const Version = "0.9.2"
-```
-
----
-
-### rexfiles
-
-* ๐Ÿ’ป Languages: Perl (38.2%), Shell (30.6%), Config (8.0%), CSS (7.9%), TOML (7.0%), Ruby (5.7%), Lua (1.7%), JSON (0.7%), INI (0.1%)
-* ๐Ÿ“š Documentation: Text (97.3%), Markdown (2.7%)
-* ๐Ÿ“Š Commits: 876
-* ๐Ÿ“ˆ Lines of Code: 4123
-* ๐Ÿ“„ Lines of Documentation: 854
-* ๐Ÿ“… Development Period: 2021-12-28 to 2025-07-12
-* ๐Ÿ”ฅ Recent Activity: 18.8 days (avg. age of last 42 commits)
-* โš–๏ธ License: No license found
-* ๐Ÿงช Status: Experimental (no releases yet)
-
-
-Based on my analysis of the codebase, **rexfiles** is a comprehensive infrastructure automation and configuration management project built with the Rex framework (a Perl-based alternative to Ansible, Puppet, or Chef). The project provides structured automation for managing multiple aspects of a personal infrastructure, including dotfiles, server configurations, and application deployments.
-
-The project consists of three main components: **dotfiles** management for personal development environment configuration (bash, fish shell, helix editor, tmux, etc.), **frontends** for managing production OpenBSD servers with services like DNS (nsd), web servers (httpd), mail (OpenSMTPD), SSL certificates (ACME), and monitoring systems, and **babylon5** containing Docker container startup scripts for self-hosted applications. The implementation leverages Rex's declarative syntax to define tasks for package installation, file management, service configuration, and system state management, with templates for configuration files and support for multiple operating systems (OpenBSD, FreeBSD, Fedora Linux, Termux). This approach provides a KISS (Keep It Simple, Stupid) alternative to more complex configuration management tools while maintaining the ability to manage both local development environments and production infrastructure consistently.
-
-=> https://codeberg.org/snonux/rexfiles View on Codeberg
-=> https://github.com/snonux/rexfiles View on GitHub
-
-Perl from `frontends/scripts/foostats.pl`:
+func SetDebugLog(path string) error {
+ if debugFile != nil {
+ debugFile.Close()
+ debugFile = nil
+ debugWriter = nil
+ }
-```AUTO
-sub write ( $path, $content ) {
- open my $fh, '>', "$path.tmp"
- or die "\nCannot open file: $!";
- print $fh $content;
- close $fh;
+ if path == "" {
+ return nil
+ }
- rename
- "$path.tmp",
- $path;
+ f, err := os.OpenFile(path, os.O_CREATE|os.O_WRONLY|os.O_APPEND, 0o644)
+ if err != nil {
+ return err
+ }
+ debugFile = f
+ debugWriter = f
+ return nil
}
```
@@ -159,13 +275,13 @@ sub write ( $path, $content ) {
### ior
-* ๐Ÿ’ป Languages: Go (81.0%), Raku (11.5%), C (4.4%), Make (1.7%), C/C++ (1.5%)
+* ๐Ÿ’ป Languages: Go (50.2%), C (43.4%), Raku (4.4%), Make (1.1%), C/C++ (0.9%)
* ๐Ÿ“š Documentation: Text (63.6%), Markdown (36.4%)
-* ๐Ÿ“Š Commits: 330
-* ๐Ÿ“ˆ Lines of Code: 7911
+* ๐Ÿ“Š Commits: 331
+* ๐Ÿ“ˆ Lines of Code: 12762
* ๐Ÿ“„ Lines of Documentation: 742
-* ๐Ÿ“… Development Period: 2024-01-18 to 2025-07-12
-* ๐Ÿ”ฅ Recent Activity: 56.3 days (avg. age of last 42 commits)
+* ๐Ÿ“… Development Period: 2024-01-18 to 2025-07-14
+* ๐Ÿ”ฅ Recent Activity: 60.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
* ๐Ÿค– AI-Assisted: This project was partially created with the help of generative AI
@@ -184,19 +300,32 @@ The architecture combines kernel-level tracing with user-space analysis: eBPF pr
=> https://codeberg.org/snonux/ior View on Codeberg
=> https://github.com/snonux/ior View on GitHub
-Go from `internal/file/file.go`:
+Go from `tools/filewriter/main.go`:
```AUTO
-func NewFd(fd int32, name []byte, flags int32) FdFile {
- f := FdFile{
- fd: fd,
- name: types.StringValue(name),
- flags: Flags(flags),
+func main() {
+ file, err := os.OpenFile("output.txt", os.O_APPEND|os.O_CREATE|os.O_WRONLY,
+ 0644)
+ if err != nil {
+ panic(err)
}
- if f.flags == -1 {
- panic(fmt.Sprintf("DEBUG with -1 flags: %v", f))
+ defer file.Close()
+
+ data := []byte("A")
+
+ for {
+ _, err := file.Write(data)
+ if err != nil {
+ panic(err)
+ }
+
+ err = file.Sync()
+ if err != nil {
+ panic(err)
+ }
+
+ time.Sleep(3 * time.Second)
}
- return f
}
```
@@ -210,7 +339,7 @@ func NewFd(fd int32, name []byte, flags int32) FdFile {
* ๐Ÿ“ˆ Lines of Code: 396
* ๐Ÿ“„ Lines of Documentation: 24
* ๐Ÿ“… Development Period: 2025-04-18 to 2025-05-11
-* ๐Ÿ”ฅ Recent Activity: 74.9 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 81.7 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v1.0.0 (2025-05-11)
@@ -243,7 +372,7 @@ def initialize(myself)
* ๐Ÿ“ˆ Lines of Code: 25762
* ๐Ÿ“„ Lines of Documentation: 3101
* ๐Ÿ“… Development Period: 2008-05-15 to 2025-06-27
-* ๐Ÿ”ฅ Recent Activity: 88.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 95.1 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
* ๐Ÿค– AI-Assisted: This project was partially created with the help of generative AI
@@ -258,16 +387,14 @@ The project is built on an event-driven architecture with clear component separa
=> https://codeberg.org/snonux/ds-sim View on Codeberg
=> https://github.com/snonux/ds-sim View on GitHub
-Java from `src/main/java/protocols/implementations/VSPingPongProtocol.java`:
+Java from `src/main/java/testing/QuietProtocolTestRunner.java`:
```AUTO
-private int clientCounter;
+private final PrintStream target;
+private final StringBuilder buffer = new StringBuilder();
-private int serverCounter;
-
-public VSPingPongProtocol() {
- super(VSAbstractProtocol.HAS_ON_CLIENT_START);
- setClassname(getClass().toString());
+public FilteredOutputStream(PrintStream target) {
+ this.target = target;
}
```
@@ -281,7 +408,7 @@ public VSPingPongProtocol() {
* ๐Ÿ“ˆ Lines of Code: 33
* ๐Ÿ“„ Lines of Documentation: 3
* ๐Ÿ“… Development Period: 2025-04-03 to 2025-04-03
-* ๐Ÿ”ฅ Recent Activity: 100.9 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 107.7 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -307,14 +434,13 @@ func main() {
* ๐Ÿ’ป Languages: Go (98.6%), YAML (1.1%), JSON (0.2%)
* ๐Ÿ“š Documentation: Markdown (100.0%)
-* ๐Ÿ“Š Commits: 381
+* ๐Ÿ“Š Commits: 382
* ๐Ÿ“ˆ Lines of Code: 3967
-* ๐Ÿ“„ Lines of Documentation: 411
-* ๐Ÿ“… Development Period: 2024-05-04 to 2025-06-12
-* ๐Ÿ”ฅ Recent Activity: 117.8 days (avg. age of last 42 commits)
+* ๐Ÿ“„ Lines of Documentation: 324
+* ๐Ÿ“… Development Period: 2024-05-04 to 2025-07-12
+* ๐Ÿ”ฅ Recent Activity: 120.8 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v1.0.0 (2025-03-04)
-* ๐Ÿค– AI-Assisted: This project was partially created with the help of generative AI
=> showcase/gos/image-1.png gos screenshot
@@ -328,27 +454,56 @@ The tool is architected around a file-based queueing system where posts progress
=> https://codeberg.org/snonux/gos View on Codeberg
=> https://github.com/snonux/gos View on GitHub
-Go from `internal/config/args.go`:
+Go from `internal/platforms/mastodon/mastodon.go`:
```AUTO
-func (a *Args) ParsePlatforms(platformStrs string) error {
- a.Platforms = make(map[string]int)
-
- for _, platformInfo := range strings.Split(platformStrs, ",") {
- parts := strings.Split(platformInfo, ":")
- platformStr := parts[0]
-
- if len(parts) > 1 {
- var err error
- a.Platforms[platformStr], err = strconv.Atoi(parts[1])
- if err != nil {
- return err
- }
- } else {
- colour.Infoln("No message length specified for", platformStr, "so assuming
- 500")
- a.Platforms[platformStr] = 500
- }
+func Post(ctx context.Context, args config.Args, sizeLimit int, en entry.Entry)
+ error {
+ content, _, err := en.ContentWithLimit(sizeLimit)
+ if err != nil {
+ return err
+ }
+ if args.DryRun {
+ colour.Infoln("Not posting", en, "to Mastodon as dry-run enabled")
+ return nil
+ }
+ if content, err = prompt.FileAction("Do you want to post this message to
+ Mastodon?",
+ content, en.Path, prompt.RandomOption); err != nil {
+ return err
+ }
+
+ payload := map[string]string{"status": content}
+ payloadBytes, err := json.Marshal(payload)
+ if err != nil {
+ return fmt.Errorf("failed to marshal payload: %w", err)
+ }
+
+ newCtx, cancel := context.WithTimeout(ctx, mastodonTimeout)
+ defer cancel()
+ req, err := http.NewRequestWithContext(newCtx, "POST",
+ args.Config.MastodonURL, bytes.NewBuffer(payloadBytes))
+ if err != nil {
+ return fmt.Errorf("failed to create request: %w", err)
+ }
+
+ req.Header.Set("Authorization", "Bearer "+args.Config.MastodonAccessToken)
+ req.Header.Set("Content-Type", "application/json")
+
+ client := &http.Client{}
+ resp, err := client.Do(req)
+ if err != nil {
+ return fmt.Errorf("request failed: %w", err)
+ }
+ defer resp.Body.Close()
+ body, err := io.ReadAll(resp.Body)
+ if err != nil {
+ return err
+ }
+
+ if resp.StatusCode != http.StatusOK {
+ return fmt.Errorf("unexpected status code: %d\n%s\n",
+ resp.StatusCode, string(body))
}
return nil
}
@@ -364,7 +519,7 @@ func (a *Args) ParsePlatforms(platformStrs string) error {
* ๐Ÿ“ˆ Lines of Code: 1586
* ๐Ÿ“„ Lines of Documentation: 154
* ๐Ÿ“… Development Period: 2023-01-02 to 2025-07-12
-* ๐Ÿ”ฅ Recent Activity: 121.8 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 128.6 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v0.1.0 (2025-07-12)
@@ -401,7 +556,7 @@ sub write ( $path, $content ) {
* ๐Ÿ“ˆ Lines of Code: 1373
* ๐Ÿ“„ Lines of Documentation: 48
* ๐Ÿ“… Development Period: 2024-12-05 to 2025-02-28
-* ๐Ÿ”ฅ Recent Activity: 141.6 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 148.4 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -413,53 +568,15 @@ The system is implemented with a modular architecture centered around a DSL clas
=> https://codeberg.org/snonux/rcm View on Codeberg
=> https://github.com/snonux/rcm View on GitHub
-Ruby from `lib/dslkeywords/given.rb`:
-
-```AUTO
-def respond_to_missing? = true
-
-def met?
- return false if @conds.key?(:hostname) && Socket.gethostname !=
- @conds[:hostname].to_s
-
- true
-end
-```
-
----
-
-### gemtexter
-
-* ๐Ÿ’ป Languages: Shell (68.1%), CSS (28.7%), Config (1.9%), HTML (1.3%)
-* ๐Ÿ“š Documentation: Text (76.1%), Markdown (23.9%)
-* ๐Ÿ“Š Commits: 465
-* ๐Ÿ“ˆ Lines of Code: 2268
-* ๐Ÿ“„ Lines of Documentation: 1180
-* ๐Ÿ“… Development Period: 2021-05-21 to 2025-07-09
-* ๐Ÿ”ฅ Recent Activity: 204.0 days (avg. age of last 42 commits)
-* โš–๏ธ License: GPL-3.0
-* ๐Ÿท๏ธ Latest Release: 3.0.0 (2024-10-01)
-
-
-**Gemtexter** is a static site generator and blog engine that transforms content written in Gemini Gemtext format into multiple output formats. It's a comprehensive Bash-based tool designed to support the Gemini protocol (a simpler alternative to HTTP) while maintaining compatibility with traditional web technologies. The project converts a single source of Gemtext content into HTML (XHTML 1.0 Transitional), Markdown, and native Gemtext formats, enabling authors to write once and publish across multiple platforms including Gemini capsules, traditional websites, and GitHub/Codeberg pages.
-
-The implementation is built entirely in Bash (version 5.x+) using a modular library approach with separate source files for different functionality (atomfeed, gemfeed, HTML generation, Markdown conversion, templating, etc.). Key features include automatic blog post indexing, Atom feed generation, customizable HTML themes, source code highlighting, Bash-based templating system, and integrated Git workflow management. The architecture separates content directories by format (gemtext/, html/, md/) and includes comprehensive theming support, font embedding, and publishing workflows that can automatically sync content to multiple Git repositories for deployment on various platforms.
-
-=> https://codeberg.org/snonux/gemtexter View on Codeberg
-=> https://github.com/snonux/gemtexter View on GitHub
-
-Shell from `lib/generate.source.sh`:
+Ruby from `lib/dsl.rb`:
```AUTO
-done < <(find "$CONTENT_BASE_DIR/gemtext" -type f -name \*.gmi)
-
-wait
-log INFO "Converted $num_gmi_files Gemtext files"
-
-log VERBOSE "Adding other docs to $*"
-
-while read -r src; do
- num_doc_files=$(( num_doc_files + 1 ))
+def configure(reset: false, &block)
+ RCM::DSL.new(reset) do |rcm|
+ rcm.info('Configuring...')
+ rcm.instance_eval(&block)
+ rcm.evaluate! if rcm.conds_met
+ end
```
---
@@ -472,7 +589,7 @@ while read -r src; do
* ๐Ÿ“ˆ Lines of Code: 917
* ๐Ÿ“„ Lines of Documentation: 33
* ๐Ÿ“… Development Period: 2024-01-20 to 2025-07-06
-* ๐Ÿ”ฅ Recent Activity: 451.6 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 458.4 days (avg. age of last 42 commits)
* โš–๏ธ License: MIT
* ๐Ÿท๏ธ Latest Release: v0.0.3 (2025-07-06)
@@ -543,7 +660,7 @@ func createPreferenceWindow(a fyne.App) fyne.Window {
* ๐Ÿ“ˆ Lines of Code: 12
* ๐Ÿ“„ Lines of Documentation: 3
* ๐Ÿ“… Development Period: 2024-03-24 to 2024-03-24
-* ๐Ÿ”ฅ Recent Activity: 475.4 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 482.2 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -580,7 +697,7 @@ aws: build
* ๐Ÿ“ˆ Lines of Code: 2850
* ๐Ÿ“„ Lines of Documentation: 52
* ๐Ÿ“… Development Period: 2023-08-27 to 2025-04-05
-* ๐Ÿ”ฅ Recent Activity: 505.4 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 512.2 days (avg. age of last 42 commits)
* โš–๏ธ License: MIT
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -592,18 +709,20 @@ The system is designed to host multiple personal services including Anki sync se
=> https://codeberg.org/snonux/terraform View on Codeberg
=> https://github.com/snonux/terraform View on GitHub
-HCL from `org-buetow-base/ecr.tf`:
+HCL from `org-buetow-ecs/bagservice.tf`:
```AUTO
-resource "aws_ecr_repository" "radicale-read" {
- name = "radicale"
+ type = "A"
- tags = {
- Name = "radicale"
+ alias {
+ name =
+ data.terraform_remote_state.elb.outputs.alb_dns_name
+ zone_id = data.terraform_remote_state.elb.outputs.alb_zone_id
+ evaluate_target_health = true
}
}
-resource "aws_iam_policy" "ecr_radicale_read" {
+resource "aws_route53_record" "aaaa_record_bag" {
```
---
@@ -616,7 +735,7 @@ resource "aws_iam_policy" "ecr_radicale_read" {
* ๐Ÿ“ˆ Lines of Code: 1096
* ๐Ÿ“„ Lines of Documentation: 287
* ๐Ÿ“… Development Period: 2023-04-17 to 2025-06-12
-* ๐Ÿ”ฅ Recent Activity: 518.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 525.0 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v1.1.0 (2024-05-03)
* ๐Ÿค– AI-Assisted: This project was partially created with the help of generative AI
@@ -631,32 +750,48 @@ The implementation follows a clean architecture with concurrent check execution,
=> https://codeberg.org/snonux/gogios View on Codeberg
=> https://github.com/snonux/gogios View on GitHub
-Go from `internal/check.go`:
+Go from `internal/state.go`:
```AUTO
-func (c check) run(ctx context.Context, name string) checkResult {
- cmd := exec.CommandContext(ctx, c.Plugin, c.Args...)
+func newState(conf config) (state, error) {
+ s := state{
+ stateFile: fmt.Sprintf("%s/state.json", conf.StateDir),
+ checks: make(map[string]checkState),
+ staleEpoch: time.Now().Unix() - int64(conf.StaleThreshold),
+ }
- var bytes bytes.Buffer
- cmd.Stdout = &bytes
- cmd.Stderr = &bytes
+ if _, err := os.Stat(s.stateFile); err != nil {
+ return s, nil
+ }
- if err := cmd.Run(); err != nil {
- if ctx.Err() == context.DeadlineExceeded {
- return checkResult{name, "Check command timed out", time.Now().Unix(),
- nagiosCritical, false}
- }
+ file, err := os.Open(s.stateFile)
+ if err != nil {
+ return s, err
}
+ defer file.Close()
- parts := strings.Split(bytes.String(), "|")
- output := strings.TrimSpace(parts[0])
+ bytes, err := io.ReadAll(file)
+ if err != nil {
+ return s, err
+ }
- ec := cmd.ProcessState.ExitCode()
- if ec < int(nagiosOk) || ec > int(nagiosUnknown) {
- ec = int(nagiosUnknown)
+ if err := json.Unmarshal(bytes, &s.checks); err != nil {
+ return s, err
}
- return checkResult{name, output, time.Now().Unix(), nagiosCode(ec), false}
+ var obsolete []string
+ for name := range s.checks {
+ if _, ok := conf.Checks[name]; !ok {
+ obsolete = append(obsolete, name)
+ }
+ }
+
+ for _, name := range obsolete {
+ delete(s.checks, name)
+ log.Printf("State of %s is obsolete (removed)", name)
+ }
+
+ return s, nil
}
```
@@ -670,7 +805,7 @@ func (c check) run(ctx context.Context, name string) checkResult {
* ๐Ÿ“ˆ Lines of Code: 32
* ๐Ÿ“„ Lines of Documentation: 3
* ๐Ÿ“… Development Period: 2023-12-31 to 2023-12-31
-* ๐Ÿ”ฅ Recent Activity: 558.9 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 565.7 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -707,7 +842,7 @@ run: build
* ๐Ÿ“ˆ Lines of Code: 29
* ๐Ÿ“„ Lines of Documentation: 3
* ๐Ÿ“… Development Period: 2023-08-13 to 2024-01-01
-* ๐Ÿ”ฅ Recent Activity: 652.2 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 659.0 days (avg. age of last 42 commits)
* โš–๏ธ License: MIT
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -745,7 +880,7 @@ aws:
* ๐Ÿ“ˆ Lines of Code: 1525
* ๐Ÿ“„ Lines of Documentation: 15
* ๐Ÿ“… Development Period: 2023-04-17 to 2023-11-19
-* ๐Ÿ”ฅ Recent Activity: 704.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 711.1 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -757,16 +892,15 @@ The architecture consists of several key components: a quorum manager that handl
=> https://codeberg.org/snonux/gorum View on Codeberg
=> https://github.com/snonux/gorum View on GitHub
-Go from `internal/vote/vote.go`:
+Go from `internal/utils/string.go`:
```AUTO
-func New(conf config.Config, ids ...string) (Vote, error) {
- var v Vote
-
- v.FromID = conf.MyID
- v.IDs = ids
+ "strings"
+)
- return v, nil
+func StripPort(addr string) string {
+ parts := strings.Split(addr, ":")
+ return parts[0]
}
```
@@ -780,7 +914,7 @@ func New(conf config.Config, ids ...string) (Vote, error) {
* ๐Ÿ“ˆ Lines of Code: 312
* ๐Ÿ“„ Lines of Documentation: 416
* ๐Ÿ“… Development Period: 2013-03-22 to 2025-05-18
-* ๐Ÿ”ฅ Recent Activity: 754.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 761.1 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: v1.0.0 (2023-04-29)
@@ -823,7 +957,7 @@ method output-trim(Str \str, UInt \line-limit --> Str) {
* ๐Ÿ“ˆ Lines of Code: 51
* ๐Ÿ“„ Lines of Documentation: 26
* ๐Ÿ“… Development Period: 2022-06-02 to 2024-04-20
-* ๐Ÿ”ฅ Recent Activity: 769.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 775.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -848,58 +982,39 @@ declare -i NUM_PAGES_TO_EXTRACT=42 # This is the answear!
---
-### dtail
+### gemtexter
-* ๐Ÿ’ป Languages: Go (91.1%), JSON (4.1%), C (2.9%), Make (0.6%), C/C++ (0.5%), Config (0.3%), Shell (0.2%), Docker (0.2%)
-* ๐Ÿ“š Documentation: Text (80.4%), Markdown (19.6%)
-* ๐Ÿ“Š Commits: 1049
-* ๐Ÿ“ˆ Lines of Code: 13525
-* ๐Ÿ“„ Lines of Documentation: 5375
-* ๐Ÿ“… Development Period: 2020-01-09 to 2023-10-05
-* ๐Ÿ”ฅ Recent Activity: 781.8 days (avg. age of last 42 commits)
-* โš–๏ธ License: Apache-2.0
-* ๐Ÿท๏ธ Latest Release: v4.2.0 (2023-06-21)
+* ๐Ÿ’ป Languages: Shell (86.6%), CSS (8.3%), Config (3.2%), HTML (1.9%)
+* ๐Ÿ“š Documentation: Text (68.0%), Markdown (32.0%)
+* ๐Ÿ“Š Commits: 465
+* ๐Ÿ“ˆ Lines of Code: 1585
+* ๐Ÿ“„ Lines of Documentation: 778
+* ๐Ÿ“… Development Period: 2021-05-21 to 2023-07-17
+* ๐Ÿ”ฅ Recent Activity: 824.5 days (avg. age of last 42 commits)
+* โš–๏ธ License: GPL-3.0
+* ๐Ÿท๏ธ Latest Release: 3.0.0 (2024-10-01)
โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
-=> showcase/dtail/image-1.png dtail screenshot
-
-DTail is a distributed log processing system written in Go that allows DevOps engineers to tail, cat, and grep log files across thousands of servers concurrently. It provides secure access through SSH authentication and respects UNIX file system permissions, making it ideal for enterprise environments where log analysis needs to scale horizontally across large server fleets. The tool supports advanced features like compressed file handling (gzip/zstd) and distributed MapReduce aggregations for complex log analytics.
-
-=> showcase/dtail/image-2.gif dtail screenshot
+**Gemtexter** is a static site generator and blog engine that transforms content written in Gemini Gemtext format into multiple output formats. It's a comprehensive Bash-based tool designed to support the Gemini protocol (a simpler alternative to HTTP) while maintaining compatibility with traditional web technologies. The project converts a single source of Gemtext content into HTML (XHTML 1.0 Transitional), Markdown, and native Gemtext formats, enabling authors to write once and publish across multiple platforms including Gemini capsules, traditional websites, and GitHub/Codeberg pages.
-The system uses a client-server architecture where dtail servers run on target machines (listening on port 2222) and clients connect to multiple servers simultaneously. It can also operate in serverless mode for local operations. The implementation leverages SSH for secure communication, includes sophisticated connection throttling and resource management, and provides specialized tools (dcat, dgrep, dmap) for different log processing tasks. The MapReduce functionality supports SQL-like queries with server-side local aggregation and client-side final aggregation, enabling powerful distributed analytics across log data.
+The implementation is built entirely in Bash (version 5.x+) using a modular library approach with separate source files for different functionality (atomfeed, gemfeed, HTML generation, Markdown conversion, templating, etc.). Key features include automatic blog post indexing, Atom feed generation, customizable HTML themes, source code highlighting, Bash-based templating system, and integrated Git workflow management. The architecture separates content directories by format (gemtext/, html/, md/) and includes comprehensive theming support, font embedding, and publishing workflows that can automatically sync content to multiple Git repositories for deployment on various platforms.
-=> https://codeberg.org/snonux/dtail View on Codeberg
-=> https://github.com/snonux/dtail View on GitHub
+=> https://codeberg.org/snonux/gemtexter View on Codeberg
+=> https://github.com/snonux/gemtexter View on GitHub
-Go from `internal/io/fs/readfilelcontext.go`:
+Shell from `lib/md.source.sh`:
```AUTO
-func (f *readFile) lContextNotMatched(ctx context.Context, ls *ltxState,
- lines chan<- *line.Line, rawLine *bytes.Buffer) readStatus {
-
- if ls.processAfter && ls.after > 0 {
- ls.after--
- myLine := line.New(rawLine, f.totalLineCount(), 100, f.globID)
-
- select {
- case lines <- myLine:
- case <-ctx.Done():
- return abortReading
- }
-
- } else if ls.processBefore {
- select {
- case ls.beforeBuf <- rawLine:
- default:
- pool.RecycleBytesBuffer(<-ls.beforeBuf)
- ls.beforeBuf <- rawLine
- }
- }
-
- return continueReading
-}
+md::make_img () {
+ local link="$1"; shift
+ local descr="$1"; shift
+
+ if [ -z "$descr" ]; then
+ echo "[![$link]($link)]($link) "
+ else
+ echo "[![$descr]($link \"$descr\")]($link) "
+ fi
```
---
@@ -912,7 +1027,7 @@ func (f *readFile) lContextNotMatched(ctx context.Context, ls *ltxState,
* ๐Ÿ“ˆ Lines of Code: 41
* ๐Ÿ“„ Lines of Documentation: 17
* ๐Ÿ“… Development Period: 2020-01-30 to 2025-04-30
-* ๐Ÿ”ฅ Recent Activity: 1062.6 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 1069.4 days (avg. age of last 42 commits)
* โš–๏ธ License: GPL-3.0
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -924,16 +1039,10 @@ The implementation consists of two main components: `autorotate.sh` monitors the
=> https://codeberg.org/snonux/sway-autorotate View on Codeberg
=> https://github.com/snonux/sway-autorotate View on GitHub
-Shell from `autorotate.sh`:
+Shell from `start.sh`:
```AUTO
-set -euf -o pipefail
-
-declare -r WAYLANDINPUT=(
- '1118:2485:Microsoft_Surface_Keyboard_Touchpad'
- '1267:10780:ELAN9038:00_04F3:2A1C'
-)
-declare -r SCREEN=eDP-1
+nohup bash autorotate.sh &> autorotate.log
```
---
@@ -946,7 +1055,7 @@ declare -r SCREEN=eDP-1
* ๐Ÿ“ˆ Lines of Code: 342
* ๐Ÿ“„ Lines of Documentation: 39
* ๐Ÿ“… Development Period: 2011-11-19 to 2022-04-02
-* ๐Ÿ”ฅ Recent Activity: 1282.2 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 1288.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.5.0 (2022-02-21)
@@ -988,7 +1097,7 @@ scalephotos () {
* ๐Ÿ“ˆ Lines of Code: 1728
* ๐Ÿ“„ Lines of Documentation: 18
* ๐Ÿ“… Development Period: 2020-07-12 to 2023-04-09
-* ๐Ÿ”ฅ Recent Activity: 1433.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 1440.1 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1001,16 +1110,19 @@ The project leverages Go's generics system to provide type-safe implementations
=> https://codeberg.org/snonux/algorithms View on Codeberg
=> https://github.com/snonux/algorithms View on GitHub
-Go from `queue/priority.go`:
+Go from `ds/arraylist.go`:
```AUTO
-type PriorityQueue interface {
- Insert(a int)
- Max() (max int)
- DeleteMax() int
- Empty() bool
- Size() int
- Clear()
+func NewRandomArrayList[V Number](l, max int) ArrayList[V] {
+ a := make(ArrayList[V], l)
+ for i := 0; i < l; i++ {
+ if max > 0 {
+ a[i] = V(rand.Intn(max))
+ continue
+ }
+ a[i] = V(rand.Int())
+ }
+ return a
}
```
@@ -1024,7 +1136,7 @@ type PriorityQueue interface {
* ๐Ÿ“ˆ Lines of Code: 671
* ๐Ÿ“„ Lines of Documentation: 19
* ๐Ÿ“… Development Period: 2018-05-26 to 2025-01-21
-* ๐Ÿ”ฅ Recent Activity: 1435.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 1441.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1053,11 +1165,11 @@ def out(message, prefix, flag = :none)
### foo.zone
* ๐Ÿ“š Documentation: Markdown (100.0%)
-* ๐Ÿ“Š Commits: 2911
+* ๐Ÿ“Š Commits: 2933
* ๐Ÿ“ˆ Lines of Code: 0
* ๐Ÿ“„ Lines of Documentation: 23
* ๐Ÿ“… Development Period: 2021-05-21 to 2022-04-02
-* ๐Ÿ”ฅ Recent Activity: 1448.9 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 1455.7 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1080,7 +1192,7 @@ The site is built using **Gemtexter**, a static site generator that creates both
* ๐Ÿ“ˆ Lines of Code: 51
* ๐Ÿ“„ Lines of Documentation: 69
* ๐Ÿ“… Development Period: 2014-03-24 to 2022-04-23
-* ๐Ÿ”ฅ Recent Activity: 1914.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 1921.0 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1114,7 +1226,7 @@ sub hello() {
* ๐Ÿ“ˆ Lines of Code: 12420
* ๐Ÿ“„ Lines of Documentation: 610
* ๐Ÿ“… Development Period: 2018-03-01 to 2020-01-22
-* ๐Ÿ”ฅ Recent Activity: 2455.8 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 2462.6 days (avg. age of last 42 commits)
* โš–๏ธ License: Apache-2.0
* ๐Ÿท๏ธ Latest Release: 0.5.1 (2019-01-04)
@@ -1129,6 +1241,21 @@ The tool is implemented in C for minimal overhead and uses SystemTap for efficie
=> https://codeberg.org/snonux/ioriot View on Codeberg
=> https://github.com/snonux/ioriot View on GitHub
+C from `ioriot/src/mounts.c`:
+
+```AUTO
+struct timeval tv;
+gettimeofday(&tv, NULL);
+
+char *wd_path = NULL;
+asprintf(&wd_path, "%s/%s", opts->wd_base, opts->name);
+
+char *trash_path = NULL;
+asprintf(&trash_path, "%s/.trash/%ld", opts->wd_base, tv.tv_sec);
+
+if (is_dir(wd_path)) {
+```
+
---
### staticfarm-apache-handlers
@@ -1139,7 +1266,7 @@ The tool is implemented in C for minimal overhead and uses SystemTap for efficie
* ๐Ÿ“ˆ Lines of Code: 919
* ๐Ÿ“„ Lines of Documentation: 12
* ๐Ÿ“… Development Period: 2015-01-02 to 2021-11-04
-* ๐Ÿ”ฅ Recent Activity: 2964.5 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 2971.3 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 1.1.3 (2015-01-02)
@@ -1152,51 +1279,13 @@ The system is particularly useful for distributed static content delivery where
=> https://codeberg.org/snonux/staticfarm-apache-handlers View on Codeberg
=> https://github.com/snonux/staticfarm-apache-handlers View on GitHub
-Perl from `debian/staticfarm-apache-handlers/usr/share/staticfarm/apache/handlers/StaticFarm/API.pm`:
+Perl from `debian/staticfarm-apache-handlers/usr/share/staticfarm/apache/handlers/StaticFarm/CacheControl.pm`:
```AUTO
-sub handler {
- my $r = shift;
- $r->content_type('application/json');
-
- my $method = $r->method();
-
- my $d = {
- method => $method,
- uri => $r->uri(),
- args => $r->args(),
- out => { message => "" },
- };
-
- ($d->{path}) = $r->uri() =~ /^$URI_PREFIX(.*)/;
- $d->{fullpath} = "$CONTENT_DIR$d->{path}";
-
- my %params = map {
- s/\.\.//g;
- my ($k, $v) = split '=', $_;
- $v
- $k => $v;
- } split '&', $r->args();
+sub my_warn {
+ my $msg = shift;
- $d->{params} = \%params;
-
- if ($method eq 'GET') {
- handler_get($r, $d);
-
- } elsif ($method eq 'DELETE') {
- handler_delete($r, $d);
-
- } elsif ($method eq 'POST') {
- handler_post($r, $d);
-
- } elsif ($method eq 'PUT') {
- handler_put($r, $d);
-
- } else {
- handler_unknown($r, $d);
- }
-
- return Apache2::Const::DONE;
+ Apache2::ServerRec::warn("CacheControl: $msg");
}
```
@@ -1210,7 +1299,7 @@ sub handler {
* ๐Ÿ“ˆ Lines of Code: 18
* ๐Ÿ“„ Lines of Documentation: 49
* ๐Ÿ“… Development Period: 2014-03-24 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 3200.4 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3207.2 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1233,7 +1322,7 @@ The implementation consists of a shell script (`update-dyndns`) that accepts hos
* ๐Ÿ“ˆ Lines of Code: 5360
* ๐Ÿ“„ Lines of Documentation: 789
* ๐Ÿ“… Development Period: 2015-01-02 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 3467.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3473.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 1.0.1 (2015-01-02)
@@ -1246,17 +1335,24 @@ The tool is particularly useful for system administrators and DevOps engineers w
=> https://codeberg.org/snonux/mon View on Codeberg
=> https://github.com/snonux/mon View on GitHub
-Perl from `lib/MON/Cache.pm`:
+Perl from `debian/mon/usr/share/mon/lib/MAPI/QueryBase.pm`:
```AUTO
-sub new {
- my ( $class, %opts ) = @_;
+sub check_has {
+ my ( $self, $key, $in ) = @_;
- my $self = bless \%opts, $class;
+ if ( ref $in eq 'HASH' && exists $in->{$key} ) {
+ return 1;
- $self->init();
+ }
+ else {
+ for (@$in) {
+ return 1 if $_ eq $key;
+ }
+ }
- return $self;
+ my @possible = sort ( ref $in eq 'HASH' ? keys %$in : @$in );
+ $self->error("'$key' not expected here. Possible: @possible");
}
```
@@ -1270,7 +1366,7 @@ sub new {
* ๐Ÿ“ˆ Lines of Code: 273
* ๐Ÿ“„ Lines of Documentation: 32
* ๐Ÿ“… Development Period: 2015-09-29 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 3471.2 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3478.0 days (avg. age of last 42 commits)
* โš–๏ธ License: Apache-2.0
* ๐Ÿท๏ธ Latest Release: 0 (2015-10-26)
@@ -1306,7 +1402,7 @@ def initialize
* ๐Ÿ“ˆ Lines of Code: 1839
* ๐Ÿ“„ Lines of Documentation: 412
* ๐Ÿ“… Development Period: 2015-01-02 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 3550.9 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3557.7 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 1.0.2 (2015-01-02)
@@ -1319,22 +1415,15 @@ The project is implemented as a modular Perl application with a clean architectu
=> https://codeberg.org/snonux/pingdomfetch View on Codeberg
=> https://github.com/snonux/pingdomfetch View on GitHub
-Perl from `lib/PINGDOMFETCH/Pingdomfetch.pm`:
+Perl from `lib/PINGDOMFETCH/Result.pm`:
```AUTO
sub new {
- my ( $class, $opts ) = @_;
-
- my $config = PINGDOMFETCH::Config->new($opts);
- my $pingdom = PINGDOMFETCH::Pingdom->new($config);
+ my ( $class, %vals ) = @_;
- my $self = bless {
- config => $config,
- pingdom => $pingdom,
- dots_counter => 0,
- }, $class;
+ my $self = bless \%vals, $class;
- $self->init_from_to_interval();
+ $self->compute();
return $self;
}
@@ -1350,7 +1439,7 @@ sub new {
* ๐Ÿ“ˆ Lines of Code: 499
* ๐Ÿ“„ Lines of Documentation: 8
* ๐Ÿ“… Development Period: 2015-05-24 to 2021-11-03
-* ๐Ÿ”ฅ Recent Activity: 3561.6 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3568.4 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.1 (2015-06-01)
@@ -1363,40 +1452,18 @@ The implementation follows a concurrent architecture using Go's goroutines and c
=> https://codeberg.org/snonux/gotop View on Codeberg
=> https://github.com/snonux/gotop View on GitHub
-Go from `process/process.go`:
+Go from `diskstats/diskstats.go`:
```AUTO
-func new(pidstr string) (Process, error) {
- pid, err := strconv.Atoi(pidstr)
- if err != nil {
- return Process{}, err
- }
-
- timestamp := int32(time.Now().Unix())
- p := Process{Pid: pid, Timestamp: timestamp}
- var rawIo string
-
- if err = utils.Slurp(&rawIo, fmt.Sprintf("/proc/%d/io", pid)); err != nil {
- return p, err
- }
-
- if err = p.parseRawIo(rawIo); err != nil {
- return p, err
- }
+func new() (Diskstats, error) {
+ var raw string
+ d := Diskstats{}
- if err = utils.Slurp(&p.Comm, fmt.Sprintf("/proc/%d/comm", pid)); err != nil {
- return p, err
+ if err := utils.Slurp(&raw, "/proc/diskstats"); err != nil {
+ return d, err
}
- err = utils.Slurp(&p.Cmdline, fmt.Sprintf("/proc/%d/cmdline", pid))
-
- if p.Cmdline == "" {
- p.Id = fmt.Sprintf("(%s) %s", pidstr, p.Comm)
- } else {
- p.Id = fmt.Sprintf("(%s) %s", pidstr, p.Cmdline)
- }
-
- return p, err
+ return d, nil
}
```
@@ -1408,7 +1475,7 @@ func new(pidstr string) (Process, error) {
* ๐Ÿ“Š Commits: 670
* ๐Ÿ“ˆ Lines of Code: 1675
* ๐Ÿ“… Development Period: 2011-03-06 to 2018-12-22
-* ๐Ÿ”ฅ Recent Activity: 3617.2 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3624.0 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v1.0.0 (2018-12-22)
@@ -1423,18 +1490,28 @@ The system works through a template-driven architecture where content is written
=> https://codeberg.org/snonux/xerl View on Codeberg
=> https://github.com/snonux/xerl View on GitHub
-Perl from `Xerl/XML/Reader.pm`:
+Perl from `Xerl/Setup/Configure.pm`:
```AUTO
-sub open {
- my $self = shift;
+sub parse {
+ my $self = $_[0];
+ my $file = Xerl::Tools::FileIO->new( 'path' => $self->get_config() );
- if ( -f $self->get_path() ) {
- return 0;
+ if ( -1 == $file->fslurp() ) {
+ $self->set_finish_request(1);
+ return undef;
}
- else {
- return 1;
+
+ my $re = qr/^(.+?) *=(.+?) *\n?$/;
+
+ for ( @{ $file->get_array() } ) {
+ next if /^\s*#/;
+ s/#.*//;
+
+ $self->setval( $1, $self->eval($2) ) if $_ =~ $re;
}
+
+ return $self;
}
```
@@ -1448,7 +1525,7 @@ sub open {
* ๐Ÿ“ˆ Lines of Code: 88
* ๐Ÿ“„ Lines of Documentation: 148
* ๐Ÿ“… Development Period: 2015-06-18 to 2015-12-05
-* ๐Ÿ”ฅ Recent Activity: 3665.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3672.1 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1486,7 +1563,7 @@ done
* ๐Ÿ“ˆ Lines of Code: 1681
* ๐Ÿ“„ Lines of Documentation: 539
* ๐Ÿ“… Development Period: 2014-03-10 to 2021-11-03
-* ๐Ÿ”ฅ Recent Activity: 3943.3 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 3950.1 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 1.0.2 (2014-11-17)
@@ -1499,21 +1576,15 @@ The implementation is written in Python and built on top of the bigsuds library,
=> https://codeberg.org/snonux/fapi View on Codeberg
=> https://github.com/snonux/fapi View on GitHub
-Python from `contrib/bigsuds-1.0/bigsuds.py`:
+Python from `contrib/bigsuds-1.0/setup.py`:
```AUTO
-class ArgumentError(OperationFailed):
- are passed to an iControl method."""
-
-
-class BIGIP(object):
-
- Example usage:
- >>> b = BIGIP('bigip-hostname')
- >>> print b.LocalLB.Pool.get_list()
- ['/Common/test_pool']
- >>> b.LocalLB.Pool.add_member(['/Common/test_pool'], \
- [[{'address': '10.10.10.10', 'port': 20030}]])
+def extract_version(filename):
+ contents = open(filename).read()
+ match = re.search('^__version__\s+=\s+[\'"](.*)[\'"]\s*$', contents,
+ re.MULTILINE)
+ if match is not None:
+ return match.group(1)
```
---
@@ -1526,7 +1597,7 @@ class BIGIP(object):
* ๐Ÿ“ˆ Lines of Code: 65
* ๐Ÿ“„ Lines of Documentation: 228
* ๐Ÿ“… Development Period: 2013-03-22 to 2021-11-04
-* ๐Ÿ”ฅ Recent Activity: 3997.8 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4004.6 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.0.0.0 (2013-03-22)
@@ -1561,7 +1632,7 @@ build:
* ๐Ÿ“ˆ Lines of Code: 136
* ๐Ÿ“„ Lines of Documentation: 96
* ๐Ÿ“… Development Period: 2013-03-22 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 4010.8 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4017.5 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.2.0 (2014-07-05)
@@ -1596,7 +1667,7 @@ build:
* ๐Ÿ“ˆ Lines of Code: 134
* ๐Ÿ“„ Lines of Documentation: 106
* ๐Ÿ“… Development Period: 2013-03-22 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 4018.2 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4025.0 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.1.5 (2014-06-22)
@@ -1611,46 +1682,6 @@ The tool works by having both hosts run the same command simultaneously - one ac
---
-### pwgrep
-
-* ๐Ÿ’ป Languages: Shell (85.0%), Make (15.0%)
-* ๐Ÿ“š Documentation: Text (80.8%), Markdown (19.2%)
-* ๐Ÿ“Š Commits: 142
-* ๐Ÿ“ˆ Lines of Code: 493
-* ๐Ÿ“„ Lines of Documentation: 26
-* ๐Ÿ“… Development Period: 2009-09-27 to 2021-11-02
-* ๐Ÿ”ฅ Recent Activity: 4061.5 days (avg. age of last 42 commits)
-* โš–๏ธ License: No license found
-* ๐Ÿท๏ธ Latest Release: 0.9.3 (2014-06-14)
-
-โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
-
-**pwgrep** is a command-line password manager built in Bash and GNU AWK that combines GPG encryption with version control (Git by default) for secure password storage and change tracking. It stores encrypted password databases as GPG files and uses a revision control system to maintain a complete history of all changes, making it ideal for users who want both security and accountability in their password management. The tool provides a simple interface where users can search for passwords using `pwgrep searchstring` or edit the database directly with `pwgrep`, and it integrates with various AWK implementations and secure file deletion tools for cross-platform compatibility.
-
-The implementation leverages GPG for strong encryption, ensuring passwords are never stored in plaintext, while the version control integration (typically Git over SSL/SSH) provides secure synchronization across multiple devices and maintains an audit trail of all database modifications. The project includes comprehensive Debian packaging support and creates multiple command aliases (pwedit, pwfadd, pwfdel, etc.) for different password management operations, making it a complete password management solution that prioritizes security, transparency, and ease of use for technical users comfortable with command-line tools.
-
-=> https://codeberg.org/snonux/pwgrep View on Codeberg
-=> https://github.com/snonux/pwgrep View on GitHub
-
-Shell from `bin/pwgrep.sh`:
-
-```AUTO
-function findbin () {
- local -r trylist=$1
- found=""
- for bin in $trylist; do
- if [ -z $found ]; then
- which=$(which $bin)
- [ ! -z $which ] && found=$bin
- fi
- done
-
- echo $found
-}
-```
-
----
-
### japi
* ๐Ÿ’ป Languages: Perl (78.3%), Make (21.7%)
@@ -1659,7 +1690,7 @@ function findbin () {
* ๐Ÿ“ˆ Lines of Code: 286
* ๐Ÿ“„ Lines of Documentation: 144
* ๐Ÿ“… Development Period: 2013-03-22 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 4066.6 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4073.4 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.4.3 (2014-06-16)
@@ -1682,7 +1713,7 @@ The implementation uses modern Perl with the Moo object system and consists of t
* ๐Ÿ“ˆ Lines of Code: 191
* ๐Ÿ“„ Lines of Documentation: 8
* ๐Ÿ“… Development Period: 2014-03-24 to 2014-03-24
-* ๐Ÿ”ฅ Recent Activity: 4127.8 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4134.6 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1695,18 +1726,18 @@ Each script explores different themes - Christmas celebrations, mathematical stu
=> https://codeberg.org/snonux/perl-poetry View on Codeberg
=> https://github.com/snonux/perl-poetry View on GitHub
-Perl from `perllove.pl`:
+Perl from `math.pl`:
```AUTO
-no strict;
-no warnings;
-we: do { print 'love'
-or warn and die 'slow'
-unless not defined true #respect
-} for reverse'd', qw/mind of you/
-and map { 'me' } 'into', undef $mourning;
-__END__
-v2 Copyright (2005, 2006) by Paul C. Buetow, http://paul.buetow.org
+do { int'egrate'; sub trade; };
+do { exp'onentize' and abs'olutize' };
+study and study and study and study;
+
+foreach $topic ({of, math}) {
+you, m/ay /go, to, limits }
+
+do { not qw/erk / unless $success
+and m/ove /o;$n and study };
```
---
@@ -1717,7 +1748,7 @@ v2 Copyright (2005, 2006) by Paul C. Buetow, http://paul.buetow.org
* ๐Ÿ“Š Commits: 7
* ๐Ÿ“ˆ Lines of Code: 80
* ๐Ÿ“… Development Period: 2011-07-09 to 2015-01-13
-* ๐Ÿ”ฅ Recent Activity: 4207.9 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4214.7 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -1762,15 +1793,38 @@ if ($ENV{SERVER_NAME} eq 'ipv6.buetow.org') {
---
+### cpuinfo
+
+* ๐Ÿ’ป Languages: Shell (53.2%), Make (46.8%)
+* ๐Ÿ“š Documentation: Text (100.0%)
+* ๐Ÿ“Š Commits: 28
+* ๐Ÿ“ˆ Lines of Code: 124
+* ๐Ÿ“„ Lines of Documentation: 75
+* ๐Ÿ“… Development Period: 2010-11-05 to 2021-11-05
+* ๐Ÿ”ฅ Recent Activity: 4255.3 days (avg. age of last 42 commits)
+* โš–๏ธ License: No license found
+* ๐Ÿท๏ธ Latest Release: 1.0.2 (2014-06-22)
+
+โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
+
+**cpuinfo** is a small command-line utility that provides a human-readable summary of CPU information on Linux systems. It parses `/proc/cpuinfo` using AWK to extract and display key processor details including the CPU model, cache size, number of physical processors, cores, and whether hyper-threading is enabled. The tool calculates total CPU frequency and bogomips across all cores, making it easier to understand complex multi-core and multi-processor configurations at a glance.
+
+The implementation is remarkably simple - a single shell script that uses GNU AWK to parse the kernel's CPU information and format it into a clear, structured output. It's particularly useful for system administrators and developers who need to quickly understand CPU topology, especially on servers with multiple processors or complex threading configurations where the raw `/proc/cpuinfo` output can be overwhelming.
+
+=> https://codeberg.org/snonux/cpuinfo View on Codeberg
+=> https://github.com/snonux/cpuinfo View on GitHub
+
+---
+
### loadbars
* ๐Ÿ’ป Languages: Perl (97.4%), Make (2.6%)
-* ๐Ÿ“š Documentation: Text (93.5%), Markdown (6.5%)
+* ๐Ÿ“š Documentation: Text (100.0%)
* ๐Ÿ“Š Commits: 527
* ๐Ÿ“ˆ Lines of Code: 1828
-* ๐Ÿ“„ Lines of Documentation: 107
+* ๐Ÿ“„ Lines of Documentation: 100
* ๐Ÿ“… Development Period: 2010-11-05 to 2015-05-23
-* ๐Ÿ”ฅ Recent Activity: 4215.4 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4285.4 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: 0.7.5 (2014-06-22)
@@ -1783,39 +1837,55 @@ The application is implemented using a multi-threaded architecture where each mo
=> https://codeberg.org/snonux/loadbars View on Codeberg
=> https://github.com/snonux/loadbars View on GitHub
-Perl from `lib/Loadbars/Utils.pm`:
+Perl from `lib/Loadbars/Main.pm`:
```AUTO
-sub trim (\$) {
- my $str = shift;
- $$str =~ s/^[\s\t]+//;
- $$str =~ s/[\s\t]+$//;
- return undef;
+sub percentage ($$) {
+ my ( $total, $part ) = @_;
+
+ return int( null($part) / notnull( null($total) / 100 ) );
}
```
---
-### cpuinfo
+### pwgrep
-* ๐Ÿ’ป Languages: Shell (53.2%), Make (46.8%)
-* ๐Ÿ“š Documentation: Text (100.0%)
-* ๐Ÿ“Š Commits: 28
-* ๐Ÿ“ˆ Lines of Code: 124
-* ๐Ÿ“„ Lines of Documentation: 75
-* ๐Ÿ“… Development Period: 2010-11-05 to 2021-11-05
-* ๐Ÿ”ฅ Recent Activity: 4248.5 days (avg. age of last 42 commits)
+* ๐Ÿ’ป Languages: Shell (85.0%), Make (15.0%)
+* ๐Ÿ“š Documentation: Text (72.4%), Markdown (27.6%)
+* ๐Ÿ“Š Commits: 142
+* ๐Ÿ“ˆ Lines of Code: 493
+* ๐Ÿ“„ Lines of Documentation: 29
+* ๐Ÿ“… Development Period: 2009-09-27 to 2015-05-23
+* ๐Ÿ”ฅ Recent Activity: 4298.8 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
-* ๐Ÿท๏ธ Latest Release: 1.0.2 (2014-06-22)
+* ๐Ÿท๏ธ Latest Release: 0.9.3 (2014-06-14)
โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
-**cpuinfo** is a small command-line utility that provides a human-readable summary of CPU information on Linux systems. It parses `/proc/cpuinfo` using AWK to extract and display key processor details including the CPU model, cache size, number of physical processors, cores, and whether hyper-threading is enabled. The tool calculates total CPU frequency and bogomips across all cores, making it easier to understand complex multi-core and multi-processor configurations at a glance.
+**pwgrep** is a command-line password manager built in Bash and GNU AWK that combines GPG encryption with version control (Git by default) for secure password storage and change tracking. It stores encrypted password databases as GPG files and uses a revision control system to maintain a complete history of all changes, making it ideal for users who want both security and accountability in their password management. The tool provides a simple interface where users can search for passwords using `pwgrep searchstring` or edit the database directly with `pwgrep`, and it integrates with various AWK implementations and secure file deletion tools for cross-platform compatibility.
-The implementation is remarkably simple - a single shell script that uses GNU AWK to parse the kernel's CPU information and format it into a clear, structured output. It's particularly useful for system administrators and developers who need to quickly understand CPU topology, especially on servers with multiple processors or complex threading configurations where the raw `/proc/cpuinfo` output can be overwhelming.
+The implementation leverages GPG for strong encryption, ensuring passwords are never stored in plaintext, while the version control integration (typically Git over SSL/SSH) provides secure synchronization across multiple devices and maintains an audit trail of all database modifications. The project includes comprehensive Debian packaging support and creates multiple command aliases (pwedit, pwfadd, pwfdel, etc.) for different password management operations, making it a complete password management solution that prioritizes security, transparency, and ease of use for technical users comfortable with command-line tools.
-=> https://codeberg.org/snonux/cpuinfo View on Codeberg
-=> https://github.com/snonux/cpuinfo View on GitHub
+=> https://codeberg.org/snonux/pwgrep View on Codeberg
+=> https://github.com/snonux/pwgrep View on GitHub
+
+Shell from `bin/pwgrep.sh`:
+
+```AUTO
+function findbin () {
+ local -r trylist=$1
+ found=""
+ for bin in $trylist; do
+ if [ -z $found ]; then
+ which=$(which $bin)
+ [ ! -z $which ] && found=$bin
+ fi
+ done
+
+ echo $found
+}
+```
---
@@ -1825,7 +1895,7 @@ The implementation is remarkably simple - a single shell script that uses GNU AW
* ๐Ÿ“Š Commits: 110
* ๐Ÿ“ˆ Lines of Code: 614
* ๐Ÿ“… Development Period: 2011-02-05 to 2022-04-21
-* ๐Ÿ”ฅ Recent Activity: 4328.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4334.9 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v1.4 (2022-04-29)
@@ -1838,17 +1908,21 @@ The architecture centers around a modular plugin system where custom functionali
=> https://codeberg.org/snonux/perldaemon View on Codeberg
=> https://github.com/snonux/perldaemon View on GitHub
-Perl from `lib/PerlDaemonModules/ExampleModule2.pm`:
+Perl from `lib/PerlDaemon/RunModules.pm`:
```AUTO
-sub new ($$$) {
+sub new ($$) {
my ($class, $conf) = @_;
my $self = bless { conf => $conf }, $class;
- $self->{counter} = 0;
- return $self;
-}
+ my $modulesdir = $conf->{'daemon.modules.dir'};
+ my $logger = $conf->{logger};
+ my %loadedmodules;
+ my %scheduler;
+
+ if (-d $modulesdir) {
+ $logger->logmsg("Loading modules from $modulesdir");
```
---
@@ -1861,7 +1935,7 @@ sub new ($$$) {
* ๐Ÿ“ˆ Lines of Code: 122
* ๐Ÿ“„ Lines of Documentation: 10
* ๐Ÿ“… Development Period: 2011-01-27 to 2014-06-22
-* ๐Ÿ”ฅ Recent Activity: 4659.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4665.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: v0.2 (2011-01-27)
@@ -1906,7 +1980,7 @@ function read_config_values(config_file) {
* ๐Ÿ“ˆ Lines of Code: 720
* ๐Ÿ“„ Lines of Documentation: 6
* ๐Ÿ“… Development Period: 2008-06-21 to 2021-11-03
-* ๐Ÿ”ฅ Recent Activity: 4721.8 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 4728.6 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿท๏ธ Latest Release: v0.3 (2009-02-08)
@@ -1952,6 +2026,46 @@ public SPrefs(Component parent, HashMap<String,String> options) {
---
+### ychat
+
+* ๐Ÿ’ป Languages: C++ (52.1%), C/C++ (21.3%), Shell (20.1%), HTML (2.5%), Config (2.1%), Perl (1.5%), Make (0.3%)
+* ๐Ÿ“š Documentation: Text (100.0%)
+* ๐Ÿ“Š Commits: 67
+* ๐Ÿ“ˆ Lines of Code: 33823
+* ๐Ÿ“„ Lines of Documentation: 109
+* ๐Ÿ“… Development Period: 2008-05-15 to 2014-07-01
+* ๐Ÿ”ฅ Recent Activity: 5283.4 days (avg. age of last 42 commits)
+* โš–๏ธ License: GPL-2.0
+* ๐Ÿท๏ธ Latest Release: yhttpd-0.7.2 (2013-04-06)
+
+โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
+
+Based on my analysis of the codebase, here's a concise summary of the yChat project:
+
+**yChat** is a web-based chat server written in C++ that functions as a standalone HTTP server without requiring external web server dependencies. It allows users to participate in multi-room chat sessions using standard web browsers, with no special client software needed. The system supports user registration, authentication via session IDs, customizable HTML templates, and multi-language support through XML configuration files.
+
+The architecture is built around several key managers: a socket manager for handling HTTP connections, a chat manager for core functionality, an HTML template manager for dynamic content generation, and a modular system supporting dynamically loadable command modules. It uses hash maps for efficient O(1) data retrieval, POSIX threads for concurrent request handling, and includes advanced features like SSL support, MySQL database integration, garbage collection for memory management, and comprehensive logging. The codebase also includes related projects like yhttpd (a lightweight HTTP server) and ycurses (a terminal interface library), making it a comprehensive communication platform designed for performance and extensibility.
+
+=> https://codeberg.org/snonux/ychat View on Codeberg
+=> https://github.com/snonux/ychat View on GitHub
+
+C++ from `src/logd.cpp`:
+
+```AUTO
+ struct tm *t_m;
+ time_t t_cur = time(NULL);
+ t_m = gmtime(&t_cur);
+
+ char c_buf[100];
+ c_buf[99] = '\0';
+ strftime(c_buf, 100, "[%d/%b/%Y:%H:%M:%S %z]", t_m);
+
+ return string(c_buf);
+}
+```
+
+---
+
### netcalendar
* ๐Ÿ’ป Languages: Java (83.0%), HTML (12.9%), XML (3.0%), CSS (0.8%), Make (0.2%)
@@ -1960,7 +2074,7 @@ public SPrefs(Component parent, HashMap<String,String> options) {
* ๐Ÿ“ˆ Lines of Code: 17380
* ๐Ÿ“„ Lines of Documentation: 947
* ๐Ÿ“… Development Period: 2009-02-07 to 2021-05-01
-* ๐Ÿ”ฅ Recent Activity: 5352.5 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 5359.3 days (avg. age of last 42 commits)
* โš–๏ธ License: GPL-2.0
* ๐Ÿท๏ธ Latest Release: v0.1 (2009-02-08)
@@ -1977,39 +2091,40 @@ The implementation uses a clean separation of concerns with dedicated packages f
=> https://codeberg.org/snonux/netcalendar View on Codeberg
=> https://github.com/snonux/netcalendar View on GitHub
-Java from `sources/client/inputforms/CreateNewEvent.java`:
+Java from `sources/client/SplashScreen.java`:
```AUTO
-private final static long serialVersionUID = 1L;
-
-private final static String[] labels =
- { "Description: ", "Category: ", "Place: ", "Yearly: ", "Date: "};
-```
+public class SplashScreen extends JWindow implements Runnable {
+ private static final long serialVersionUID = 1L;
----
+ public void run() {
+ JPanel jPanel = (JPanel)getContentPane();
+ jPanel.setBackground(Color.BLACK);
+ jPanel.setForeground(Color.WHITE);
-### ychat
+ int iWidth = 411;
+ int iHeight = 261;
+ Dimension dimension = Toolkit.getDefaultToolkit().getScreenSize();
-* ๐Ÿ’ป Languages: C++ (54.9%), C/C++ (23.0%), Shell (13.8%), Perl (2.5%), HTML (2.5%), Config (2.3%), Make (0.8%), CSS (0.2%)
-* ๐Ÿ“š Documentation: Text (100.0%)
-* ๐Ÿ“Š Commits: 67
-* ๐Ÿ“ˆ Lines of Code: 67884
-* ๐Ÿ“„ Lines of Documentation: 127
-* ๐Ÿ“… Development Period: 2008-05-15 to 2014-06-30
-* ๐Ÿ”ฅ Recent Activity: 5372.7 days (avg. age of last 42 commits)
-* โš–๏ธ License: GPL-2.0
-* ๐Ÿท๏ธ Latest Release: yhttpd-0.7.2 (2013-04-06)
+ int x = (dimension.width-iWidth)/2;
+ int y = (dimension.height-iHeight)/2;
+ setBounds(x,y,iWidth,iHeight);
-โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
+ JLabel jLabel = new JLabel(new ImageIcon("images/netcal.png"));
+ jPanel.add(jLabel, BorderLayout.CENTER);
+ jPanel.setBorder(BorderFactory.createLineBorder(Color.BLACK, 3));
+ setVisible(true);
-Based on my analysis of the codebase, here's a concise summary of the yChat project:
+ try {
+ Thread.sleep(3000);
-**yChat** is a web-based chat server written in C++ that functions as a standalone HTTP server without requiring external web server dependencies. It allows users to participate in multi-room chat sessions using standard web browsers, with no special client software needed. The system supports user registration, authentication via session IDs, customizable HTML templates, and multi-language support through XML configuration files.
-
-The architecture is built around several key managers: a socket manager for handling HTTP connections, a chat manager for core functionality, an HTML template manager for dynamic content generation, and a modular system supporting dynamically loadable command modules. It uses hash maps for efficient O(1) data retrieval, POSIX threads for concurrent request handling, and includes advanced features like SSL support, MySQL database integration, garbage collection for memory management, and comprehensive logging. The codebase also includes related projects like yhttpd (a lightweight HTTP server) and ycurses (a terminal interface library), making it a comprehensive communication platform designed for performance and extensibility.
+ } catch (Exception e) {
+ Main.infoMessage(e.getMessage());
+ }
-=> https://codeberg.org/snonux/ychat View on Codeberg
-=> https://github.com/snonux/ychat View on GitHub
+ dispose();
+ }
+```
---
@@ -2019,7 +2134,7 @@ The architecture is built around several key managers: a socket manager for hand
* ๐Ÿ“Š Commits: 80
* ๐Ÿ“ˆ Lines of Code: 601
* ๐Ÿ“… Development Period: 2009-11-22 to 2011-10-17
-* ๐Ÿ”ฅ Recent Activity: 5448.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 5454.9 days (avg. age of last 42 commits)
* โš–๏ธ License: Custom License
* ๐Ÿงช Status: Experimental (no releases yet)
@@ -2032,46 +2147,23 @@ The implementation uses a clean separation of concerns with modules for IRC conn
=> https://codeberg.org/snonux/hsbot View on Codeberg
=> https://github.com/snonux/hsbot View on GitHub
-Haskell from `HsBot/Plugins/PrintMessages.hs`:
+Haskell from `HsBot/IRC/User.hs`:
```AUTO
-module HsBot.Plugins.PrintMessages (makePrintMessages) where
+module HsBot.IRC.User where
-import HsBot.Plugins.Base
+import List
-import HsBot.Base.Env
-import HsBot.Base.State
+import HsBot.General.Render
-printMessages :: CallbackFunction
-printMessages str sendMessage env@(Env state _) = do
- putStrLn $ (currentChannel state) ++ " "
+data User = User {
+ userName :: String,
+ userMessages :: Int,
+ userPts :: Int
```
---
-### fype
-
-* ๐Ÿ’ป Languages: C (72.1%), C/C++ (20.7%), HTML (5.7%), Make (1.5%)
-* ๐Ÿ“š Documentation: Text (71.3%), LaTeX (28.7%)
-* ๐Ÿ“Š Commits: 99
-* ๐Ÿ“ˆ Lines of Code: 10196
-* ๐Ÿ“„ Lines of Documentation: 1741
-* ๐Ÿ“… Development Period: 2008-05-15 to 2021-11-03
-* ๐Ÿ”ฅ Recent Activity: 5609.9 days (avg. age of last 42 commits)
-* โš–๏ธ License: Custom License
-* ๐Ÿงช Status: Experimental (no releases yet)
-
-โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
-
-**Fype** is a 32-bit scripting language interpreter written in C that aims to be "at least as good as AWK" while providing a different syntax and some unique features. Created by Paul C. Buetow as a fun project, Fype supports variables, functions, procedures, loops, arrays, and control structures with features like variable synonyms (references), nested functions/procedures, and automatic type conversion. The language uses a simple syntax with statements ending in semicolons and supports both global procedures (which share scope with their callers) and lexically-scoped functions.
-
-The implementation is built using a straightforward top-down parser with a maximum lookahead of 1 token, simultaneously parsing and interpreting code (meaning syntax errors are only detected at runtime). The architecture is modular with separate components for scanning/tokenization, symbol management, garbage collection, type conversion, and data structures (including arrays, lists, hash tables, stacks, and trees). The interpreter is designed for Unix-like systems (BSD/Linux) and includes built-in functions for I/O, math operations, bitwise operations, system calls like `fork`, and memory management with garbage collection.
-
-=> https://codeberg.org/snonux/fype View on Codeberg
-=> https://github.com/snonux/fype View on GitHub
-
----
-
### vs-sim
* ๐Ÿ“š Documentation: Markdown (100.0%)
@@ -2079,7 +2171,7 @@ The implementation is built using a straightforward top-down parser with a maxim
* ๐Ÿ“ˆ Lines of Code: 0
* ๐Ÿ“„ Lines of Documentation: 7
* ๐Ÿ“… Development Period: 2008-05-15 to 2015-05-23
-* ๐Ÿ”ฅ Recent Activity: 5809.1 days (avg. age of last 42 commits)
+* ๐Ÿ”ฅ Recent Activity: 5815.9 days (avg. age of last 42 commits)
* โš–๏ธ License: No license found
* ๐Ÿท๏ธ Latest Release: v1.0 (2008-08-24)
@@ -2091,3 +2183,40 @@ The implementation features a modular architecture with separate packages for co
=> https://codeberg.org/snonux/vs-sim View on Codeberg
=> https://github.com/snonux/vs-sim View on GitHub
+
+---
+
+### fype
+
+* ๐Ÿ’ป Languages: C (71.3%), C/C++ (20.6%), HTML (6.6%), Make (1.5%)
+* ๐Ÿ“š Documentation: Text (60.2%), LaTeX (39.8%)
+* ๐Ÿ“Š Commits: 99
+* ๐Ÿ“ˆ Lines of Code: 8906
+* ๐Ÿ“„ Lines of Documentation: 1431
+* ๐Ÿ“… Development Period: 2008-05-15 to 2021-04-29
+* ๐Ÿ”ฅ Recent Activity: 5861.7 days (avg. age of last 42 commits)
+* โš–๏ธ License: Custom License
+* ๐Ÿงช Status: Experimental (no releases yet)
+
+โš ๏ธ **Notice**: This project appears to be finished, obsolete, or no longer maintained. Last meaningful activity was over 2 years ago. Use at your own risk.
+
+**Fype** is a 32-bit scripting language interpreter written in C that aims to be "at least as good as AWK" while providing a different syntax and some unique features. Created by Paul C. Buetow as a fun project, Fype supports variables, functions, procedures, loops, arrays, and control structures with features like variable synonyms (references), nested functions/procedures, and automatic type conversion. The language uses a simple syntax with statements ending in semicolons and supports both global procedures (which share scope with their callers) and lexically-scoped functions.
+
+The implementation is built using a straightforward top-down parser with a maximum lookahead of 1 token, simultaneously parsing and interpreting code (meaning syntax errors are only detected at runtime). The architecture is modular with separate components for scanning/tokenization, symbol management, garbage collection, type conversion, and data structures (including arrays, lists, hash tables, stacks, and trees). The interpreter is designed for Unix-like systems (BSD/Linux) and includes built-in functions for I/O, math operations, bitwise operations, system calls like `fork`, and memory management with garbage collection.
+
+=> https://codeberg.org/snonux/fype View on Codeberg
+=> https://github.com/snonux/fype View on GitHub
+
+C from `src/data/queue.c`:
+
+```AUTO
+ p_elem->type = type;
+
+ return p_elem;
+}
+
+_Bool
+queue_empty(Queue *p_queue) {
+ if (p_queue == NULL)
+ return 0;
+```