RichiH, to random
@RichiH@chaos.social avatar

telnet mapscii.me is the coolest thing you'll see all day, maybe all week.

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.)

scy, to linux
@scy@chaos.social avatar

Pro tip: less can filter the lines it displays. Hit the “&” key and enter a search pattern. You’ll only see lines matching the pattern.

Want to only see lines that don’t match the pattern? Prefix the pattern with an exclamation mark.

Super useful when looking at logs, for example.

The man page is definitely worth a read, it can do a bunch more stuff you might find interesting.

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

Okay, so. I have a and a file. And I’d like to compare them. And since I’m a programmer, I don’t want to compare them visually, but with a . But how?

Like this.

alias pdfcat='gs -q -sDEVICE=txtwrite -o-'
alias doccat='pandoc -t plain'

pdfcat a.pdf > a.txt
doccat b.docx > b.txt

git diff --no-index --word-diff a.txt b.txt

And since we’re using --word-diff, it doesn’t matter that the two files use wildly different line wrapping.

changelog, to ShareYourMusic
@changelog@changelog.social avatar

sshx lets you share your terminal with anyone by link, on a multiplayer infinite canvas. It has real-time collaboration, with remote cursors and chat.

It's also fast and end-to-end encrypted, with a lightweight server written in Rust (so you know it's cool).

🔗 https://sshx.io/

ehmicky, to javascript
@ehmicky@fosstodon.org avatar

I am currently looking for a new full-time remote position!
With 11 years of experience as a back-end lead engineer (not full-stack), I am specialized in Node.js APIs and CLIs.
Most recently I have been Netlify Build's and Netlify Plugins' technical lead for 2.5 years.

https://mickael-hebert.com

PS: No agencies nor external recruiters, thanks!

nev, to Bash
@nev@bananachips.club avatar

ok folks, hit me with your most ridiculous, overpowered "go away or I will replace you with a very small shell script" examples

not mining this for a listicle or anything, i just want to see cool stuff ppl have done with basic tools

the kind of stuff I'm thinking of:

(more low-powered version: https://github.com/dylanaraps/pure-bash-bible, https://github.com/dylanaraps/pure-sh-bible)

meisterluk, to linux Esperanto

Just a friendly reminder:

find .

… lists filesystem entries recursively in $PWD.

find . -name "*.sql"

… lists filesystem entries with suffix .sql recursively in $PWD.

find . -type f -name "*.sql"

… lists filepaths with suffix .sql recursively in $PWD.

find . -delete -type f -name "*.sql"

Deletes all files in $PWD. "-delete" needs to go to the end to filter for .sql files. Happened to me at work 🥲

helhum, to php German
@helhum@chaos.social avatar

Released version 8.1.0 of TYPO3 Console:

https://github.com/TYPO3-Console/TYPO3-Console/releases/tag/v8.1.0

I wanted to have a command that prints out asset urls for a long time already. Now it is shipped. You can use it for example to generate a json file with the extension key: url map to use it for more complex cases in your frontend js builds.

feditips, to mastodon
@feditips@mstdn.social avatar

(One for techy people today...)

Command line / terminal fans!

You can use Mastodon through a command line interface or a terminal user interface using the third party app "toot" for Linux etc:

➡️ https://toot.bezdomni.net

It's free and open source, find out more at the link.

This also works with Mastodon-compatible servers.

By the way, this app toot has nothing to do with the other third apps Toot! or Tooot, they just have very similar names.

carlwgeorge, to random
@carlwgeorge@fosstodon.org avatar

TIL the command line tool ack has a some easter egg options. They're listed in the man page if you want to see them all. My favorite is ack --bar.

https://beyondgrep.com/

dirkdierickx, to amiga
@dirkdierickx@mastodon-belgium.be avatar

As a Amigian, I'm well aware Vim started life on the but do you know the stories of all the editors that came before?

https://pikuma.com/blog/origins-of-vim-text-editor

  

arraybolt3, to Bash
@arraybolt3@theres.life avatar

A tip I find useful:

If you start a program in a terminal (usually a graphical one), you can "detach" it from the terminal, allowing you to close the terminal while leaving the application running. To do this, press Ctrl+Z in the terminal after starting the application, then run bg to background it, then disown to detach it. Then you can close the terminal or run exit and the application will keep running.

If you haven't launched the program yet, you can do this in one go with program & disown - the program will start, and you can close the terminal without also closing the program.

hook, to til
@hook@toot.si avatar

Positive surprise of the day that you can use 's in and it will auto-detect the archive format and compression.

e.g. I just uncompressed a bunch of files with:

ark --batch *.7z

instantiator, to opensource
@instantiator@mastodon.social avatar
5am, to linux
@5am@fosstodon.org avatar

Before executing important commands and scripts over , use in case of disconnect. If your connection drops or you close the terminal, you can SSH back in and enter screen -r to recover from where you left off. Being reunited with that hanging command prompt will be a relief!

jason, to linux
@jason@toots.dgplug.org avatar

Just got done reading Command Line Interface Guidelines, by Parish, Prasad, Fishman and Tashian.

Very pragmatic, very well written.

As someone who is interested in writing CLI programs, this was extremely helpful. Well worth the read.

Read it here: https://clig.dev/

h/t to @a13cui for the recommendation.

#CLI #Linux #ShellScripting

davidbisset, to wordpress
@davidbisset@phpc.social avatar
wezm, to rust
@wezm@mastodon.decentralised.social avatar

Numbat (https://numbat.dev/) is a calculator thing that understands units. They recently added some date and time support, which I'm hoping will satisfy my need for easy to use date math.

janriemer, to rust

for

https://rust-for-linux.com/coccinelle-for-rust

"Coccinelle is a tool for automatic program matching and transformation that was originally developed for making large scale changes to the Linux kernel source (ie, C code)."

- GritQL is a language for searching, , and modifying code.

https://docs.grit.io/

- A tool for code structural search, lint and rewriting. Written in :ferris:

https://ast-grep.github.io/

hugovk, to python
@hugovk@mastodon.social avatar

I've released pepotron 1.0.0 with the new Python 3.13 schedule!

$ python -m pip install pepotron
...

Use it to open PEPs in your browser:

$ pep 8
https://peps.python.org/pep-0008/

Or the release schedule for a Python version:

$ pep 3.13
https://peps.python.org/pep-0719/

Or word search:

$ pep dead batteries
Score Result
90 PEP 594: Removing dead batteries from the standard library
55 PEP 288: Generators Attributes and Exceptions
...

https://github.com/hugovk/pepotron

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! 🤞

jhx, to linux
@jhx@fosstodon.org avatar
stevegrunwell, to php
@stevegrunwell@phpc.social avatar

Hey , less than two hours until we talk about on the . Be there or be…in another session more aligned with your interests and/or learning goals.

Or taking time for yourself (remember: we’re only halfway through the conference and it’s important to pace yourself).

Or building lifelong friendships with fellow attendees.

I hope you spend the 3pm hour with me, but however you choose to spend it I hope you enjoy!

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

Got any blogs, especially with tooling and Automation? Please let me know.

  • 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