profile
viewpoint
Sven-Hendrik Haase svenstaro Germany, Hamburg https://svenstaro.org Freelance consultant, DevOps and automation connoisseur, Arch Linux developer, hobbyist game and graphics programmer. Available for remote contracting.

erkin/ponysay 940

Pony rewrite of cowsay.

nikki93/btogre 54

BtOgre is a very thin and small Bullet-Ogre connection. This wrapper does not try to provide its own RigidBody or CollisionShape classes. Instead, you talk directly with Bullet. The only thing it does is connect the btRigidBodies (only rigid bodies for now, I'm still not good with soft bodies) to their SceneNodes, convert Ogre meshes to Bullet convex hulls and triangle meshes etc., provide a debug drawing mechanism, and a Bullet-Ogre vector/quaternion conversion utility.

archlinux/arch-repo-management 10

(read-only mirror)

rmag/Machine 8

A 2D platformer about a delusional man who's stuck in a clockwork world.

benbearchen/combinations 5

Boost.Combinations

opatut/D-Build-System 4

Very simple build system for d language.

Prior99/rumble 4

Rust API for creating bots for mumble.

push eventsvenstaro/miniserve

Sven-Hendrik Haase

commit sha 4ff1e22b9ee0f534c304d77710acc439cc8f89c9

Add CHANGELOG entry for QR code feature

view details

push time in an hour

create barncharchlinux/infrastructure

branch : use-borg-zstd

created branch time in 2 hours

issue openedtikv/rust-prometheus

Implement reset or clear on Registries

Is your feature request related to a problem? Please describe. I dynamically create custom labels that are mostly the same but might change every now and then. My idea was to simply create a new Registry every scrape and then create all Metrics for that Registry. That works but is kind of inconvenient.

Describe the solution you'd like It would be sweet if we could clear our all registered Metrics from a pre-existing Registry. This way, I could use the global convenience methods together with the global Registry and then just call .clear() on every scrape and re-register my Metrics with their new labels.

Describe alternatives you've considered I currently just create a new Registry every loop. This works but is a bit inconvenient.

Additional context There already exists Register::unregister() and MetricVec::reset() so having more of those "get rid of everything" operations in the same vein would make sense.

created time in 3 hours

create barnchsvenstaro/site24x7_exporter

branch : custom-tags

created branch time in 3 hours

fork svenstaro/just

🤖 Just a command runner

fork in 3 hours

issue commentsunng87/cargo-release

Make output of prerelease hook available in replacement variable

That'd work for me. I just need my --help in there some way. :P

svenstaro

comment created time in 3 hours

pull request commentzsh-users/zsh

Add zstd file completion to tar

Eh, it's fine. If it works, it works.

svenstaro

comment created time in 3 hours

issue closedsunng87/cargo-release

Document sign-tag

It seems the option sign-tag exists but it doesn't appear to be documented. I'd document it myself but I don't know whether its lack is intentional or whether it's deprecated or not.

On a tangent, sign seems to be a CLI flag but not a config field? It's a bit confusing, to be honest.

closed time in 3 hours

svenstaro

issue commentsunng87/cargo-release

Document sign-tag

Alright seems good now after 58a9cf1.

svenstaro

comment created time in 3 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 725be379d849cafe02c9e8fcf78a17f11f75886f

Fix copy paste error

view details

push time in 7 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 45a9c0cc1a2c1ca4118bbb5f7bf404809453fcc4

Nicer markup

view details

push time in 10 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 59211a7169af6c547ef05c8e2edee27222321343

Fix old CHANGELOG entries

view details

push time in 10 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 38cf492f4ffd8e0b499c7221d414bfcaeea95225

Fix CHANGELOG release automation

view details

push time in 10 hours

issue commentsvenstaro/miniserve

How about a QR-code in the terminal?

Haha, good point! Well, maybe it does make a good deal of sense to print one QR code per listening interface, then.

FrontMage

comment created time in 10 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha a5dede64e5a5381d7543945d5a2eefefddf5f4c4

Change publish flow to trigger on v* I recently changed the versioning scheme for the v1.0.0 release and this should work better.

view details

push time in 10 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 99e2a9da0ea744450aaf05560d0f7c67837128b2

Create FUNDING.yml

view details

push time in 10 hours

created tagsvenstaro/proby

tagv1.0.0

:satellite: Check whether hosts are reachable on certain ports and return result on HTTP

created time in 21 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 887d6ca3248aad44a10108128b33256c2536a40d

(cargo-release) version 1.0.0

view details

Sven-Hendrik Haase

commit sha 211fcbad1b606f9ae12fba0d1d8dfd3419fc4979

(cargo-release) start next development iteration 1.0.1-alpha.0

view details

push time in 21 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha ee5b5b781c2007fe7d848e23d486e1c4862c165a

Automatically put correct version into README

view details

push time in 21 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 6bbdf4ef837a2f013c673aab67a5a6a893d63b43

Fix cargo release signing

view details

push time in 21 hours

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha b27f029e7eb54841fa1e2e2cac160c1bc7465045

Add CLI usage to README

view details

push time in 21 hours

issue openedsunng87/cargo-release

Document sign-tag

It seems the option sign-tag exists but it doesn't appear to be documented. I'd document it myself but I don't know whether its lack is intentional or whether it's deprecated or not.

On a tangent, sign seems to be a CLI flag but not a config field? It's a bit confusing, to be honest.

created time in 21 hours

issue openedsunng87/cargo-release

Make output of prerelease hook available in replacement variable

I want to run a command and replace a section in my README.md with the output of that command. More specifically, I want to run cargo run -- --help and then have an automatically-updated version of my tool's help in the README.md. I think this functionality would be quite useful to have in general.

created time in 21 hours

startedCanop/termimad

started time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 6e61db55cb6e34269b14105bab9f4e0826bedddb

Don't use opt-level=z or panic=abort

view details

push time in a day

delete tag svenstaro/proby

delete tag : 0.4.1

delete time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 5fe0eb33742fd22c26a4fc6b77734e6805fb58a9

More concise way to sign commit and tag

view details

push time in a day

created tagsvenstaro/proby

tag0.4.1

:tokyo_tower: Check whether hosts are reachable on certain ports and return result on HTTP

created time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha d28c3e69c5b20a8f5bf5f64e79e9a34e8b7970dc

Add back README note about binary releases

view details

push time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 844b0726c1a1c1a9fa703e70c38dffd5cc7c43f8

Start using cargo release

view details

push time in a day

startedsunng87/cargo-release

started time in a day

fork svenstaro/cargo-release

Cargo subcommand "release": everything about releasing a rust crate.

fork in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 8be51818728feaf9a7c1dc0f583121e5567cffd7

Bump deps

view details

push time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 2efee9730519259bbce3a8c18c64ee349f6e1e3e

cargo fmt

view details

push time in a day

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha 50b78ba6d0bc12da8ab61518567e068d122fcb47

Add lines of code badge

view details

push time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha 0456f32d5817ae32f1549fbf6ec0f38d9411b5ed

Add lines of code badge

view details

push time in a day

push eventsvenstaro/proby

Sven-Hendrik Haase

commit sha a7aa6bf7ce8005620911071350eeea1217856332

Modernize workflows and CHANGELOG

view details

push time in a day

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha a1cc83ed6fe29aaddbee2017918a003323698967

Fix publish job name

view details

push time in a day

issue commentsvenstaro/miniserve

How about a QR-code in the terminal?

Hm yeah, I wonder. I think multiple QR codes would be weird. Maybe only print the IPv4 QR code to be safe?

FrontMage

comment created time in a day

pull request commentsvenstaro/miniserve

Change UTC time to local time

Would be cool if you made an option for this. I don't want to confuse users if possible. Should this also affect the times shown in the HTML?

wyhaya

comment created time in a day

issue commentsvenstaro/site24x7_exporter

Add support for custom user tags

Some progress in https://github.com/svenstaro/site24x7_exporter/commit/75167b0abc1d97a1939b6ee5ab0e75410d4658b6

I can't use the MetricVecs for this any more as they need their labels predeclared and they can't change. Instead, I'll have to change it so all metrics get recreated from the ground up every time the metrics are collected and then I can choose any labels I want on every single scrape.

svenstaro

comment created time in a day

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha 75167b0abc1d97a1939b6ee5ab0e75410d4658b6

Prepare tag support

view details

push time in a day

issue commentsvenstaro/miniserve

How about a QR-code in the terminal?

We now have a QR code in the HTML. We don't yet have one on the terminal but I'd be open for that option, too.

FrontMage

comment created time in a day

push eventsvenstaro/miniserve

wyhaya

commit sha 205a5a4cc49e33b86366969a76b3303d71287761

Add generate QR code (#330) * Add generate QR code * Add --qrcode option

view details

push time in a day

PR merged svenstaro/miniserve

Add generate QR code

preview

#45

+208 -57

6 comments

8 changed files

wyhaya

pr closed time in a day

issue openedsvenstaro/site24x7_exporter

Add support for custom user tags

You can set tags for monitors and monitor groups on site24x7. Support parsing these and add them as labels to the metrics.

created time in a day

CommitCommentEvent

issue openedsvenstaro/upload-release-action

Add draft release support

I had originally put this in and then removed it again as at https://github.com/svenstaro/upload-release-action/commit/1daf68639d5e4ffe0cd591010d871920f963c8a4

The reason was that draft releases don't support getting by tag via API as draft releases don't create tags.

https://github.com/electron-userland/electron-builder/blob/7b335dbd7e5ca754598ca93318be1404fc518485/packages/electron-publish/src/gitHubPublisher.ts#L91

created time in a day

CommitCommentEvent

push eventarchlinux/infrastructure

Jelle van der Waa

commit sha f6826eb9d01984fe920d8f2c926d932de4714451

Remove ind.mirror.pkgbuild.com as it has memory/disk errors

view details

push time in a day

startedDenSASoftware/docship

started time in 2 days

Pull request review commentsvenstaro/miniserve

Add generate QR code

 fn color_scheme_selector(     active_color_scheme: ColorScheme,     default_color_scheme: ColorScheme,     serve_path: &str,+    show_qrcode: bool, ) -> Markup {     html! {         nav {-            ul {-                li {-                    a.change-theme href="#" title="Change theme" {-                        "Change theme..."+            @if show_qrcode {+                div {+                    p onmouseover="document.querySelector('#qrcode').src = `/?qrcode=${encodeURIComponent(window.location.href)}`" {+                        "QrCode"                     }-                    ul {-                        @for color_scheme in ColorScheme::iter() {-                            @if active_color_scheme == color_scheme {-                                li.active {-                                    (color_scheme_link(sort_method, sort_order, color_scheme, default_color_scheme, serve_path))-                                }-                            } @else {-                                li {-                                    (color_scheme_link(sort_method, sort_order, color_scheme, default_color_scheme, serve_path))-                                }+                    div.qrcode {+                        img#qrcode alt="QrCode" title="QR code of this page";

Also in this alt name as above.

wyhaya

comment created time in 2 days

Pull request review commentsvenstaro/miniserve

Add generate QR code

 fn color_scheme_selector(     active_color_scheme: ColorScheme,     default_color_scheme: ColorScheme,     serve_path: &str,+    show_qrcode: bool, ) -> Markup {     html! {         nav {-            ul {-                li {-                    a.change-theme href="#" title="Change theme" {-                        "Change theme..."+            @if show_qrcode {+                div {+                    p onmouseover="document.querySelector('#qrcode').src = `/?qrcode=${encodeURIComponent(window.location.href)}`" {+                        "QrCode"

Minor nitpick but can you call this QR code instead? :)

wyhaya

comment created time in 2 days

issue openedsvenstaro/miniserve

Print full options in README

Might be helpful for some users to check out the help in the README.

created time in 2 days

issue openedsvenstaro/miniserve

Add footer with version and software information

It think this information should be there by default with a toggle switch to be able to turn it off.

created time in 2 days

issue openedsvenstaro/miniserve

Allow adding a page title

It would be cool if users could add a custom title to their servers via --title "My fine files" or something. It would then be showing as the HTML title tag and somewhere on the page.

created time in 2 days

push eventsvenstaro/miniserve

Jozef Hollý

commit sha 713aefce1aaf619cc0dcdd6a1cbe78012764ec00

Add packaging status

view details

Sven-Hendrik Haase

commit sha a039d9fe6b83544d2fc478e7d185047e6014bf2d

Merge pull request #292 from j2ghz/patch-1 Add packaging status

view details

push time in 2 days

PR merged svenstaro/miniserve

Add packaging status

Adds a packaging status badge so people can easily see which repositories have an up-to-date version.

+2 -0

3 comments

1 changed file

j2ghz

pr closed time in 2 days

pull request commentsvenstaro/miniserve

Add packaging status

Sorry for taking so long on this. I tested this and your suggestion actually looks really good. Merging as is, thanks a lot!

j2ghz

comment created time in 2 days

Pull request review commentsvenstaro/miniserve

Implement raw view to allow recursive downloading via wget

+mod fixtures;+mod utils;++use assert_cmd::prelude::*;+use assert_fs::fixture::TempDir;+use fixtures::{port, tmpdir, Error};+use pretty_assertions::{assert_eq};+use rstest::rstest;+use select::document::Document;+use std::process::{Command, Stdio};+use std::thread::sleep;+use std::time::Duration;+use select::predicate::Class;+use select::predicate::Name;++#[rstest]+/// The ui displays the correct wget command to download the folder recursively+fn ui_displays_wget_element(tmpdir: TempDir, port: u16) -> Result<(), Error> {+    let mut child = Command::cargo_bin("miniserve")?++        .arg("-p")+        .arg(port.to_string())+        .arg(tmpdir.path())+        .stdout(Stdio::null())+        .spawn()?;++    sleep(Duration::from_secs(1));+    // Ensure the links to the archives are not present+    let body = reqwest::blocking::get(format!("http://localhost:{}", port).as_str())?+        .error_for_status()?;+    let parsed = Document::from_read(body)?;+    let wget_url = parsed.find(Class("downloadWget")).next().unwrap().find(Name("pre")).next().unwrap().text();+    assert_eq!(wget_url, format!("wget -r -c -nH -np --cut-dirs=0 -R \"index.html*\" http://localhost:{}/?raw=true", port));++    let body = reqwest::blocking::get(format!("http://localhost:{}/very/deeply/nested/", port).as_str())?+        .error_for_status()?;+    let parsed = Document::from_read(body)?;+    let wget_url = parsed.find(Class("downloadWget")).next().unwrap().find(Name("pre")).next().unwrap().text();+    assert_eq!(wget_url, format!("wget -r -c -nH -np --cut-dirs=2 -R \"index.html*\" http://localhost:{}/very/deeply/nested/?raw=true", port));++    +    child.kill()?;+    Ok(())+}++#[rstest]+/// All hrefs in raw mode are links to directories or files & directories end with ?raw=true+fn raw_mode_links_to_directories_end_with_raw_true(tmpdir: TempDir, port: u16) -> Result<(), Error> {+    let mut child = Command::cargo_bin("miniserve")?++        .arg("-p")+        .arg(port.to_string())+        .arg(tmpdir.path())+        .stdout(Stdio::null())+        .spawn()?;++    sleep(Duration::from_secs(1));++    fn verify_a_tags(parsed: Document){+        // Ensure all links end with ?raw=true or are files+        for node in parsed.find(Name("a")) {+            let class = node.attr("class").unwrap();++            if class == "root" || class == "directory" {+                assert!(node.attr("href").unwrap().ends_with("?raw=true"));+            } else if class == "file" {+                assert!(true);+            } else {+                println!("This node is a link and neither of class directory, root or file: {:?}", node);+                assert!(false);+            }+        }+    }++    let urls = [+        format!("http://localhost:{}/?raw=true", port),

Wouldn't it be nicer to use a parametrized test (via rstest) here instead of this loop?

Jikstra

comment created time in 2 days

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha 4ce9278c603fd5b75b92a467d5fbfaacd9923912

Document proxy usage

view details

push time in 2 days

created tagsvenstaro/site24x7_exporter

tag0.2.2

A Prometheus compatible exporter for site24x7.com

created time in 2 days

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha b79d92ed02feb55e358a9b0e09f4ae2f41d2bc00

Show used proxies during startup

view details

push time in 2 days

issue commentrust-lang/cargo

Make `cargo outdated` part of cargo itself

Hey, have you been able to look into this perchance?

behnam

comment created time in 2 days

issue commentOpenImageDenoise/oidn

SSE4.1 causes crashes on older CPU

I believe this can be closed then.

frankspace

comment created time in 2 days

issue commentapache/incubator-mxnet

fail to find MKL

Just to follow up on this, our intel-mkl package now has static libs so consider retesting/closing this.

hubutui

comment created time in 2 days

startedtikv/pprof-rs

started time in 2 days

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha b7079c4215db2a853eff4eb7fe07a1fe056029e3

Add reqwest client to debug print

view details

push time in 2 days

fork svenstaro/reqwest

An easy and powerful Rust HTTP Client

https://docs.rs/reqwest

fork in 2 days

issue openedseanmonstar/reqwest

Expose read-only config of the Client

It's currently impossible to see which internal values the Client has as there are no functions exposing its inner config. I think it would be immensely helpful if some function could expose the config in some way.

My use case is that I want to pretty-print the system proxies that reqwest chose to use. I know I can do this differently if I need to but the point is that the only way to access the Clients internal state currently is via the Debug trait and I think that doesn't cut it if you want to keep using the values in a programmatic fashion.

created time in 2 days

delete branch svenstaro/oha

delete branch : patch-1

delete time in 3 days

issue openedsvenstaro/bvh

Migrate to GitHub Actions

created time in 3 days

issue openedsvenstaro/miniserve

Switch to GitHub Actions

It's time to move away from Travis as it's kind of slow and unreliable. This also allows us to benefit from all those neat Actions that are around like https://github.com/orf/cargo-bloat-action

created time in 3 days

push eventsvenstaro/miniserve

Sven-Hendrik Haase

commit sha 2da89cdbf64f590aced4c972a569db12944388eb

Remove dot

view details

push time in 3 days

push eventsvenstaro/miniserve

Sven-Hendrik Haase

commit sha c65ea451e0c279a8b922a2aee194912dfab070e6

Add lines of code badge

view details

push time in 3 days

issue commentsvenstaro/miniserve

miniserve formula downgraded to v0.3.0

Not quite yet, working on it!

chenrui333

comment created time in 3 days

push eventsvenstaro/oha

Sven-Hendrik Haase

commit sha 76a5efdbff9251510a07f398408ed8066f2aa814

Add CI matrix building for Windows and OSX I also sneaked a clippy flow there.

view details

push time in 3 days

push eventsvenstaro/oha

Sven-Hendrik Haase

commit sha 9717f501f56b3499740dd046a95563dea6f6a27e

Add CI matrix building for Windows and OSX I also sneaked a clippy flow there.

view details

push time in 3 days

PR opened hatoo/oha

Add CI matrix building for Windows and OSX (fixes #14)

I also sneaked a clippy flow there.

+38 -6

0 comment

1 changed file

pr created time in 3 days

push eventsvenstaro/oha

Sven-Hendrik Haase

commit sha aae003836287630f2128c68aa5955e5d8b5162f8

Add CI matrix building for Windows and OSX I also sneaked a clippy flow there.

view details

push time in 3 days

fork svenstaro/oha

Ohayou(おはよう), HTTP load generator, inspired by rakyll/hey with tui animation.

fork in 3 days

issue commentsvenstaro/site24x7_exporter

Invalid value passed for authtoken

Sorry, I looked at this further and I think at this point the only way I can make progress on this if I can actually check this out with your credentials. Is there any chance you can make a new application in Zoho with no privileges or maybe we can do some pairing on this? I'd really like to get to the bottom of this but with my .eu and .com credentials that I made exactly according to README instructions, it works just fine. :/

chungktran

comment created time in 3 days

push eventsvenstaro/upx-action

Sven-Hendrik Haase

commit sha 7a8c1ee107dbe348854c690adf74caff1c546807

Bump @types/jest dep

view details

push time in 3 days

push eventsvenstaro/upx-action

Sven-Hendrik Haase

commit sha 67802aa566ee738579ff9d5c1bb64285a05409e7

Bump download dep

view details

push time in 3 days

release svenstaro/upx-action

2.0.0

released time in 3 days

created tagsvenstaro/upx-action

tag2.0.0

Strips and runs upx on binaries

created time in 3 days

push eventsvenstaro/upx-action

Sven-Hendrik Haase

commit sha 95c0062b8b1895d0cc2df8afd8ed8dbdc4719761

Give jest longer timeout again

view details

push time in 3 days

delete tag svenstaro/upx-action

delete tag : 2.0.0

delete time in 3 days

push eventsvenstaro/upx-action

Sven-Hendrik Haase

commit sha 1319c18661caa4dea8d6e1fa92cde90e3fb5c549

Modernize action

view details

push time in 3 days

created tagsvenstaro/upx-action

tag2.0.0

Strips and runs upx on binaries

created time in 3 days

delete tag svenstaro/upx-action

delete tag : 2.0.0

delete time in 3 days

created tagsvenstaro/upx-action

tag2.0.0

Strips and runs upx on binaries

created time in 3 days

push eventsvenstaro/upx-action

Sven-Hendrik Haase

commit sha a4cf7696a089da0f668eb90e9a8bab8f7ced7d8f

Create FUNDING.yml

view details

push time in 3 days

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha b3e7056c8697a1f58693604b41d1da9773e8c125

Add release docs

view details

push time in 3 days

push eventarchlinux/infrastructure

Jelle van der Waa

commit sha 14fbcdaf1076ffe118d43ea27f305d9749162279

Add dependencies for sourceballs to be able to fetch sources

view details

Jelle van der Waa

commit sha 10c40f7243bd471c789d46bc493340bb0e298279

Apply some hardening to cleanup.service

view details

Jelle van der Waa

commit sha 5e6738454b487c4043bb66d351ae47d139b671a5

Update sourceballs.service Remove unused devlist-mailer and apply some hardening.

view details

push time in 3 days

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha 8957e64febd453941158367ae78a68d00aa762fa

Upgrade deps

view details

push time in 3 days

issue commentsvenstaro/upload-release-action

@1.0.1 / error / file_glob invalid

Can we close this for the time being then and you just open a new one once the problem comes up again?

nerdCopter

comment created time in 3 days

push eventsvenstaro/site24x7_exporter

Sven-Hendrik Haase

commit sha 172e912814e7301984fe1a030fd1f5cd2bfa1962

Build Linux release using musl

view details

push time in 3 days

created tagsvenstaro/site24x7_exporter

tag0.2.1

A Prometheus compatible exporter for site24x7.com

created time in 3 days

delete tag svenstaro/site24x7_exporter

delete tag : 0.2.1

delete time in 3 days

more