skinnylatte, to Help
@skinnylatte@hachyderm.io avatar

if i have a folder of .md text files that all have a date in this format: date: "2003-01-26T06:24:10Z"

in the front matter

but they are on different lines

and i want to delete the quotes from all of the files at once

what's my best approach?

(i don't know how to write regex properly)

i use sublime text, and vim, if it helps

Edent, to linux
@Edent@mastodon.social avatar

Huh! TIL if you want ISO861 timestamps in ls you can run

ls -l --time-style=long-iso

Handy!

kdwarn, to rust
@kdwarn@fosstodon.org avatar

Just published v0.6 of taskfinder, now with a better tagline: Keep your project-related tasks where they belong - with your notes on the project!

https://crates.io/crates/taskfinder

linuxuserspace, to history
@linuxuserspace@mastodon.social avatar

Today in User Space
📈We enable MORE
🐧Get enticed by distros
📖Look back into our own personal
🗒️Fall down the rabbit hole
🎨And add a splash of color to our


https://www.linuxuserspace.show/415

toxi, to CSS
@toxi@mastodon.thi.ng avatar

Today's features a major update for the https://thi.ng/meta-css toolchain, a data-driven codegen for creating custom modular CSS frameworks, incl. transpiler, bundler, dev/watch mode...

The new version supports callable parametric templates, which not only help to reduce the overall API surface (i.e. the total number of rules) of a generated CSS framework, but also enable advanced operations like those shown in the attached images (e.g. declarations of CSS color variables (in rgb, hsl, lch, or oklch modes) and pure CSS color per-color-channel adjustments...).

Also new, is added support for documentation metadata for all generative CSS class & template specs (incl. template params). Parts of the readme are generated from these embedded docs and the next version will include a new CLI command to generate Markdown files from/for these CSS docs...

The readme for this package is already pretty detailed by now and should cover most important patterns and usage (incl. the new template features). Take a look (also the examples linked from the readme)!

https://github.com/thi-ng/umbrella/blob/develop/packages/meta-css/README.md

Transpiled resulting CSS of the MetaCSS declerations in the previous image, showing the expanded variable definitions and calculations to create the derived color... CSS source code: :root { --link-color-luma: 80%; --link-color-chroma: 100%; --link-color-hue: 0; --link-color-alpha: 1; --link-color: oklch( var(--link-color-luma) var(--link-color-chroma) var(--link-color-hue) / var(--link-color-alpha) ); } a:link, a:visited { color: var(--link-color); } a:hover { color: oklch( calc(var(--link-color-luma) * 1) calc(var(--link-color-chroma) * 0.8) calc(var(--link-color-hue) + 180) / calc(var(--link-color-alpha) * 1) ); }

Anachron, to linux German
@Anachron@fosstodon.org avatar

Oh , there is nothing like you.

stefano, to random
@stefano@bsd.cafe avatar
wick3dr0se, to linux
@wick3dr0se@fosstodon.org avatar

I wrote a matrix digital rain implementation in under 50 lines of pure Bash.. I chose Bash due to it being widely installed and extremely portable. With modern systems this shouldn't cause any noticable performance changes and seems more than efficent so far

Looking for feedback, contributions or whatever helps 😆. If it interest you at all, let me know what you think about it!

https://github.com/wick3dr0se/matrix

#linux #bash #commandline #cli #programming #scripting #macOS #android #windows #Shell

Matrix digital rain

changelog, to rust
@changelog@changelog.social avatar

bpftop provides a dynamic real-time view of running eBPF programs

🔗 https://github.com/Netflix/bpftop

video/mp4

driscollis, to python
@driscollis@mastodon.social avatar

Do you ever need to create a unique user ID? comes with a handy uuid module that you can use for that.

You only need two lines to create a UUID: 🐍🚀

hugovk,
@hugovk@mastodon.social avatar

@driscollis And you can use the CLI with Python 3.12 to quickly generate a UUID!

❯ python -m uuid
e80934a1-9e1e-459d-af4c-56873cee3470

https://docs.python.org/3/library/uuid.html#command-line-usage

nojhan, to random
@nojhan@mamot.fr avatar

"Slides": terminal-based presentation tool.
https://github.com/maaslalani/slides
The name is shit, but the idea is genius.
"You will be able to access the presentation hosted over SSH!"

scy, to linux
@scy@chaos.social avatar

Did you know:

chown scy: some_file

(note the colon after scy) changes the owner of some_file to scy, and the group to scy's primary group. No need to look it up or type it out.

governa, to ubuntu
@governa@fosstodon.org avatar
awoodsnet, to php
@awoodsnet@phpc.social avatar

As I prepare my Tek talks — “Shell Scriptung for PHP Developers” and “Better Dotfiles” — are there specific issues/aspects you’d like me to cover?

adamsdesk, (edited ) to Help
@adamsdesk@fosstodon.org avatar

🚨 Help Wanted 🚨

Can anyone tell me how to make fzf refresh or reload right after a key binding command completes? So you would only press one key binding, not press the desired key binding and then another to reload.

#AskFedi #AskMastodon #help #commandline #CLI #terminal

scy, to linux
@scy@chaos.social avatar

Nice trick for retrieving the current cursor position in bash:

IFS=';' read -sdR -p $'\E6n' row col && echo "row ${row#*[} column $col"

https://unix.stackexchange.com/a/183121

This is not POSIX-compatible though because of the flags in read.

I've used this to add an empty line in front of all of my shell prompts, except when on the top of the screen (i.e. in a new shell).

https://codeberg.org/scy/dotfiles/commit/f18000298473f78540723224e8f73971e26996ac

[#Linux #bash #CLI #cursor #prompt #terminal

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

users! I'm curious how many of us are using "modern", "enhanced", "reimagined" versions of classic command-line tools. Think bat instead of cat, rg instead of grep, exa instead of ls.

If you don't use them, why? Is the installation overhead too much, e.g. because you're using a lot of machines? Does your brain need to stay compatible with the standard tools for some reason?

Feel free to write a reply, the poll can't possibly cover everything :)

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.

Polynomial_C, to random Catalan
@Polynomial_C@mastodon.social avatar

or bust

ajblue98, to gpt
@ajblue98@mastodon.online avatar

Introducing CLIx, the Command Line Translator

I made a for anyone wanting to translate between/learn how to use the in

Just type in a command you already know or ask it how to do something, and you'll get a straight-to-the-point answer for all three systems.


, ,

https://chat.openai.com/g/g-TXY7TIuRn-clix-command-line-translator

cs, to random
@cs@mastodon.sdf.org avatar

Default install colors seems to have a lot of white/gray text on light blue background. This combo has too little contrast. I cannot see what it is telling me. 😮

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, to Bash
@scy@chaos.social avatar

TIL that you can

. <(some_command)

in bash to read bash-formatted variable assignments into the current environment. In other words, the dot ("source") command supports reading from process substitution.

some_command | . /dev/stdin

on the other hand does not work, I guess because it's running in a subshell…?

Replace some_command with something like echo foo=bar if you don't quite understand what I mean.

scy, to linux
@scy@chaos.social avatar

Who thought it was a good idea to let print "uploading item [id] to [name of local calendar]" when it's actually simply inserting some event from the remote side to the local one?

Imagine my anxiety when I tried to make extra sure (with read_only=true etc.) that it does NOT modify my Google Calendar while I'm setting everything up, only to then read hundreds of "uploading" messages?

(It simply always says "uploading", no matter what the destination is.)

nojhan, to python
@nojhan@mamot.fr avatar

New software: watch your last notifications right in the terminal, with the CLI bard, a very simple, yet good-looking, command-line tool.
https://github.com/nojhan/clibard

nojhan,
@nojhan@mamot.fr avatar

The CLI bard now has a vertical layout and responds to user signals for refreshing the horizontal one. https://github.com/nojhan/clibard

  • All
  • Subscribed
  • Moderated
  • Favorites
  • provamag3
  • rosin
  • thenastyranch
  • Durango
  • DreamBathrooms
  • ngwrru68w68
  • magazineikmin
  • cubers
  • Youngstown
  • mdbf
  • slotface
  • osvaldo12
  • GTA5RPClips
  • kavyap
  • megavids
  • InstantRegret
  • everett
  • tacticalgear
  • vwfavf
  • tester
  • normalnudes
  • modclub
  • ethstaker
  • khanakhh
  • cisconetworking
  • anitta
  • Leos
  • JUstTest
  • All magazines