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

Just published Kitten’s¹ new database² commands:

  • kitten db [table name] to see info the database/a specific table
  • kitten db delete [table name] to delete the database/a specific table
  • kitten db tail <table name> to follow a specific table

Full docs: https://codeberg.org/kitten/app#database-commands

¹ https://codeberg.org/kitten/app
² https://codeberg.org/small-tech/jsdb

5am, to linux
@5am@fosstodon.org avatar

Don't take the unnecessary risk of running as . Instead, create your capture file (.cap, .pcap) with (sudo tcpdump -i eth0 -w file.pcap), then open it for analysis in Wireshark as your regular non-root user. 👍

Shini92, to rust
@Shini92@mas.to avatar

I'm thinking about how I could a good for
I may orientate on existing CLIs like , or

so e.g.

hsml compile # compiles all .hsml files to .html inside current folder and recursive below  
hsml compile ./example.hsml # just compiles the given file  
hsml fmt # formats  
hsml fmt # just formats given file  
hsml parse ./example.hsml # parses the given file and std::out as json AST  

But I'm not sure if this fulfills all need or if I need to change something

Shini92, to rust
@Shini92@mas.to avatar

now has the ability to read a file from the command line and create an HTML file from it 🥳

At the current stage 🚧 of the project, I don't want to release the crate just yet, so you'll need to clone the repo if you want to try it

Then just run e.g. cargo run -- example.hsml and an example.html will be written (or panic 😜)

The arguments are subject to change at any time before an official release

It uses under the hood

https://github.com/Shinigami92/hsml

scy, to programming
@scy@chaos.social avatar

How could I miss out on for so long? This might become my new favorite tool.

If you do anything with data and enjoy working in the terminal, check it out. It can

• provide a for viewing and editing data in , , , , & files and quite a few more
• sort, filter, join and edit that data, across files and across formats
• convert between the formats (interactively or not)
• record & play macros
• be scripted in

https://www.visidata.org/

e_es, to linux German
@e_es@chaos.social avatar

Wie kann ich von einer Festplatte den Inhalt grafisch z.B. als Pixelbild darstellen? z.B. jedes Byte als Grauwert? Ich möchte eine formatierte Festplatte grafisch analysieren. Sind überall Nullen oder Einsen, oder Rest von Inhalten.

Gibt's da was? Oder stichprobenartig z.B. mit 'dd' einen Block lesen und darstellen?

@shakal

e_es,
@e_es@chaos.social avatar

@allo Danke für die Idee und die ersten Hinweise, wie es klappen kann!

Einen Block sichern:
sudo dd if=/dev/sdc of=block1.img bs=1M count=1

5am, to linux
@5am@fosstodon.org avatar

I was very much at home with the content for this one, but it was still a good badge to earn. 👍 https://app.letsdefend.io/my-badges/detail/c6f2a01cb2ba49fcb14c3f533ad058b6

5am, to linux
@5am@fosstodon.org avatar

When using the tool to create compressed copies of files, you can include the -c switch (to write to stdout), e.g. gzip -c file &gt; file.gz, or use the -k switch (to keep original), e.g. gzip -k file. Otherwise, you'll overwrite the original, which you'll certainly want to avoid if working with important . 👍

MagicLike, to askfedi
@MagicLike@mstdn.social avatar

I am thinking about building a small machine to let it run 24/7 until all downloads are finished. (Don't want to let my laptop to run all the time...)
Are there any good torrent clients with a ? (I want to make it , but reachable via browser in the LAN)

@askfedi

5am, to linux
@5am@fosstodon.org avatar

I've been chipping away at my next mini this evening, reading up on digital and using the tool steghide, for Security Blue Team's Introduction to Digital Forensics. 🔏🔬

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

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!

GeekinKorea, to random

If you find the whole Calckey interface a bit too much for your device, or you just want to post something quickly, check out:
https://calckey.social/cli

It's simple and gets the job done without any UI or UX other than a "Post" button.

​:fediverse:​

deilann, to accessibility

One thing to keep in mind with regards to screen reader accessibility is that convention can be adapted to, even if that convention is less than ideal.

When people ask about plain text emphasis, even if people by standard chose a method i didn't prefer, but could recognize, i'd be able to know that's emphasis. This is why I like star - it means something to me in a way underline doesn't because it's less common.

Consistency and reliability mean so much, and this extends to navigation and site maps as well. Be boring and predictable, not quirky and new. This actually benefits everyone. It's the curb cut effect. No one likes having to dig for how to get to the place they need on your website. No one likes having to decipher what your typing quirks mean. Be unique in your content and what you can deliver, not your method.

edhowland,

@deilann go plain text! Plain text should be a universal option for every possible content format on the Internet. If you can't go with plain text, then at least go with good accessible HTML. This is why I like the command line so much. It's all plain text and very accessible.

jeffluszcz, to random
@jeffluszcz@mastodon.social avatar

Did you know there is a tool on your Raspberry Pi that will print out a diagram of the circuit board including ports and model name to the console? I'm not sure how I missed this over all these years!

"pinout" will print out your board image, info about the built in ports like USB/Ethernet and also what the GPIO ports are labeled and their purposes. https://gpiozero.readthedocs.io/en/stable/cli_tools.html.

nucliweb, to random
@nucliweb@webperf.social avatar

📝 Command Line Tip

Run "curl https://checkip.amazonaws.com" to get your public IP

I created an alias to remember it 😊

sparsick, to linux German
@sparsick@mastodon.social avatar

Learnt a new cli tool today.

Generating UUID on the cli with uuidgen

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/

mightyspaceman, to opensource
@mightyspaceman@aus.social avatar

Go check out Castero - a terminal-based podcast player

ferki, (edited ) to opensource
@ferki@fosstodon.org avatar

I started to review the blog post requests, drafts, and ideas accumulated over time. Most topics revolve around , , , , , , , and — with some overlap.

Help me decide: which topic shall I focus on first?

p.s.: comment to add more!

paul, to random
@paul@tapbots.social avatar

Any reason to not scrub and recycle all my <= 2TB 3.5" SATA spinners? I generally keep old hardware forever but just can't imagine me ever using any of those again.

erik,
@erik@infrageeks.social avatar

@paul So been there, so many times. Plus the internal debate once it’s been running for a while whether it’s worth hitting Ctrl-C and restarting with rdisk…

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

Wondering how to get readline working in a non-primary Node.js cluster process while keeping colour output via Chalk in your CLI app?

(I’m pretty sure you’re not but, hey, I ran into this today and I’m documenting it in hopes it might help someone else sometime.)

Check out the implementation in Kitten’s development-time process manager (this little file is what Kitten uses in place of a heavyweight module like Nodemon):

https://codeberg.org/kitten/app/src/branch/readline-under-cluster/build-templates/kitten-process-manager.js

sci_photos, to linux
@sci_photos@troet.cafe avatar

“AnsiWeather is a Shell script for displaying the current conditions in your , with support for ANSI colors and Unicode symbols.”

https://github.com/fcambus/ansiweather/

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

Never in a million years did I think I’d be using a command-line email client but Himalaya is actually really nice (I did set up some fish shell abbreviations for common commands, etc.) I’m particularly enjoying being able to compose messages in my regular editor (Helix Editor).

https://github.com/soywod/himalaya

I’m sure I’ll still be using Fastmail’s web interface too but this is nice to have alongside.

(This is one for the developers/tinkerers out there.)

hut, to random
@hut@chaos.social avatar

Did you know you can run queries on CSV files directly? 😍

https://til.simonwillison.net/sqlite/one-line-csv-operations

$ sqlite3 :memory:
sqlite> .mode csv
sqlite> .import thermometer.csv therm
sqlite> .schema
CREATE TABLE therm(
"date" TEXT,
"time" TEXT,
"temperature" TEXT
);
sqlite> SELECT date, MAX(temperature) FROM therm GROUP BY date;
2022-06-19, 35.4
2022-06-20, 42.8
2022-06-21, 49.3

Or in one line:
$ sqlite3 :memory: -cmd '.mode csv' -cmd '.import thermometer.csv therm' 'SELECT ...'

  • 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