scy, to random
@scy@chaos.social avatar

There seems to be a distinct lack of tools to files. Sure I can

diff -u <(hexdump -C a) <(hexdump -C b)

but that falls apart as soon as the change is, say, inserting 5 bytes into the middle of the file.

The best thing I found was

radiff2 -du a b

which doesn’t look particularly readable, but can at least handle such a case. The -ss, -c & -r options might be useful, too.

There’s also

xdelta3 -e -s a b | xdelta3 printdelta

Haven’t found a nice viewer for either though.

feditips, (edited ) to mastodon
@feditips@mstdn.social avatar

Today, a very niche tip for techy people! 🤓

If you want to use Mastodon through a command line interface or text-based user interface, there's a tool you can install which offers both called "toot":

➡️ https://toot.bezdomni.net

This software is written by @ihabunek

(NOTE: This software has no connection to the mobile apps @tootapp or @tooot, they just have similar-sounding names.)

#CLI #Mastodon #FediTips #CommandLine #TUI #Fediverse #Terminal

piger, to random

what I call “the perl grep" is one of the most useful tools I can think of, albeit a bit cumbersome to type:

$ echo "give me 12345 numbers" | perl -nl -e '/(\d+)/ && print "$1"'
12345

janriemer, to rust

Magic Wormhole 🐛🕳️ - Get things from one computer to another, safely:

https://github.com/magic-wormhole/magic-wormhole

implementation of Magic Wormhole, with new features and enhancements:

https://github.com/magic-wormhole/magic-wormhole.rs

This thing literally works like magic! 💫 ✨

larsmb, to linux
@larsmb@mastodon.online avatar

I love how there's absolutely no complete documentation of the various error counters for ethtool -S available, that makes debugging a network connection such a joy.

rx_address_errors? rx_rxf_ov_drop_packets?

GOOD LUCK, peasant

Feels just like 1993 again.

#Linux #CLI

Theeo123, to linux
@Theeo123@mastodon.social avatar

https://www.omgubuntu.co.uk/2024/02/warp-terminal-official-linux-release

via: @omgubuntu

WARP is a new Closed-source Terminal written in Rust with AI built in, and it functions a lot like an IDE, rather than a traditional terminal.

The link above contains a really impressive demo video. The features are too numerous to list here, I highly suggest you click through and read the article at OMGUbuntu and watch the video.

scy, (edited ) to linux
@scy@chaos.social avatar

fun fact:

“source” is a . The actual name of the command is “.”. That’s right, a single dot.

Many people expect . to be some kind of a shortcut for “source”, and yes, they’re equivalent in , but “source” is not guaranteed to exist in other shells. dash doesn’t have it, for example.

So, if you want to write your shell scripts as compatible as possible, use “.”, not “source”.

hugovk, to python
@hugovk@mastodon.social avatar

🎲 Do you like Python's little CLIs? For example:

$ python -m http.server
$ python -m webbrowser example_url
$ python -m uuid
$ python -m calendar

What about adding one to random?

$ python -m random curry "fish n chips" tacos
curry

$ python -m random 6
6

$ python -m random 2.5
1.6423361547011504

Give your feedback on my proposal at
https://discuss.python.org/t/command-line-interface-for-the-random-module/51304

If there's support we might be able to get it into 3.13 before May's beta cutoff! 🤞

scy, to programming
@scy@chaos.social avatar

I’m looking for an open-source tool to write loop points into files, for a section of the audio contained in the file.

By now I know that these are stored as smpl chunks (see https://www.recordingblogs.com/wiki/sample-chunk-of-a-wave-file for the binary structure), and I could generate the binary data myself, but I need a tool to write the chunk into an existing file. preferred, or a library.

& the tools can’t.

:BoostOK:

data0, to javascript

I've built a PoC meta tag editor for the in vanilla that pretends to run in a . Pretty stupid combo, I know :-) But I had a lot of fun building it!

(It's meant to be used with files but seems to work with video too and it requires a browser with the File System Access API enabled.)

ipns://mp4-terminal.lol

https://mp4--terminal-lol.ipns.dweb.link/

alejandrobdn, to random

To change the name of a file downloaded with wget:

wget -cO - https://url.of.the.file &gt; new-name.extension  

yoavlavi, to random

If you ignore what they're supposed to mean (in some cases), Unicode has a lot of symbols that could probably be used more in in place of emoji (which can't be styled)

(Caveat, this probably isn't great for accessibility, so have an option to turn it off)

⛁ - database
⛘ - SD card
⛶ - screenshot
🜽 - pipeline
🜛 - ubuntu
🄰,🄱,🄲 / ➀,➁,➂- option selction (interactive)
𝕏 - dumpster fire
㎑,㎒,㎓ - Units
♳,♴,♵ - retry count
⛖ - network
␀ - null
⩉ - link
⦷ - pause / paused
⦿ - record / recording

ai6yr, to linux
@ai6yr@m.ai6yr.org avatar

Listening to music using a text console, LOL (you can get some fancy GUI players for Linux... but this is a lot funnier...)

awoodsnet, to Mac
@awoodsnet@phpc.social avatar

TIL: MacOS has a command line program called uuidgen - which creates UUID numbers

kas, to linux

:boost_requested:

Hello @askfedi,

TL;DR: What is causing my X.org keymap to change unsolicited for, and how can I prevent it?

When I log in to my X.org based desktop environment on Linux a custom keymap is set from ~/.Xmodmap. This is all fine and dandy.

However, at odd times — perhaps every day or two — the keymap mutates into something else, that could be the default X.org keymap, and I have to run “xmodmap ~/.Xmodmap” to get back to where I want to be.

I haven't been able to correlate these events with anything, but of course systemd is always a strong contender for such anomalies…

Has anyone else experienced the same thing and found a way to prevent it?

TIA!

/cc [ | | | | | | | | | | ]

PS: This post is unrelated to the social network formerly known as the birdcage.

scy, to python
@scy@chaos.social avatar

Did you know that you can set an initialization file for the (aka "interactive mode")?

I use this to auto-import "os" and "sys" in every interactive Python, as well as the rich library (if installed) to provide pretty-printed and syntax-highlighted output for expression results.

Basically, just set the environment variable PYTHONSTARTUP to the path to your initialization file.

https://codeberg.org/scy/dotfiles/commit/1fec36f8ee95ae7c82b1f1e9f994ae14826901ec

https://rich.readthedocs.io/en/stable/introduction.html#rich-in-the-repl

adele, to random

I don't understand why people publish videos about tools.
Your audience would certainly prefer a text publication in the form of a blog post or wiki.
It permits copy/paste and can be easily saved locally.
;-)

scy, to linux
@scy@chaos.social avatar

So …

git diff --no-index a b

can be used to compare two files using git diff, even if they are not managed by at all. This is nice because it provides colors, auto-pager and all of the other niceties that git diff has.

However, I wonder: Suppose I already have a (aka ) file, created by some other tool, or downloaded, or whatever. Can I use Git to “syntax-highlight” that file in the (e.g. show + lines in green, - lines in red etc.)?

aral, to linux
@aral@mastodon.ar.al avatar

It’s bloody 2024, think we can agree on either wget or curl being installed by default on every freaking operating system by now so shell scripts can have a guaranteed way of carrying out http requests?

I mean it’s been about 35 years. I think it’s about time.

scy, (edited ) to markdown
@scy@chaos.social avatar

lowdown -tterm produces pretty nice rendering in the .

https://kristaps.bsd.lv/lowdown/

itsjoshbruce, (edited ) to php
@itsjoshbruce@phpc.social avatar

Is Symfony Console the way to go for creating custom CLI tools using PHP?

I think someone pulled something together from Laravel components.

I'd like to find something excessively lightweight - like CLI is all it does with few or no dependencies.

Curious about what folks are using.

I'll probably start with Symfony as I've built what I'm planning once before.

#PHP #Laravel #Symfony #CLI

changelog, to rust
@changelog@changelog.social avatar

Monolith is a CLI for saving complete web pages as a single HTML file

🔗 https://github.com/Y2Z/monolith

scy, to linux
@scy@chaos.social avatar
lukaso666, to debian Polish
@lukaso666@chaos.social avatar
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • thenastyranch
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • ngwrru68w68
  • provamag3
  • magazineikmin
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • JUstTest
  • All magazines