sbz-switch
tokei
Our great sponsors
sbz-switch | tokei | |
---|---|---|
3 | 30 | |
38 | 9,969 | |
- | - | |
0.0 | 6.2 | |
over 1 year ago | 10 days ago | |
Rust | Rust | |
Apache License 2.0 | GNU General Public License v3.0 or later |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
sbz-switch
-
Sound Blaster Command - Can this output setting be a hotkey?
Thought you might want to know about sbz-switch in case you didn't see my other comment.
-
Best Headphone/Speaker Toggle for SBZ: Use AHK and sbz-switch (found on Github)
After doing some Googling, I came upon sbz-switch on Github. Looking at it, I realized this is what I was looking for. This does SBZ settings manipulation at the command line; no window or mouse manipulation required. With sbz-switch in hand, I quickly wrote an AHK (AutoHotKey) script to toggle my headphones and speakers. To properly do the toggle, I do a Registry read (the same way SBZ Switcher did it) on the SBZ card settings. To figure out what Registry Key to read from, I decompiled SBZ Switcher to see how it does it (will be a device under HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\MMDevices\Audio\Render) and quickly found the right DWORD that toggles (for me this was {77f01702-a9d1-11df-a289-000bdb7312a5},15). Knowing that, I can quickly read the current state (headphones or speakers) and then toggle appropriately. All with one hotkey with no window or mouse manipulation!
tokei
- XAMPPRocky/tokei: Count your code, quickly
-
The Linux Kernel Prepares for Rust 1.77 Upgrade
So If we would only count code and not comments, it is only 9489 LoC Rust. Which would be about 0.03% and if we take all lines and not only LoC it would be around 0.05%
[0] https://github.com/XAMPPRocky/tokei
[1] https://github.com/torvalds/linux/commit/b401b621758e46812da...
- Tokei: Display statistics about your code, quickly
-
SOOOO many Errors when upgrading
thirdly: found this (https://github.com/XAMPPRocky/tokei) and wanted to analyze languages used on my system, didn't see a package manager (apt) for it that I had. So i installed cargo via apt-get rustup. Added the bin folder to $PATH via PATH=$PATH:~/.cargo/bin. But did not make it permanent. And stupidly rand tokei on "/", realizing how long and unhelpful that would be killed it. Then ran it in a dump folder with some very nested repo dumps, and tons of wolfram.nb files. After killing that too, and attempting to kill via system monitor. Still have two of those as zombie processes.
-
What "nice-to-have" CLI tools do you know?
tokei
- How long is your neovim config?
-
How do you name your crates?
For what it's worth, tokei seems to be named after tokei.
-
[media] Onefetch v2.13 is typically 2x faster and now supports ~100 programming languages
BTW, for more info on how it is done, you can check out tokei which is the library use by onefetch for code statistics.
-
Pytokei: a python binding for rust's tokei
With pytokei you can count code quickly using all the power from tokei, but from python.
-
Rust Easy! Modern Cross-platform Command Line Tools to Supercharge Your Terminal
Tokei is a nice utility to count lines and stats of code. It is very fast, accurate, and has a nice output. It supports over 150 languages and can output in JSON, YAML, CBOR, and human-readable tables.
What are some alternatives?
mprocs - Run multiple commands in parallel
cloc - cloc counts blank lines, comment lines, and physical lines of source code in many programming languages.
resym - Cross-platform tool that allows browsing and extracting C and C++ type declarations from PDB files.
coreutils - Cross-platform Rust rewrite of the GNU coreutils
kondo - Cleans dependencies and build artifacts from your projects.
uwc
AutoHotkey - AutoHotkey - macro-creation and automation-oriented scripting utility for Windows.
trust-dns - A Rust based DNS client, server, and resolver [Moved to: https://github.com/hickory-dns/hickory-dns]
trippy - A network diagnostic tool
rrun - minimalistic command launcher in rust
habitat - Modern applications with built-in automation
mako - Bitcoin node written in C