diff options
| author | Paul Buetow <paul@buetow.org> | 2025-07-12 22:46:46 +0300 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2025-07-12 22:46:46 +0300 |
| commit | e15aa5447150d31e86590da8b2ebd8e62acadcb8 (patch) | |
| tree | 083acb60cc9ef89ccc36cb99a72aabc27b6a3f2b /about/showcase.html | |
| parent | 943206251faf4b50c33a1230804206366a2bfa73 (diff) | |
Update content for html
Diffstat (limited to 'about/showcase.html')
| -rw-r--r-- | about/showcase.html | 978 |
1 files changed, 447 insertions, 531 deletions
diff --git a/about/showcase.html b/about/showcase.html index 1c13c828..a5be8e15 100644 --- a/about/showcase.html +++ b/about/showcase.html @@ -13,7 +13,7 @@ </p> <h1 style='display: inline' id='project-showcase'>Project Showcase</h1><br /> <br /> -<span>Generated on: 2025-07-09</span><br /> +<span>Generated on: 2025-07-12</span><br /> <br /> <span>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.</span><br /> <br /> @@ -27,9 +27,8 @@ <li>⇢ ⇢ <a href='#timr'>timr</a></li> <li>⇢ ⇢ <a href='#tasksamurai'>tasksamurai</a></li> <li>⇢ ⇢ <a href='#rexfiles'>rexfiles</a></li> -<li>⇢ ⇢ <a href='#dtail'>dtail</a></li> -<li>⇢ ⇢ <a href='#wireguardmeshgenerator'>wireguardmeshgenerator</a></li> <li>⇢ ⇢ <a href='#ior'>ior</a></li> +<li>⇢ ⇢ <a href='#wireguardmeshgenerator'>wireguardmeshgenerator</a></li> <li>⇢ ⇢ <a href='#ds-sim'>ds-sim</a></li> <li>⇢ ⇢ <a href='#sillybench'>sillybench</a></li> <li>⇢ ⇢ <a href='#gos'>gos</a></li> @@ -39,12 +38,13 @@ <li>⇢ ⇢ <a href='#quicklogger'>quicklogger</a></li> <li>⇢ ⇢ <a href='#docker-gpodder-sync-server'>docker-gpodder-sync-server</a></li> <li>⇢ ⇢ <a href='#terraform'>terraform</a></li> +<li>⇢ ⇢ <a href='#gogios'>gogios</a></li> <li>⇢ ⇢ <a href='#docker-radicale-server'>docker-radicale-server</a></li> <li>⇢ ⇢ <a href='#docker-anki-sync-server'>docker-anki-sync-server</a></li> <li>⇢ ⇢ <a href='#gorum'>gorum</a></li> <li>⇢ ⇢ <a href='#guprecords'>guprecords</a></li> -<li>⇢ ⇢ <a href='#gogios'>gogios</a></li> <li>⇢ ⇢ <a href='#randomjournalpage'>randomjournalpage</a></li> +<li>⇢ ⇢ <a href='#dtail'>dtail</a></li> <li>⇢ ⇢ <a href='#sway-autorotate'>sway-autorotate</a></li> <li>⇢ ⇢ <a href='#photoalbum'>photoalbum</a></li> <li>⇢ ⇢ <a href='#algorithms'>algorithms</a></li> @@ -68,44 +68,45 @@ <li>⇢ ⇢ <a href='#japi'>japi</a></li> <li>⇢ ⇢ <a href='#perl-poetry'>perl-poetry</a></li> <li>⇢ ⇢ <a href='#ipv6test'>ipv6test</a></li> -<li>⇢ ⇢ <a href='#cpuinfo'>cpuinfo</a></li> <li>⇢ ⇢ <a href='#loadbars'>loadbars</a></li> +<li>⇢ ⇢ <a href='#cpuinfo'>cpuinfo</a></li> <li>⇢ ⇢ <a href='#perldaemon'>perldaemon</a></li> <li>⇢ ⇢ <a href='#awksite'>awksite</a></li> <li>⇢ ⇢ <a href='#jsmstrade'>jsmstrade</a></li> <li>⇢ ⇢ <a href='#netcalendar'>netcalendar</a></li> <li>⇢ ⇢ <a href='#ychat'>ychat</a></li> -<li>⇢ ⇢ <a href='#vs-sim'>vs-sim</a></li> <li>⇢ ⇢ <a href='#hsbot'>hsbot</a></li> <li>⇢ ⇢ <a href='#fype'>fype</a></li> +<li>⇢ ⇢ <a href='#vs-sim'>vs-sim</a></li> </ul><br /> <h2 style='display: inline' id='overall-statistics'>Overall Statistics</h2><br /> <br /> <ul> <li>📦 Total Projects: 55</li> -<li>📊 Total Commits: 10,405</li> -<li>📈 Total Lines of Code: 231,007</li> -<li>📄 Total Lines of Documentation: 24,381</li> -<li>💻 Languages: Java (23.7%), Go (19.2%), C++ (16.1%), C/C++ (8.9%), C (8.3%), Perl (7.3%), Shell (6.4%), Config (2.0%), HTML (2.0%), Ruby (1.2%), HCL (1.2%), Make (0.8%), Python (0.7%), CSS (0.6%), Raku (0.4%), JSON (0.3%), XML (0.3%), Haskell (0.3%), YAML (0.2%), TOML (0.1%)</li> -<li>📚 Documentation: Text (46.3%), Markdown (39.6%), LaTeX (14.1%)</li> -<li>🤖 AI-Assisted Projects: 6 out of 55 (10.9% AI-assisted, 89.1% human-only)</li> -<li>🚀 Release Status: 31 released, 24 experimental (56.4% with releases, 43.6% experimental)</li> +<li>📊 Total Commits: 10,446</li> +<li>📈 Total Lines of Code: 211,600</li> +<li>📄 Total Lines of Documentation: 21,802</li> +<li>💻 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%)</li> +<li>📚 Documentation: Text (52.5%), Markdown (45.2%), LaTeX (2.3%)</li> +<li>🎵 Vibe-Coded Projects: 2 out of 55 (3.6%)</li> +<li>🤖 AI-Assisted Projects (including vibe-coded): 7 out of 55 (12.7% AI-assisted, 87.3% human-only)</li> +<li>🚀 Release Status: 33 released, 22 experimental (60.0% with releases, 40.0% experimental)</li> </ul><br /> <h2 style='display: inline' id='projects'>Projects</h2><br /> <br /> <h3 style='display: inline' id='gitsyncer'>gitsyncer</h3><br /> <br /> <ul> -<li>💻 Languages: Go (86.7%), Shell (11.4%), YAML (1.4%), JSON (0.5%)</li> +<li>💻 Languages: Go (89.5%), Shell (8.9%), YAML (1.1%), JSON (0.4%)</li> <li>📚 Documentation: Markdown (100.0%)</li> -<li>📊 Commits: 60</li> -<li>📈 Lines of Code: 6548</li> -<li>📄 Lines of Documentation: 2338</li> -<li>📅 Development Period: 2025-06-23 to 2025-07-09</li> -<li>🔥 Recent Activity: 3.4 days (avg. age of last 42 commits)</li> +<li>📊 Commits: 76</li> +<li>📈 Lines of Code: 8340</li> +<li>📄 Lines of Documentation: 2363</li> +<li>📅 Development Period: 2025-06-23 to 2025-07-12</li> +<li>🔥 Recent Activity: 2.5 days (avg. age of last 42 commits)</li> <li>⚖️ License: BSD-2-Clause</li> <li>🏷️ Latest Release: v0.5.0 (2025-07-09)</li> -<li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> +<li>🎵 Vibe-Coded: This project has been vibe coded</li> </ul><br /> <br /> <span>GitSyncer is a cross-platform repository synchronization tool that automatically keeps Git repositories in sync across multiple hosting platforms like GitHub, Codeberg, and private SSH servers. It solves the common problem of maintaining consistent code across different Git hosting services by cloning repositories, adding all configured platforms as remotes, and continuously merging and pushing changes bidirectionally while handling branch creation and conflict detection.</span><br /> @@ -115,19 +116,14 @@ <a class='textlink' href='https://codeberg.org/snonux/gitsyncer'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/gitsyncer'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>internal/cli/handlers.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>internal/showcase/images.go</span>:</span><br /> <br /> <pre> -func LoadConfig(configPath string) (*config.Config, error) { - if configPath == "" { - configPath = findDefaultConfigPath() - if configPath == "" { - return nil, fmt.Errorf("no configuration file found") - } - } - - fmt.Printf("Loaded configuration from: %s\n", configPath) - return config.Load(configPath) +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") } </pre> <br /> @@ -138,13 +134,13 @@ func LoadConfig(configPath string) (*config.Config, error) { <ul> <li>💻 Languages: Go (98.3%), YAML (1.7%)</li> <li>📚 Documentation: Markdown (100.0%)</li> -<li>📊 Commits: 19</li> +<li>📊 Commits: 20</li> <li>📈 Lines of Code: 873</li> <li>📄 Lines of Documentation: 135</li> -<li>📅 Development Period: 2025-06-25 to 2025-06-29</li> -<li>🔥 Recent Activity: 12.9 days (avg. age of last 42 commits)</li> +<li>📅 Development Period: 2025-06-25 to 2025-07-12</li> +<li>🔥 Recent Activity: 15.4 days (avg. age of last 42 commits)</li> <li>⚖️ License: BSD-2-Clause</li> -<li>🧪 Status: Experimental (no releases yet)</li> +<li>🏷️ Latest Release: v0.0.0 (2025-06-29)</li> <li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> </ul><br /> <br /> @@ -155,10 +151,14 @@ func LoadConfig(configPath string) (*config.Config, error) { <a class='textlink' href='https://codeberg.org/snonux/timr'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/timr'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>internal/version.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>internal/live/live.go</span>:</span><br /> <br /> <pre> -const Version = "v0.0.0" +func tick() tea.Cmd { + return tea.Tick(time.Second, func(t time.Time) tea.Msg { + return tickMsg(t) + }) +} </pre> <br /> <span>---</span><br /> @@ -168,14 +168,14 @@ const Version = "v0.0.0" <ul> <li>💻 Languages: Go (99.8%), YAML (0.2%)</li> <li>📚 Documentation: Markdown (100.0%)</li> -<li>📊 Commits: 215</li> +<li>📊 Commits: 216</li> <li>📈 Lines of Code: 6160</li> <li>📄 Lines of Documentation: 162</li> -<li>📅 Development Period: 2025-06-19 to 2025-07-08</li> -<li>🔥 Recent Activity: 13.3 days (avg. age of last 42 commits)</li> +<li>📅 Development Period: 2025-06-19 to 2025-07-12</li> +<li>🔥 Recent Activity: 16.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: BSD-2-Clause</li> <li>🏷️ Latest Release: v0.9.2 (2025-07-02)</li> -<li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> +<li>🎵 Vibe-Coded: This project has been vibe coded</li> </ul><br /> <br /> <a href='showcase/tasksamurai/image-1.png'><img alt='tasksamurai screenshot' title='tasksamurai screenshot' src='showcase/tasksamurai/image-1.png' /></a><br /> @@ -189,39 +189,10 @@ const Version = "v0.0.0" <a class='textlink' href='https://codeberg.org/snonux/tasksamurai'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/tasksamurai'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>internal/ui/table.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>internal/version.go</span>:</span><br /> <br /> <pre> -func editDescriptionCmd(description string) tea.Cmd { - return func() tea.Msg { - tmpFile, err := os.CreateTemp("", "tasksamurai-desc-*.txt") - if err != nil { - return descEditDoneMsg{err: err, tempFile: ""} - } - tmpPath := tmpFile.Name() - - _, err = tmpFile.WriteString(description) - tmpFile.Close() - if err != nil { - os.Remove(tmpPath) - return descEditDoneMsg{err: err, tempFile: ""} - } - - editor := os.Getenv("EDITOR") - if editor == "" { - editor = "vi" - } - - c := exec.Command(editor, tmpPath) - c.Stdin = os.Stdin - c.Stdout = os.Stdout - c.Stderr = os.Stderr - - return tea.ExecProcess(c, func(err error) tea.Msg { - return descEditDoneMsg{err: err, tempFile: tmpPath} - })() - } -} +const Version = "0.9.2" </pre> <br /> <span>---</span><br /> @@ -229,13 +200,13 @@ func editDescriptionCmd(description string) tea.Cmd { <h3 style='display: inline' id='rexfiles'>rexfiles</h3><br /> <br /> <ul> -<li>💻 Languages: Shell (34.7%), Perl (32.8%), Config (8.4%), CSS (8.2%), TOML (7.3%), Ruby (6.0%), Lua (1.8%), JSON (0.7%), INI (0.2%)</li> +<li>💻 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%)</li> <li>📚 Documentation: Text (97.3%), Markdown (2.7%)</li> -<li>📊 Commits: 875</li> -<li>📈 Lines of Code: 3956</li> +<li>📊 Commits: 876</li> +<li>📈 Lines of Code: 4123</li> <li>📄 Lines of Documentation: 854</li> -<li>📅 Development Period: 2021-12-28 to 2025-07-09</li> -<li>🔥 Recent Activity: 16.4 days (avg. age of last 42 commits)</li> +<li>📅 Development Period: 2021-12-28 to 2025-07-12</li> +<li>🔥 Recent Activity: 18.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -247,73 +218,64 @@ func editDescriptionCmd(description string) tea.Cmd { <a class='textlink' href='https://codeberg.org/snonux/rexfiles'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/rexfiles'>View on GitHub</a><br /> <br /> -<span>Shell from <span class='inlinecode'>frontends/scripts/sitestats.sh</span>:</span><br /> +<span>Perl from <span class='inlinecode'>frontends/scripts/foostats.pl</span>:</span><br /> <br /> <pre> -STATSFILE=/tmp/sitestats.csv -BOTSFILE=/tmp/sitebots.txt -TOP=20 +sub write ( $path, $content ) { + open my $fh, '>', "$path.tmp" + or die "\nCannot open file: $!"; + print $fh $content; + close $fh; + + rename + "$path.tmp", + $path; +} </pre> <br /> <span>---</span><br /> <br /> -<h3 style='display: inline' id='dtail'>dtail</h3><br /> +<h3 style='display: inline' id='ior'>ior</h3><br /> <br /> <ul> -<li>💻 Languages: Go (93.9%), JSON (2.8%), C (2.0%), Make (0.5%), C/C++ (0.3%), Config (0.2%), Shell (0.2%), Docker (0.1%)</li> -<li>📚 Documentation: Text (79.4%), Markdown (20.6%)</li> -<li>📊 Commits: 1049</li> -<li>📈 Lines of Code: 20091</li> -<li>📄 Lines of Documentation: 5674</li> -<li>📅 Development Period: 2020-01-09 to 2025-06-20</li> -<li>🔥 Recent Activity: 52.4 days (avg. age of last 42 commits)</li> -<li>⚖️ License: Apache-2.0</li> -<li>🏷️ Latest Release: v4.2.0 (2023-06-21)</li> +<li>💻 Languages: Go (81.0%), Raku (11.5%), C (4.4%), Make (1.7%), C/C++ (1.5%)</li> +<li>📚 Documentation: Text (63.6%), Markdown (36.4%)</li> +<li>📊 Commits: 330</li> +<li>📈 Lines of Code: 7911</li> +<li>📄 Lines of Documentation: 742</li> +<li>📅 Development Period: 2024-01-18 to 2025-07-12</li> +<li>🔥 Recent Activity: 56.3 days (avg. age of last 42 commits)</li> +<li>⚖️ License: No license found</li> +<li>🧪 Status: Experimental (no releases yet)</li> <li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> </ul><br /> <br /> -<a href='showcase/dtail/image-1.png'><img alt='dtail screenshot' title='dtail screenshot' src='showcase/dtail/image-1.png' /></a><br /> +<a href='showcase/ior/image-1.png'><img alt='ior screenshot' title='ior screenshot' src='showcase/ior/image-1.png' /></a><br /> <br /> -<span>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.</span><br /> +<span>Based on my analysis of the codebase, here's a comprehensive summary of the I/O Riot NG (ior) project:</span><br /> <br /> -<a href='showcase/dtail/image-2.gif'><img alt='dtail screenshot' title='dtail screenshot' src='showcase/dtail/image-2.gif' /></a><br /> +<a href='showcase/ior/image-2.svg'><img alt='ior screenshot' title='ior screenshot' src='showcase/ior/image-2.svg' /></a><br /> <br /> -<span>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.</span><br /> +<span>**I/O Riot NG** is a Linux-based performance monitoring tool that uses eBPF (extended Berkeley Packet Filter) to trace synchronous I/O system calls and analyze their execution times. This tool is particularly valuable for system performance analysis, allowing developers and system administrators to visualize I/O bottlenecks through detailed flamegraphs. It serves as a modern successor to the original I/O Riot project, migrating from SystemTap/C to a Go/C/BPF implementation for better performance and maintainability.</span><br /> <br /> -<a class='textlink' href='https://codeberg.org/snonux/dtail'>View on Codeberg</a><br /> -<a class='textlink' href='https://github.com/snonux/dtail'>View on GitHub</a><br /> +<span>The architecture combines kernel-level tracing with user-space analysis: eBPF programs (<span class='inlinecode'>internal/c/ior.bpf.c</span>) attach to kernel tracepoints to capture syscall entry/exit events, which are then processed by a Go-based event loop (<span class='inlinecode'>internal/eventloop.go</span>) that correlates enter/exit pairs, tracks file descriptors, and measures timing. The tool can operate in real-time mode for live monitoring or post-processing mode to generate flamegraphs from previously collected data using the Inferno flamegraph library. Key features include filtering capabilities for specific processes or file patterns, comprehensive statistics collection, and support for various I/O syscalls like open, read, write, close, and dup operations.</span><br /> +<br /> +<a class='textlink' href='https://codeberg.org/snonux/ior'>View on Codeberg</a><br /> +<a class='textlink' href='https://github.com/snonux/ior'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>internal/io/signal/signal.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>internal/file/file.go</span>:</span><br /> <br /> <pre> -func InterruptCh(ctx context.Context) <-chan string { - sigIntCh := make(chan os.Signal, 10) - gosignal.Notify(sigIntCh, os.Interrupt) - sigOtherCh := make(chan os.Signal, 10) - gosignal.Notify(sigOtherCh, syscall.SIGHUP, syscall.SIGTERM, syscall.SIGQUIT) - statsCh := make(chan string) - - go func() { - for { - select { - case <-sigIntCh: - select { - case statsCh <- "Hint: Hit Ctrl+C again to exit": - select { - case <-sigIntCh: - os.Exit(0) - case <-time.After(time.Second * time.Duration(config.InterruptTimeoutS)): - } - default: - } - case <-sigOtherCh: - os.Exit(0) - case <-ctx.Done(): - return - } - } - }() - return statsCh +func NewFd(fd int32, name []byte, flags int32) FdFile { + f := FdFile{ + fd: fd, + name: types.StringValue(name), + flags: Flags(flags), + } + if f.flags == -1 { + panic(fmt.Sprintf("DEBUG with -1 flags: %v", f)) + } + return f } </pre> <br /> @@ -328,7 +290,7 @@ func InterruptCh(ctx context.Context) <-chan string { <li>📈 Lines of Code: 396</li> <li>📄 Lines of Documentation: 24</li> <li>📅 Development Period: 2025-04-18 to 2025-05-11</li> -<li>🔥 Recent Activity: 71.7 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 74.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🏷️ Latest Release: v1.0.0 (2025-05-11)</li> </ul><br /> @@ -353,51 +315,6 @@ def initialize(myself) <br /> <span>---</span><br /> <br /> -<h3 style='display: inline' id='ior'>ior</h3><br /> -<br /> -<ul> -<li>💻 Languages: C (54.7%), Go (37.4%), Raku (5.4%), Make (1.4%), C/C++ (1.1%)</li> -<li>📚 Documentation: Text (84.1%), Markdown (15.9%)</li> -<li>📊 Commits: 316</li> -<li>📈 Lines of Code: 9835</li> -<li>📄 Lines of Documentation: 559</li> -<li>📅 Development Period: 2024-01-18 to 2025-06-14</li> -<li>🔥 Recent Activity: 83.7 days (avg. age of last 42 commits)</li> -<li>⚖️ License: No license found</li> -<li>🧪 Status: Experimental (no releases yet)</li> -</ul><br /> -<br /> -<a href='showcase/ior/image-1.png'><img alt='ior screenshot' title='ior screenshot' src='showcase/ior/image-1.png' /></a><br /> -<br /> -<span>Based on my analysis of the codebase, here's a comprehensive summary of the I/O Riot NG (ior) project:</span><br /> -<br /> -<a href='showcase/ior/image-2.svg'><img alt='ior screenshot' title='ior screenshot' src='showcase/ior/image-2.svg' /></a><br /> -<br /> -<span>**I/O Riot NG** is a Linux-based performance monitoring tool that uses eBPF (extended Berkeley Packet Filter) to trace synchronous I/O system calls and analyze their execution times. This tool is particularly valuable for system performance analysis, allowing developers and system administrators to visualize I/O bottlenecks through detailed flamegraphs. It serves as a modern successor to the original I/O Riot project, migrating from SystemTap/C to a Go/C/BPF implementation for better performance and maintainability.</span><br /> -<br /> -<span>The architecture combines kernel-level tracing with user-space analysis: eBPF programs (<span class='inlinecode'>internal/c/ior.bpf.c</span>) attach to kernel tracepoints to capture syscall entry/exit events, which are then processed by a Go-based event loop (<span class='inlinecode'>internal/eventloop.go</span>) that correlates enter/exit pairs, tracks file descriptors, and measures timing. The tool can operate in real-time mode for live monitoring or post-processing mode to generate flamegraphs from previously collected data using the Inferno flamegraph library. Key features include filtering capabilities for specific processes or file patterns, comprehensive statistics collection, and support for various I/O syscalls like open, read, write, close, and dup operations.</span><br /> -<br /> -<a class='textlink' href='https://codeberg.org/snonux/ior'>View on Codeberg</a><br /> -<a class='textlink' href='https://github.com/snonux/ior'>View on GitHub</a><br /> -<br /> -<span>C from <span class='inlinecode'>tools/forktest.c</span>:</span><br /> -<br /> -<pre> -int main() { - int fd = open("testfile", O_WRONLY| O_CREAT, 0644); - if (fd < 0) { - perror("open"); - return 1; - } - int flags = fcntl(fd, F_GETFL); - printf("Parent: File access mode is O_RDWR|O_CREAT (%d %d %d)\n", flags, - O_RDWR|O_CREAT, O_WRONLY|O_CREAT); - - pid_t pid = fork(); -</pre> -<br /> -<span>---</span><br /> -<br /> <h3 style='display: inline' id='ds-sim'>ds-sim</h3><br /> <br /> <ul> @@ -407,7 +324,7 @@ int main() { <li>📈 Lines of Code: 25762</li> <li>📄 Lines of Documentation: 3101</li> <li>📅 Development Period: 2008-05-15 to 2025-06-27</li> -<li>🔥 Recent Activity: 85.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 88.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> <li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> @@ -422,28 +339,16 @@ int main() { <a class='textlink' href='https://codeberg.org/snonux/ds-sim'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/ds-sim'>View on GitHub</a><br /> <br /> -<span>Java from <span class='inlinecode'>src/main/java/simulator/VSCreateTask.java</span>:</span><br /> +<span>Java from <span class='inlinecode'>src/main/java/protocols/implementations/VSPingPongProtocol.java</span>:</span><br /> <br /> <pre> -private String eventClassname; +private int clientCounter; -private String menuText; +private int serverCounter; -private String protocolClassname; - -private String shortname; - -private boolean isProtocolActivation; - -private boolean isProtocolDeactivation; - -private boolean isClientProtocol; - -private boolean isRequest; - -public VSCreateTask(String menuText, String eventClassname) { - this.menuText = menuText; - this.eventClassname = eventClassname; +public VSPingPongProtocol() { + super(VSAbstractProtocol.HAS_ON_CLIENT_START); + setClassname(getClass().toString()); } </pre> <br /> @@ -458,7 +363,7 @@ public VSCreateTask(String menuText, String eventClassname) { <li>📈 Lines of Code: 33</li> <li>📄 Lines of Documentation: 3</li> <li>📅 Development Period: 2025-04-03 to 2025-04-03</li> -<li>🔥 Recent Activity: 97.6 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 100.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -489,7 +394,7 @@ func main() { <li>📈 Lines of Code: 3967</li> <li>📄 Lines of Documentation: 411</li> <li>📅 Development Period: 2024-05-04 to 2025-06-12</li> -<li>🔥 Recent Activity: 114.5 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 117.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🏷️ Latest Release: v1.0.0 (2025-03-04)</li> <li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> @@ -506,16 +411,29 @@ func main() { <a class='textlink' href='https://codeberg.org/snonux/gos'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/gos'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>internal/platforms/linkedin/linkedin.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>internal/config/args.go</span>:</span><br /> <br /> <pre> -func postImageToLinkedInAPI(ctx context.Context, personURN, accessToken, - imagePath string) (string, error) { - uploadURL, imageURN, err := initializeImageUpload(ctx, personURN, accessToken) - if err != nil { - return imageURN, err +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 + } } - return imageURN, performImageUpload(ctx, imagePath, uploadURL, accessToken) + return nil } </pre> <br /> @@ -526,13 +444,13 @@ func postImageToLinkedInAPI(ctx context.Context, personURN, accessToken, <ul> <li>💻 Languages: Perl (100.0%)</li> <li>📚 Documentation: Markdown (85.1%), Text (14.9%)</li> -<li>📊 Commits: 68</li> -<li>📈 Lines of Code: 1556</li> +<li>📊 Commits: 70</li> +<li>📈 Lines of Code: 1586</li> <li>📄 Lines of Documentation: 154</li> -<li>📅 Development Period: 2023-01-02 to 2025-07-09</li> -<li>🔥 Recent Activity: 128.9 days (avg. age of last 42 commits)</li> +<li>📅 Development Period: 2023-01-02 to 2025-07-12</li> +<li>🔥 Recent Activity: 121.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> -<li>🧪 Status: Experimental (no releases yet)</li> +<li>🏷️ Latest Release: v0.1.0 (2025-07-12)</li> </ul><br /> <br /> <span>Based on the README and project structure, **foostats** is a privacy-respecting web analytics tool written in Perl specifically designed for OpenBSD systems. It processes both traditional HTTP/HTTPS logs and Gemini protocol logs to generate comprehensive traffic statistics while maintaining visitor privacy through SHA3-512 IP hashing. The tool is built for the foo.zone ecosystem and similar sites that need analytics without compromising user privacy.</span><br /> @@ -568,7 +486,7 @@ sub write ( $path, $content ) { <li>📈 Lines of Code: 1373</li> <li>📄 Lines of Documentation: 48</li> <li>📅 Development Period: 2024-12-05 to 2025-02-28</li> -<li>🔥 Recent Activity: 138.3 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 141.6 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -580,16 +498,17 @@ sub write ( $path, $content ) { <a class='textlink' href='https://codeberg.org/snonux/rcm'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/rcm'>View on GitHub</a><br /> <br /> -<span>Ruby from <span class='inlinecode'>lib/dslkeywords/package.rb</span>:</span><br /> +<span>Ruby from <span class='inlinecode'>lib/dslkeywords/given.rb</span>:</span><br /> <br /> <pre> -def package(name, &block) - return unless @conds_met +def respond_to_missing? = true - f = Package.new(name) - f.packages(f.instance_eval(&block)) - self << f - f +def met? + return false if @conds.key?(:hostname) && Socket.gethostname != + @conds[:hostname].to_s + + true +end </pre> <br /> <span>---</span><br /> @@ -603,7 +522,7 @@ def package(name, &block) <li>📈 Lines of Code: 2268</li> <li>📄 Lines of Documentation: 1180</li> <li>📅 Development Period: 2021-05-21 to 2025-07-09</li> -<li>🔥 Recent Activity: 200.7 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 204.0 days (avg. age of last 42 commits)</li> <li>⚖️ License: GPL-3.0</li> <li>🏷️ Latest Release: 3.0.0 (2024-10-01)</li> </ul><br /> @@ -640,7 +559,7 @@ while read -r src; do <li>📈 Lines of Code: 917</li> <li>📄 Lines of Documentation: 33</li> <li>📅 Development Period: 2024-01-20 to 2025-07-06</li> -<li>🔥 Recent Activity: 448.3 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 451.6 days (avg. age of last 42 commits)</li> <li>⚖️ License: MIT</li> <li>🏷️ Latest Release: v0.0.3 (2025-07-06)</li> </ul><br /> @@ -712,7 +631,7 @@ func createPreferenceWindow(a fyne.App) fyne.Window { <li>📈 Lines of Code: 12</li> <li>📄 Lines of Documentation: 3</li> <li>📅 Development Period: 2024-03-24 to 2024-03-24</li> -<li>🔥 Recent Activity: 472.1 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 475.4 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -750,7 +669,7 @@ aws: build <li>📈 Lines of Code: 2850</li> <li>📄 Lines of Documentation: 52</li> <li>📅 Development Period: 2023-08-27 to 2025-04-05</li> -<li>🔥 Recent Activity: 502.1 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 505.4 days (avg. age of last 42 commits)</li> <li>⚖️ License: MIT</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -762,17 +681,73 @@ aws: build <a class='textlink' href='https://codeberg.org/snonux/terraform'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/terraform'>View on GitHub</a><br /> <br /> -<span>HCL from <span class='inlinecode'>s3-org-buetow-tfstate/main.tf</span>:</span><br /> +<span>HCL from <span class='inlinecode'>org-buetow-base/ecr.tf</span>:</span><br /> <br /> <pre> -terraform { - backend "s3" { - bucket = "org-buetow-tfstate" - key = "s3-org-buetow-tfstate/terraform.tfstate" - region = "eu-central-1" - encrypt = true +resource "aws_ecr_repository" "radicale-read" { + name = "radicale" + + tags = { + Name = "radicale" } } + +resource "aws_iam_policy" "ecr_radicale_read" { +</pre> +<br /> +<span>---</span><br /> +<br /> +<h3 style='display: inline' id='gogios'>gogios</h3><br /> +<br /> +<ul> +<li>💻 Languages: Go (94.4%), YAML (3.4%), JSON (2.2%)</li> +<li>📚 Documentation: Markdown (100.0%)</li> +<li>📊 Commits: 77</li> +<li>📈 Lines of Code: 1096</li> +<li>📄 Lines of Documentation: 287</li> +<li>📅 Development Period: 2023-04-17 to 2025-06-12</li> +<li>🔥 Recent Activity: 518.3 days (avg. age of last 42 commits)</li> +<li>⚖️ License: Custom License</li> +<li>🏷️ Latest Release: v1.1.0 (2024-05-03)</li> +<li>🤖 AI-Assisted: This project was partially created with the help of generative AI</li> +</ul><br /> +<br /> +<a href='showcase/gogios/image-1.png'><img alt='gogios screenshot' title='gogios screenshot' src='showcase/gogios/image-1.png' /></a><br /> +<br /> +<span>Gogios is a lightweight, minimalistic monitoring tool written in Go designed for small-scale server monitoring. It executes standard Nagios-compatible check plugins and sends email notifications only when service states change, making it ideal for personal infrastructure or small environments with limited resources. The tool emphasizes simplicity over complexity, avoiding the bloat of enterprise monitoring solutions like Nagios, Icinga, or Prometheus by eliminating features like web UIs, databases, contact groups, and clustering.</span><br /> +<br /> +<span>The implementation follows a clean architecture with concurrent check execution, dependency management, and persistent state tracking. Key features include state-based notifications (only alerts on status changes), configurable retry logic, federation support for distributed monitoring, and stale detection for checks that haven't run recently. The tool is configured via JSON and requires only a local mail transfer agent for notifications. It's designed to run via cron jobs and supports high-availability setups through simple dual-server configurations, making it perfect for users who want effective monitoring without operational overhead.</span><br /> +<br /> +<a class='textlink' href='https://codeberg.org/snonux/gogios'>View on Codeberg</a><br /> +<a class='textlink' href='https://github.com/snonux/gogios'>View on GitHub</a><br /> +<br /> +<span>Go from <span class='inlinecode'>internal/check.go</span>:</span><br /> +<br /> +<pre> +func (c check) run(ctx context.Context, name string) checkResult { + cmd := exec.CommandContext(ctx, c.Plugin, c.Args...) + + var bytes bytes.Buffer + cmd.Stdout = &bytes + cmd.Stderr = &bytes + + if err := cmd.Run(); err != nil { + if ctx.Err() == context.DeadlineExceeded { + return checkResult{name, "Check command timed out", time.Now().Unix(), + nagiosCritical, false} + } + } + + parts := strings.Split(bytes.String(), "|") + output := strings.TrimSpace(parts[0]) + + ec := cmd.ProcessState.ExitCode() + if ec < int(nagiosOk) || ec > int(nagiosUnknown) { + ec = int(nagiosUnknown) + } + + return checkResult{name, output, time.Now().Unix(), nagiosCode(ec), false} +} </pre> <br /> <span>---</span><br /> @@ -786,7 +761,7 @@ terraform { <li>📈 Lines of Code: 32</li> <li>📄 Lines of Documentation: 3</li> <li>📅 Development Period: 2023-12-31 to 2023-12-31</li> -<li>🔥 Recent Activity: 555.7 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 558.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -824,7 +799,7 @@ run: build <li>📈 Lines of Code: 29</li> <li>📄 Lines of Documentation: 3</li> <li>📅 Development Period: 2023-08-13 to 2024-01-01</li> -<li>🔥 Recent Activity: 648.9 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 652.2 days (avg. age of last 42 commits)</li> <li>⚖️ License: MIT</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -863,7 +838,7 @@ aws: <li>📈 Lines of Code: 1525</li> <li>📄 Lines of Documentation: 15</li> <li>📅 Development Period: 2023-04-17 to 2023-11-19</li> -<li>🔥 Recent Activity: 701.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 704.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -875,15 +850,16 @@ aws: <a class='textlink' href='https://codeberg.org/snonux/gorum'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/gorum'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>internal/utils/string.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>internal/vote/vote.go</span>:</span><br /> <br /> <pre> - "strings" -) +func New(conf config.Config, ids ...string) (Vote, error) { + var v Vote + + v.FromID = conf.MyID + v.IDs = ids -func StripPort(addr string) string { - parts := strings.Split(addr, ":") - return parts[0] + return v, nil } </pre> <br /> @@ -898,7 +874,7 @@ func StripPort(addr string) string { <li>📈 Lines of Code: 3 |
