WattWise: Monitor Your Computer's Power Usage in Real-Time #WattWise #MonitoringTools #CLI #Electricity #Opensource #Linux #Python #PowerUsage
https://ostechnix.com/wattwise-monitor-computer-power-usage/
WattWise: Monitor Your Computer's Power Usage in Real-Time #WattWise #MonitoringTools #CLI #Electricity #Opensource #Linux #Python #PowerUsage
https://ostechnix.com/wattwise-monitor-computer-power-usage/
#ReleaseWednesday Just pushed a new version of https://thi.ng/block-fs, now with additional multi-command CLI tooling to convert & bundle a local file system tree into a single block-based binary blob (e.g. for bundling assets, or distributing a virtual filesystem as part of a web app, or for snapshot testing, or as bridge for WASM interop etc.)
Also new, the main API now includes a `.readAsObjectURL()` method to wrap files as URLs to binary blobs with associated MIME types, thereby making it trivial to use the virtual filesystem for sourcing stored images and other assets for direct use in the browser...
(Ps. For more context see other recent announcement: https://mastodon.thi.ng/@toxi/114264980961483146)
@itsfoss Kew is absolutely the best thing I have discovered in a long time. I completely stopped using my Navidrome server at home because of it. #cli #terminal #music_player #Navidrome
Master Linux while loops! Start with this beginner-friendly guide to automate repetitive tasks.
bash
while [ condition ]; do
commands
done
Perfect for creating menus, processing files, and handling user input. No more manual repetition!
Read more: Mastering Linux Shell Loops: https://www.spsanderson.com/steveondata/posts/2025-03-28/
the #bash REPL is Ctrl+x+e
If you want to improve your Command-Line/bash skills, "Efficient Linux at the Command Line" by @DanielJBarrett is a life changing read.
Really.
A mindblowing experience.
While you are at it, also check out offpunk :
yes, it is related.
Stupid-but-works tip on how to add inline documentation comments for multi-line shell commands in scripts: Combine command substitution with grave accents "`" and the do-nothing built-in command ":":
```shell
% ls \
> -h `: this is a comment` \
> -a `: this is another comment` \
> -t `: more commentssss`
```
I've just released v1.0.0 of ng2web, a command line tool that converts a #NortonGuide file into a collection of static web pages. Useful if you want to revive information locked up in Norton Guide files.
3 years ago, as I just had created Offpunk, I started to implement what would become ansicat : a way to render HTML (or any format) in your terminal
Besides a lot of technical learning, the biggest lesson was probably how bad people are at writing texts and abusing any format.
https://ploum.net/2022-03-24-ansi_html.html
See the results here:
Zettelkasten on the CLI
Let's take a look at my Zettelkasten notetaking workflow on the Linux Command Line. Trust me, it's simple.
https://readbeanicecream.surge.sh/2025/03/24/zettelkasten-on-the-cli/
#productivity #notetaking #linux #cli #commandline indieweb #blogging #smallweb #personalweb #tech #technology #zettelkasten
Just released: pypistats 1.9.0
pypistats is CLI to show download stats from PyPI
https://pypi.org/project/pypistats/1.9.0/
* Replace deprecated classifier with licence expression (PEP 639)
* Remove GitHub attestation, uses PyPI attestations instead (PEP 740)
* Add input validation for total and fix --monthly with no mirror
* Update docs for recent command
Just pushed a new version of ezdocker. You can now open the URL of a running container with
ezdocker open <containername>
Mastodon Account Archives
TL;DR Sometimes mastodon account backup archive downloads fail to download via browser, but will do so via fetch with some flags in the terminal. YMMV.
the following are notes from recent efforts to get around browser errors while downloading an account archive link.
yes, surely most will not encounter this issue, and that's fine. there's no need to add a "works fine for me", so this does not apply to your situation, and that's fine too. however, if one does encounter browser errors (there were several unique ones and I don't feel like finding them in the logs).
moving on... some experimentation with discarding the majority of the URL's dynamic parameters, I have it working on the cli as follows:
» \fetch -4 -A -a -F -R -r --buffer-size=512384 --no-tlsv1 -v ${URL_PRE_QMARK}?X-Amz-Algorithm=AWS4-HMAC-SHA256
the primary download URL (everything before the query initiator "?" has been substituted as ${URL_PRE_QMARK}, and then I only included Amazon's algo params, the rest of the URL (especially including the "expire" tag) seems to be unnecessary.
IIRC the reasoning there is about the CDN's method for defaulting to a computationally inexpensive front-line cache management, where the expire aspects are embedded in the URL instead of internal (to the CDN clusters) metrics lookups for cache expiration.
shorter version: dropping all of the params except the hash algo will initiate a fresh zero-cached hit at the edge, though likely that has been cached on second/non-edge layer due to my incessent requests after giving up on the browser downloads.
increasing the buffer size and forcing ipv4 are helpful for some manner of firewall rules that are on my router side, which may or may not be of benefit to others.
- Archive directory aspect of URL: https://${SERVER}/${MASTO_DIR}/backups/dumps/${TRIPLE_LAYER_SUBDIRS}/original/
- Archive filename: archive-${FILE_DATE}-{SHA384_HASH}.zip
Command:
» \fetch -4 -A -a -F -R -r --buffer-size=512384 --no-tlsv1 -v ${URL_PRE_QMARK}?X-Amz-Algorithm=AWS4-HMAC-SHA256
Verbose output:
resolving server address: ${SERVER}:443
SSL options: 86004850
Peer verification enabled
Using OpenSSL default CA cert file and path
Verify hostname
TLSv1.3 connection established using TLS_AES_256_GCM_SHA384
Certificate subject: /CN=${SEVER}
Certificate issuer: /C=US/O=Let's Encrypt/CN=E5
requesting ${URL_PRE_QMARK}?X-Amz-Algorithm=AWS4-HMAC-SHA256
remote size / mtime: ${FILE_SIZE} / 1742465117
archive-${FILE_DATE}-{SHA384_HASH}.zip 96 MB 2518 kBps 40s
@stefano looks to be working now :)
Keep your commits consistent!
forgejo-commit-path-rules
v0.2.3 ensures your commit messages align with your file changes.
Enforce commit message and file path rules in your repo!
Written in Rust
Repo: https://codeberg.org/kemitix/forgejo-commit-path-rules
A ForgeJo Action/CLI Tool
What's New:
- Coloured highlights in logging (supports --no-colour
)
- all
matching strategy for paths (default is any
)
- Built in templates: docs
, feature
, tests
and fixes
Usage:
- Define rules in .forgejo/commit-path-rules.toml
- Run via CLI or ForgeJo Action
Install:cargo install forgejo-commit-path-rules
CLI Usage:forgejo-commit-path-rules --workspace . --no-colour
Forgejo Action:
jobs:
validate:
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Run forgejo-commit-path-rules
uses: kemitix/commit-path-rules@v0.2.3
with:
args: --verbose
WHEN DID TOP GET THE MEMORY BARS
Seriously, I only discovered this by mis-hitting shift-m. And there are two visual styles, too.