diff options
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: 312</li> <li>📄 Lines of Documentation: 416</li> <li>📅 Development Period: 2013-03-22 to 2025-05-18</li> -<li>🔥 Recent Activity: 751.1 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 754.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: v1.0.0 (2023-04-29)</li> </ul><br /> @@ -933,76 +909,6 @@ method output-trim(Str \str, UInt \line-limit --> Str) { <br /> <span>---</span><br /> <br /> -<h3 style='display: inline' id='gogios'>gogios</h3><br /> -<br /> -<ul> -<li>💻 Languages: Go (90.8%), YAML (5.6%), JSON (3.6%)</li> -<li>📚 Documentation: Markdown (100.0%)</li> -<li>📊 Commits: 77</li> -<li>📈 Lines of Code: 662</li> -<li>📄 Lines of Documentation: 195</li> -<li>📅 Development Period: 2023-04-17 to 2024-05-03</li> -<li>🔥 Recent Activity: 762.0 days (avg. age of last 42 commits)</li> -<li>⚖️ License: Custom License</li> -<li>🏷️ Latest Release: v1.1.0 (2024-05-03)</li> -</ul><br /> -<span>⚠️ **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.</span><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/state.go</span>:</span><br /> -<br /> -<pre> -func readState(conf config) (state, error) { - s := state{ - stateFile: fmt.Sprintf("%s/state.json", conf.StateDir), - checks: make(map[string]checkState), - } - - if _, err := os.Stat(s.stateFile); err != nil { - return s, nil - } - - file, err := os.Open(s.stateFile) - if err != nil { - return s, err - } - defer file.Close() - - bytes, err := io.ReadAll(file) - if err != nil { - return s, err - } - - if err := json.Unmarshal(bytes, &s.checks); err != nil { - return s, err - } - - 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 -} -</pre> -<br /> -<span>---</span><br /> -<br /> <h3 style='display: inline' id='randomjournalpage'>randomjournalpage</h3><br /> <br /> <ul> @@ -1012,7 +918,7 @@ func readState(conf config) (state, error) { <li>📈 Lines of Code: 51</li> <li>📄 Lines of Documentation: 26</li> <li>📅 Development Period: 2022-06-02 to 2024-04-20</li> -<li>🔥 Recent Activity: 765.8 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 769.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1037,6 +943,63 @@ declare -i NUM_PAGES_TO_EXTRACT=42 # This is the answear! <br /> <span>---</span><br /> <br /> +<h3 style='display: inline' id='dtail'>dtail</h3><br /> +<br /> +<ul> +<li>💻 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%)</li> +<li>📚 Documentation: Text (80.4%), Markdown (19.6%)</li> +<li>📊 Commits: 1049</li> +<li>📈 Lines of Code: 13525</li> +<li>📄 Lines of Documentation: 5375</li> +<li>📅 Development Period: 2020-01-09 to 2023-10-05</li> +<li>🔥 Recent Activity: 781.8 days (avg. age of last 42 commits)</li> +<li>⚖️ License: Apache-2.0</li> +<li>🏷️ Latest Release: v4.2.0 (2023-06-21)</li> +</ul><br /> +<span>⚠️ **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.</span><br /> +<br /> +<a href='showcase/dtail/image-1.png'><img alt='dtail screenshot' title='dtail screenshot' src='showcase/dtail/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 /> +<br /> +<a href='showcase/dtail/image-2.gif'><img alt='dtail screenshot' title='dtail screenshot' src='showcase/dtail/image-2.gif' /></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 /> +<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 /> +<br /> +<span>Go from <span class='inlinecode'>internal/io/fs/readfilelcontext.go</span>:</span><br /> +<br /> +<pre> +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 +} +</pre> +<br /> +<span>---</span><br /> +<br /> <h3 style='display: inline' id='sway-autorotate'>sway-autorotate</h3><br /> <br /> <ul> @@ -1046,7 +1009,7 @@ declare -i NUM_PAGES_TO_EXTRACT=42 # This is the answear! <li>📈 Lines of Code: 41</li> <li>📄 Lines of Documentation: 17</li> <li>📅 Development Period: 2020-01-30 to 2025-04-30</li> -<li>🔥 Recent Activity: 1059.3 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 1062.6 days (avg. age of last 42 commits)</li> <li>⚖️ License: GPL-3.0</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1081,7 +1044,7 @@ declare -r SCREEN=eDP-1 <li>📈 Lines of Code: 342</li> <li>📄 Lines of Documentation: 39</li> <li>📅 Development Period: 2011-11-19 to 2022-04-02</li> -<li>🔥 Recent Activity: 1278.9 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 1282.2 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.5.0 (2022-02-21)</li> </ul><br /> @@ -1124,7 +1087,7 @@ scalephotos () { <li>📈 Lines of Code: 1728</li> <li>📄 Lines of Documentation: 18</li> <li>📅 Development Period: 2020-07-12 to 2023-04-09</li> -<li>🔥 Recent Activity: 1430.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 1433.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1137,21 +1100,16 @@ scalephotos () { <a class='textlink' href='https://codeberg.org/snonux/algorithms'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/algorithms'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>queue/elementarypriority.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>queue/priority.go</span>:</span><br /> <br /> <pre> -func (q *ElementaryPriority[T]) DeleteMax() T { - if q.Empty() { - return 0 - } - - ind, max := q.max() - for i := ind + 1; i < q.Size(); i++ { - q.a[i-1] = q.a[i] - } - q.a = q.a[0 : len(q.a)-1] - - return max +type PriorityQueue interface { + Insert(a int) + Max() (max int) + DeleteMax() int + Empty() bool + Size() int + Clear() } </pre> <br /> @@ -1166,7 +1124,7 @@ func (q *ElementaryPriority[T]) DeleteMax() T { <li>📈 Lines of Code: 671</li> <li>📄 Lines of Documentation: 19</li> <li>📅 Development Period: 2018-05-26 to 2025-01-21</li> -<li>🔥 Recent Activity: 1431.8 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 1435.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1196,11 +1154,11 @@ def out(message, prefix, flag = :none) <br /> <ul> <li>📚 Documentation: Markdown (100.0%)</li> -<li>📊 Commits: 2905</li> +<li>📊 Commits: 2911</li> <li>📈 Lines of Code: 0</li> <li>📄 Lines of Documentation: 23</li> <li>📅 Development Period: 2021-05-21 to 2022-04-02</li> -<li>🔥 Recent Activity: 1445.6 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 1448.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1224,7 +1182,7 @@ def out(message, prefix, flag = :none) <li>📈 Lines of Code: 51</li> <li>📄 Lines of Documentation: 69</li> <li>📅 Development Period: 2014-03-24 to 2022-04-23</li> -<li>🔥 Recent Activity: 1911.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 1914.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1259,7 +1217,7 @@ sub hello() { <li>📈 Lines of Code: 12420</li> <li>📄 Lines of Documentation: 610</li> <li>📅 Development Period: 2018-03-01 to 2020-01-22</li> -<li>🔥 Recent Activity: 2452.5 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 2455.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: Apache-2.0</li> <li>🏷️ Latest Release: 0.5.1 (2019-01-04)</li> </ul><br /> @@ -1285,7 +1243,7 @@ sub hello() { <li>📈 Lines of Code: 919</li> <li>📄 Lines of Documentation: 12</li> <li>📅 Development Period: 2015-01-02 to 2021-11-04</li> -<li>🔥 Recent Activity: 2961.2 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 2964.5 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 1.1.3 (2015-01-02)</li> </ul><br /> @@ -1298,7 +1256,7 @@ sub hello() { <a class='textlink' href='https://codeberg.org/snonux/staticfarm-apache-handlers'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/staticfarm-apache-handlers'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>src/StaticFarm/API.pm</span>:</span><br /> +<span>Perl from <span class='inlinecode'>debian/staticfarm-apache-handlers/usr/share/staticfarm/apache/handlers/StaticFarm/API.pm</span>:</span><br /> <br /> <pre> sub handler { @@ -1357,7 +1315,7 @@ sub handler { <li>📈 Lines of Code: 18</li> <li>📄 Lines of Documentation: 49</li> <li>📅 Development Period: 2014-03-24 to 2021-11-05</li> -<li>🔥 Recent Activity: 3197.1 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3200.4 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1381,7 +1339,7 @@ sub handler { <li>📈 Lines of Code: 5360</li> <li>📄 Lines of Documentation: 789</li> <li>📅 Development Period: 2015-01-02 to 2021-11-05</li> -<li>🔥 Recent Activity: 3463.8 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3467.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 1.0.1 (2015-01-02)</li> </ul><br /> @@ -1394,7 +1352,7 @@ sub handler { <a class='textlink' href='https://codeberg.org/snonux/mon'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/mon'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>debian/mon/usr/share/mon/lib/MAPI/RESTlos.pm</span>:</span><br /> +<span>Perl from <span class='inlinecode'>lib/MON/Cache.pm</span>:</span><br /> <br /> <pre> sub new { @@ -1419,7 +1377,7 @@ sub new { <li>📈 Lines of Code: 273</li> <li>📄 Lines of Documentation: 32</li> <li>📅 Development Period: 2015-09-29 to 2021-11-05</li> -<li>🔥 Recent Activity: 3468.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3471.2 days (avg. age of last 42 commits)</li> <li>⚖️ License: Apache-2.0</li> <li>🏷️ Latest Release: 0 (2015-10-26)</li> </ul><br /> @@ -1456,7 +1414,7 @@ def initialize <li>📈 Lines of Code: 1839</li> <li>📄 Lines of Documentation: 412</li> <li>📅 Development Period: 2015-01-02 to 2021-11-05</li> -<li>🔥 Recent Activity: 3547.6 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3550.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 1.0.2 (2015-01-02)</li> </ul><br /> @@ -1469,34 +1427,23 @@ def initialize <a class='textlink' href='https://codeberg.org/snonux/pingdomfetch'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/pingdomfetch'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>lib/PINGDOMFETCH/Pingdom.pm</span>:</span><br /> +<span>Perl from <span class='inlinecode'>lib/PINGDOMFETCH/Pingdomfetch.pm</span>:</span><br /> <br /> <pre> sub new { - my ( $class, $config ) = @_; + my ( $class, $opts ) = @_; - my $app_key = $config->get('pingdom.api.app.key'); - my $host = $config->get('pingdom.api.host'); - my $port = $config->get('pingdom.api.port'); - my $protocol = $config->get('pingdom.api.protocol'); - - my $json = JSON->new()->allow_nonref(); - - - my $headers = { - 'App-key' => $app_key, - 'User-Agent' => 'pingdomfetch', - }; - - my $url_base = "$protocol://$host:$port"; + my $config = PINGDOMFETCH::Config->new($opts); + my $pingdom = PINGDOMFETCH::Pingdom->new($config); my $self = bless { - config => $config, - json => $json, - url_base => $url_base, - headers => $headers, + config => $config, + pingdom => $pingdom, + dots_counter => 0, }, $class; + $self->init_from_to_interval(); + return $self; } </pre> @@ -1512,7 +1459,7 @@ sub new { <li>📈 Lines of Code: 499</li> <li>📄 Lines of Documentation: 8</li> <li>📅 Development Period: 2015-05-24 to 2021-11-03</li> -<li>🔥 Recent Activity: 3558.3 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3561.6 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.1 (2015-06-01)</li> </ul><br /> @@ -1525,23 +1472,40 @@ sub new { <a class='textlink' href='https://codeberg.org/snonux/gotop'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/gotop'>View on GitHub</a><br /> <br /> -<span>Go from <span class='inlinecode'>utils/utils.go</span>:</span><br /> +<span>Go from <span class='inlinecode'>process/process.go</span>:</span><br /> <br /> <pre> -func Slurp(what *string, path string) error { - bytes, err := ioutil.ReadFile(path) +func new(pidstr string) (Process, error) { + pid, err := strconv.Atoi(pidstr) if err != nil { - return err + 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 + } + + if err = utils.Slurp(&p.Comm, fmt.Sprintf("/proc/%d/comm", pid)); err != nil { + return p, 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 { - for _, byte := range bytes { - if byte == 0 { - *what += " " - } else { - *what += string(byte) - } - } + p.Id = fmt.Sprintf("(%s) %s", pidstr, p.Cmdline) } - return nil + + return p, err } </pre> <br /> @@ -1554,7 +1518,7 @@ func Slurp(what *string, path string) error { <li>📊 Commits: 670</li> <li>📈 Lines of Code: 1675</li> <li>📅 Development Period: 2011-03-06 to 2018-12-22</li> -<li>🔥 Recent Activity: 3614.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3617.2 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🏷️ Latest Release: v1.0.0 (2018-12-22)</li> </ul><br /> @@ -1569,22 +1533,18 @@ func Slurp(what *string, path string) error { <a class='textlink' href='https://codeberg.org/snonux/xerl'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/xerl'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>Xerl/XML/Element.pm</span>:</span><br /> +<span>Perl from <span class='inlinecode'>Xerl/XML/Reader.pm</span>:</span><br /> <br /> <pre> -sub starttag { - my $self = $_[0]; - my ( $name, $temp ) = ( $_[1], undef ); - - return $self if $self->get_name() eq $name; - return undef if ref $self->get_array() ne 'ARRAY'; +sub open { + my $self = shift; - for ( @{ $self->get_array() } ) { - $temp = $_->starttag($name); - return $temp if defined $temp; + if ( -f $self->get_path() ) { + return 0; + } + else { + return 1; } - - return undef; } </pre> <br /> @@ -1599,7 +1559,7 @@ sub starttag { <li>📈 Lines of Code: 88</li> <li>📄 Lines of Documentation: 148</li> <li>📅 Development Period: 2015-06-18 to 2015-12-05</li> -<li>🔥 Recent Activity: 3662.1 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3665.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1614,26 +1574,17 @@ sub starttag { <a class='textlink' href='https://codeberg.org/snonux/debroid'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/debroid'>View on GitHub</a><br /> <br /> -<span>Shell from <span class='inlinecode'>storage/sdcard1/Linux/jessie.sh</span>:</span><br /> +<span>Shell from <span class='inlinecode'>data/local/userinit.sh</span>:</span><br /> <br /> <pre> -function mount_chroot { - mountpoint $ROOT - if [ $? -ne 0 ]; then - losetup $LOOP_DEVICE $ROOT.img - busybox mount -t ext4 $LOOP_DEVICE $ROOT - fi - for mountpoint in proc dev sys dev/pts; do - mountpoint $ROOT/$mountpoint - if [ $? -ne 0 ]; then - busybox mount --bind /$mountpoint $ROOT/$mountpoint - fi - done - mountpoint $ROOT/storage/sdcard1 - if [ $? -ne 0 ]; then - busybox mount --bind /storage/sdcard1 $ROOT/storage/sdcard1 +while : ; do + if [ -d /storage/sdcard1/Linux/jessie ]; then + cd /storage/sdcard1/Linux && /system/bin/sh jessie.sh start_services + /system/bin/date + exit 0 fi -} + /system/bin/sleep 1 +done </pre> <br /> <span>---</span><br /> @@ -1647,7 +1598,7 @@ function mount_chroot { <li>📈 Lines of Code: 1681</li> <li>📄 Lines of Documentation: 539</li> <li>📅 Development Period: 2014-03-10 to 2021-11-03</li> -<li>🔥 Recent Activity: 3940.1 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3943.3 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 1.0.2 (2014-11-17)</li> </ul><br /> @@ -1688,7 +1639,7 @@ class BIGIP(object): <li>📈 Lines of Code: 65</li> <li>📄 Lines of Documentation: 228</li> <li>📅 Development Period: 2013-03-22 to 2021-11-04</li> -<li>🔥 Recent Activity: 3994.5 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 3997.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.0.0.0 (2013-03-22)</li> </ul><br /> @@ -1724,7 +1675,7 @@ build: <li>📈 Lines of Code: 136</li> <li>📄 Lines of Documentation: 96</li> <li>📅 Development Period: 2013-03-22 to 2021-11-05</li> -<li>🔥 Recent Activity: 4007.5 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4010.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.2.0 (2014-07-05)</li> </ul><br /> @@ -1760,7 +1711,7 @@ build: <li>📈 Lines of Code: 134</li> <li>📄 Lines of Documentation: 106</li> <li>📅 Development Period: 2013-03-22 to 2021-11-05</li> -<li>🔥 Recent Activity: 4015.0 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4018.2 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.1.5 (2014-06-22)</li> </ul><br /> @@ -1784,7 +1735,7 @@ build: <li>📈 Lines of Code: 493</li> <li>📄 Lines of Documentation: 26</li> <li>📅 Development Period: 2009-09-27 to 2021-11-02</li> -<li>🔥 Recent Activity: 4058.3 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4061.5 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.9.3 (2014-06-14)</li> </ul><br /> @@ -1825,7 +1776,7 @@ function findbin () { <li>📈 Lines of Code: 286</li> <li>📄 Lines of Documentation: 144</li> <li>📅 Development Period: 2013-03-22 to 2021-11-05</li> -<li>🔥 Recent Activity: 4063.3 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4066.6 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.4.3 (2014-06-16)</li> </ul><br /> @@ -1849,7 +1800,7 @@ function findbin () { <li>📈 Lines of Code: 191</li> <li>📄 Lines of Documentation: 8</li> <li>📅 Development Period: 2014-03-24 to 2014-03-24</li> -<li>🔥 Recent Activity: 4124.6 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4127.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1862,18 +1813,18 @@ function findbin () { <a class='textlink' href='https://codeberg.org/snonux/perl-poetry'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/perl-poetry'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>math.pl</span>:</span><br /> +<span>Perl from <span class='inlinecode'>perllove.pl</span>:</span><br /> <br /> <pre> -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 }; +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 </pre> <br /> <span>---</span><br /> @@ -1885,7 +1836,7 @@ and m/ove /o;$n and study }; <li>📊 Commits: 7</li> <li>📈 Lines of Code: 80</li> <li>📅 Development Period: 2011-07-09 to 2015-01-13</li> -<li>🔥 Recent Activity: 4204.6 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4207.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -1930,40 +1881,16 @@ if ($ENV{SERVER_NAME} eq 'ipv6.buetow.org') { <br /> <span>---</span><br /> <br /> -<h3 style='display: inline' id='cpuinfo'>cpuinfo</h3><br /> -<br /> -<ul> -<li>💻 Languages: Shell (53.2%), Make (46.8%)</li> -<li>📚 Documentation: Text (100.0%)</li> -<li>📊 Commits: 28</li> -<li>📈 Lines of Code: 124</li> -<li>📄 Lines of Documentation: 75</li> -<li>📅 Development Period: 2010-11-05 to 2021-11-05</li> -<li>🔥 Recent Activity: 4245.3 days (avg. age of last 42 commits)</li> -<li>⚖️ License: No license found</li> -<li>🏷️ Latest Release: 1.0.2 (2014-06-22)</li> -</ul><br /> -<span>⚠️ **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.</span><br /> -<br /> -<span>**cpuinfo** is a small command-line utility that provides a human-readable summary of CPU information on Linux systems. It parses <span class='inlinecode'>/proc/cpuinfo</span> 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.</span><br /> -<br /> -<span>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 <span class='inlinecode'>/proc/cpuinfo</span> output can be overwhelming.</span><br /> -<br /> -<a class='textlink' href='https://codeberg.org/snonux/cpuinfo'>View on Codeberg</a><br /> -<a class='textlink' href='https://github.com/snonux/cpuinfo'>View on GitHub</a><br /> -<br /> -<span>---</span><br /> -<br /> <h3 style='display: inline' id='loadbars'>loadbars</h3><br /> <br /> <ul> <li>💻 Languages: Perl (97.4%), Make (2.6%)</li> -<li>📚 Documentation: Text (100.0%)</li> +<li>📚 Documentation: Text (93.5%), Markdown (6.5%)</li> <li>📊 Commits: 527</li> <li>📈 Lines of Code: 1828</li> -<li>📄 Lines of Documentation: 100</li> +<li>📄 Lines of Documentation: 107</li> <li>📅 Development Period: 2010-11-05 to 2015-05-23</li> -<li>🔥 Recent Activity: 4275.4 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4215.4 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: 0.7.5 (2014-06-22)</li> </ul><br /> @@ -1976,20 +1903,43 @@ if ($ENV{SERVER_NAME} eq 'ipv6.buetow.org') { <a class='textlink' href='https://codeberg.org/snonux/loadbars'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/loadbars'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>lib/Loadbars/HelpDispatch.pm</span>:</span><br /> +<span>Perl from <span class='inlinecode'>lib/Loadbars/Utils.pm</span>:</span><br /> <br /> <pre> -sub create () { - my $hosts = ''; - - my $textdesc = <<END; -For more help please consult the manual page or press the 'h' hotkey during - program execution and watch this terminal window. -END +sub trim (\$) { + my $str = shift; + $$str =~ s/^[\s\t]+//; + $$str =~ s/[\s\t]+$//; + return undef; +} </pre> <br /> <span>---</span><br /> <br /> +<h3 style='display: inline' id='cpuinfo'>cpuinfo</h3><br /> +<br /> +<ul> +<li>💻 Languages: Shell (53.2%), Make (46.8%)</li> +<li>📚 Documentation: Text (100.0%)</li> +<li>📊 Commits: 28</li> +<li>📈 Lines of Code: 124</li> +<li>📄 Lines of Documentation: 75</li> +<li>📅 Development Period: 2010-11-05 to 2021-11-05</li> +<li>🔥 Recent Activity: 4248.5 days (avg. age of last 42 commits)</li> +<li>⚖️ License: No license found</li> +<li>🏷️ Latest Release: 1.0.2 (2014-06-22)</li> +</ul><br /> +<span>⚠️ **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.</span><br /> +<br /> +<span>**cpuinfo** is a small command-line utility that provides a human-readable summary of CPU information on Linux systems. It parses <span class='inlinecode'>/proc/cpuinfo</span> 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.</span><br /> +<br /> +<span>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 <span class='inlinecode'>/proc/cpuinfo</span> output can be overwhelming.</span><br /> +<br /> +<a class='textlink' href='https://codeberg.org/snonux/cpuinfo'>View on Codeberg</a><br /> +<a class='textlink' href='https://github.com/snonux/cpuinfo'>View on GitHub</a><br /> +<br /> +<span>---</span><br /> +<br /> <h3 style='display: inline' id='perldaemon'>perldaemon</h3><br /> <br /> <ul> @@ -1997,7 +1947,7 @@ END <li>📊 Commits: 110</li> <li>📈 Lines of Code: 614</li> <li>📅 Development Period: 2011-02-05 to 2022-04-21</li> -<li>🔥 Recent Activity: 4324.8 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4328.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🏷️ Latest Release: v1.4 (2022-04-29)</li> </ul><br /> @@ -2010,21 +1960,17 @@ END <a class='textlink' href='https://codeberg.org/snonux/perldaemon'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/perldaemon'>View on GitHub</a><br /> <br /> -<span>Perl from <span class='inlinecode'>lib/PerlDaemon/RunModules.pm</span>:</span><br /> +<span>Perl from <span class='inlinecode'>lib/PerlDaemonModules/ExampleModule2.pm</span>:</span><br /> <br /> <pre> -sub new ($$) { +sub new ($$$) { my ($class, $conf) = @_; my $self = bless { conf => $conf }, $class; + $self->{counter} = 0; - my $modulesdir = $conf->{'daemon.modules.dir'}; - my $logger = $conf->{logger}; - my %loadedmodules; - my %scheduler; - - if (-d $modulesdir) { - $logger->logmsg("Loading modules from $modulesdir"); + return $self; +} </pre> <br /> <span>---</span><br /> @@ -2038,7 +1984,7 @@ sub new ($$) { <li>📈 Lines of Code: 122</li> <li>📄 Lines of Documentation: 10</li> <li>📅 Development Period: 2011-01-27 to 2014-06-22</li> -<li>🔥 Recent Activity: 4655.8 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4659.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: No license found</li> <li>🏷️ Latest Release: v0.2 (2011-01-27)</li> </ul><br /> @@ -2084,7 +2030,7 @@ function read_config_values(config_file) { <li>📈 Lines of Code: 720</li> <li>📄 Lines of Documentation: 6</li> <li>📅 Development Period: 2008-06-21 to 2021-11-03</li> -<li>🔥 Recent Activity: 4718.5 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 4721.8 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🏷️ Latest Release: v0.3 (2009-02-08)</li> </ul><br /> @@ -2139,7 +2085,7 @@ public SPrefs(Component parent, HashMap<String,String> options) { <li>📈 Lines of Code: 17380</li> <li>📄 Lines of Documentation: 947</li> <li>📅 Development Period: 2009-02-07 to 2021-05-01</li> -<li>🔥 Recent Activity: 5349.2 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 5352.5 days (avg. age of last 42 commits)</li> <li>⚖️ License: GPL-2.0</li> <li>🏷️ Latest Release: v0.1 (2009-02-08)</li> </ul><br /> @@ -2156,18 +2102,13 @@ public SPrefs(Component parent, HashMap<String,String> options) { <a class='textlink' href='https://codeberg.org/snonux/netcalendar'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/netcalendar'>View on GitHub</a><br /> <br /> -<span>Java from <span class='inlinecode'>sources/client/helper/DateSpinner.java</span>:</span><br /> +<span>Java from <span class='inlinecode'>sources/client/inputforms/CreateNewEvent.java</span>:</span><br /> <br /> <pre> -private void initComponents() { - setLayout(new FlowLayout(FlowLayout.LEFT, 4, 4)); +private final static long serialVersionUID = 1L; - spinnerDateModel = new SpinnerDateModel(date, null, null, Calendar.MONTH); - JSpinner jSpinner = new JSpinner(spinnerDateModel); - new JSpinner.DateEditor(jSpinner, "MM/yy"); - - add(jSpinner); -} +private final static String[] labels = + { "Description: ", "Category: ", "Place: ", "Yearly: ", "Date: "}; </pre> <br /> <span>---</span><br /> @@ -2181,7 +2122,7 @@ private void initComponents() { <li>📈 Lines of Code: 67884</li> <li>📄 Lines of Documentation: 127</li> <li>📅 Development Period: 2008-05-15 to 2014-06-30</li> -<li>🔥 Recent Activity: 5369.5 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 5372.7 days (avg. age of last 42 commits)</li> <li>⚖️ License: GPL-2.0</li> <li>🏷️ Latest Release: yhttpd-0.7.2 (2013-04-06)</li> </ul><br /> @@ -2198,40 +2139,6 @@ private void initComponents() { <br /> <span>---</span><br /> <br /> -<h3 style='display: inline' id='vs-sim'>vs-sim</h3><br /> -<br /> -<ul> -<li>💻 Languages: Java (98.6%), Shell (0.8%), XML (0.4%)</li> -<li>📚 Documentation: LaTeX (98.4%), Text (1.4%), Markdown (0.2%)</li> -<li>📊 Commits: 411</li> -<li>📈 Lines of Code: 14582</li> -<li>📄 Lines of Documentation: 2903</li> -<li>📅 Development Period: 2008-05-15 to 2022-04-03</li> -<li>🔥 Recent Activity: 5385.5 days (avg. age of last 42 commits)</li> -<li>⚖️ License: Custom License</li> -<li>🏷️ Latest Release: v1.0 (2008-08-24)</li> -</ul><br /> -<span>⚠️ **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.</span><br /> -<br /> -<a href='showcase/vs-sim/image-1.jpg'><img alt='vs-sim screenshot' title='vs-sim screenshot' src='showcase/vs-sim/image-1.jpg' /></a><br /> -<br /> -<span>VS-Sim is an open-source distributed systems simulator written in Java, developed as a diploma thesis at Aachen University of Applied Sciences. It provides a visual environment for simulating and understanding distributed system algorithms including consensus protocols (one-phase/two-phase commit), time synchronization (Berkeley, Lamport, vector clocks), and communication patterns (multicast, broadcast, reliable messaging). The simulator is useful for educational purposes, allowing students and researchers to visualize complex distributed system concepts through interactive simulations.</span><br /> -<br /> -<span>The implementation features a modular architecture with separate packages for core processes, events, protocols, and visualization. It includes pre-built protocol implementations, a GUI-based simulator with start/pause/reset controls, serialization support for saving simulations, and comprehensive time modeling systems. The codebase demonstrates clean separation of concerns with abstract base classes for extensibility and a plugin-like protocol system for easy addition of new distributed algorithms.</span><br /> -<br /> -<a class='textlink' href='https://codeberg.org/snonux/vs-sim'>View on Codeberg</a><br /> -<a class='textlink' href='https://github.com/snonux/vs-sim'>View on GitHub</a><br /> -<br /> -<span>Java from <span class='inlinecode'>sources/exceptions/VSNegativeNumberException.java</span>:</span><br /> -<br /> -<pre> -public class VSNegativeNumberException extends Exception { - private static final long serialVersionUID = 1L; -} -</pre> -<br /> -<span>---</span><br /> -<br /> <h3 style='display: inline' id='hsbot'>hsbot</h3><br /> <br /> <ul> @@ -2239,7 +2146,7 @@ public class VSNegativeNumberException extends Exception { <li>📊 Commits: 80</li> <li>📈 Lines of Code: 601</li> <li>📅 Development Period: 2009-11-22 to 2011-10-17</li> -<li>🔥 Recent Activity: 5444.8 days (avg. age of last 42 commits)</li> +<li>🔥 Recent Activity: 5448.1 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -2252,19 +2159,19 @@ public class VSNegativeNumberException extends Exception { <a class='textlink' href='https://codeberg.org/snonux/hsbot'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/hsbot'>View on GitHub</a><br /> <br /> -<span>Haskell from <span class='inlinecode'>HsBot/Plugins/MessageCounter.hs</span>:</span><br /> +<span>Haskell from <span class='inlinecode'>HsBot/Plugins/PrintMessages.hs</span>:</span><br /> <br /> <pre> -module HsBot.Plugins.MessageCounter (makeMessageCounter) where +module HsBot.Plugins.PrintMessages (makePrintMessages) where import HsBot.Plugins.Base import HsBot.Base.Env import HsBot.Base.State -import HsBot.IRC.User - -update user = user { userMessages = 1 + userMessages user } +printMessages :: CallbackFunction +printMessages str sendMessage env@(Env state _) = do + putStrLn $ (currentChannel state) ++ " " </pre> <br /> <span>---</span><br /> @@ -2272,13 +2179,13 @@ update user = user { userMessages = 1 + userMessages user } <h3 style='display: inline' id='fype'>fype</h3><br /> <br /> <ul> -<li>💻 Languages: C (71.2%), C/C++ (20.7%), HTML (6.6%), Make (1.5%)</li> -<li>📚 Documentation: Text (60.3%), LaTeX (39.7%)</li> +<li>💻 Languages: C (72.1%), C/C++ (20.7%), HTML (5.7%), Make (1.5%)</li> +<li>📚 Documentation: Text (71.3%), LaTeX (28.7%)</li> <li>📊 Commits: 99</li> -<li>📈 Lines of Code: 8954</li> -<li>📄 Lines of Documentation: 1432</li> -<li>📅 Development Period: 2008-05-15 to 2014-06-30</li> -<li>🔥 Recent Activity: 5831.5 days (avg. age of last 42 commits)</li> +<li>📈 Lines of Code: 10196</li> +<li>📄 Lines of Documentation: 1741</li> +<li>📅 Development Period: 2008-05-15 to 2021-11-03</li> +<li>🔥 Recent Activity: 5609.9 days (avg. age of last 42 commits)</li> <li>⚖️ License: Custom License</li> <li>🧪 Status: Experimental (no releases yet)</li> </ul><br /> @@ -2291,19 +2198,28 @@ update user = user { userMessages = 1 + userMessages user } <a class='textlink' href='https://codeberg.org/snonux/fype'>View on Codeberg</a><br /> <a class='textlink' href='https://github.com/snonux/fype'>View on GitHub</a><br /> <br /> -<span>C from <span class='inlinecode'>src/core/scanner.h</span>:</span><br /> +<span>---</span><br /> <br /> -<pre> -typedef struct { - int i_current_line_nr; - int i_current_pos_nr; - int i_num_tokenends; - char *c_filename; - char *c_codestring; - FILE *fp; - List *p_list_token; - TokenType tt_last; -</pre> +<h3 style='display: inline' id='vs-sim'>vs-sim</h3><br /> +<br /> +<ul> +<li>📚 Documentation: Markdown (100.0%)</li> +<li>📊 Commits: 411</li> +<li>📈 Lines of Code: 0</li> +<li>📄 Lines of Documentation: 7</li> +<li>📅 Development Period: 2008-05-15 to 2015-05-23</li> +<li>🔥 Recent Activity: 5809.1 days (avg. age of last 42 commits)</li> +<li>⚖️ License: No license found</li> +<li>🏷️ Latest Release: v1.0 (2008-08-24)</li> +</ul><br /> +<span>⚠️ **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.</span><br /> +<br /> +<span>VS-Sim is an open-source distributed systems simulator written in Java, developed as a diploma thesis at Aachen University of Applied Sciences. It provides a visual environment for simulating and understanding distributed system algorithms including consensus protocols (one-phase/two-phase commit), time synchronization (Berkeley, Lamport, vector clocks), and communication patterns (multicast, broadcast, reliable messaging). The simulator is useful for educational purposes, allowing students and researchers to visualize complex distributed system concepts through interactive simulations.</span><br /> +<br /> +<span>The implementation features a modular architecture with separate packages for core processes, events, protocols, and visualization. It includes pre-built protocol implementations, a GUI-based simulator with start/pause/reset controls, serialization support for saving simulations, and comprehensive time modeling systems. The codebase demonstrates clean separation of concerns with abstract base classes for extensibility and a plugin-like protocol system for easy addition of new distributed algorithms.</span><br /> +<br /> +<a class='textlink' href='https://codeberg.org/snonux/vs-sim'>View on Codeberg</a><br /> +<a class='textlink' href='https://github.com/snonux/vs-sim'>View on GitHub</a><br /> <p class="footer"> Generated with <a href="https://codeberg.org/snonux/gemtexter">Gemtexter 3.0.1-develop</a> | served by <a href="https://www.OpenBSD.org">OpenBSD</a>/<a href="https://man.openbsd.org/relayd.8">relayd(8)</a>+<a href="https://man.openbsd.org/httpd.8">httpd(8)</a> | |
