Daily Shaarli

All links of one day in a single page.

May 8, 2022

gron the JSON flattener

gron is a self-contained Go executable you can download from here on GitHub. In the UNIX tradition, gron does one thing well: it flattens JSON into a structure that's easily processed by shell tools, line by line.

GitHub - MikeDaniel18/oh-heck-cli

Oh-heck is a CLI tool that takes natural language input and outputs a terminal command using GPT-3.

GitHub - nvbn/thefuck: Magnificent app which corrects your previous console command.

The Fuck is a magnificent app, inspired by a @liamosaur tweet, that corrects errors in previous console commands.

Is The Fuck too slow? Try the experimental instant mode!

Fig

Fig adds IDE-style autocomplete to your existing terminal. Move faster with Fig.

GitHub - antonmedv/fx: Terminal JSON viewer

fx is the best JSON viewer you'll ever use

GitHub - so-fancy/diff-so-fancy: Good-lookin' diffs. Actually… nah… The best-lookin' diffs.

iff-so-fancy strives to make your diffs human readable instead of machine readable. This helps improve code quality and helps you spot defects faster.

GitHub - dalance/procs: A modern replacement for ps written in Rust

procs is a replacement for ps written in Rust.

Colored and human-readable output
    Automatic theme detection based on terminal background
Multi-column keyword search
Some additional information which are not supported by ps
    TCP/UDP port
    Read/Write throughput
    Docker container name
    More memory information
Pager support
Watch mode (like top)
Tree view
GitHub - bootandy/dust: A more intuitive version of du in rust

du + rust = dust. Like du but more intuitive.
Why

Because I want an easy way to see where my disk is being used.

Bringing the Unix Philosophy to the 21st Century - Brazil's Blog

Had JSON been around when I was born in the 1970’s Ken Thompson and Dennis Ritchie may very well have embraced it as a recommended output format to help programs “do one thing well” in a pipeline.

To that end, I argue that linux and all of its supporting GNU and non-GNU utilities should offer JSON output options. We already see some limited support of this in systemctl and the iproute2 utilities like ip where you can output in JSON format with the -j option.

NCurses Disk Usage

Ncdu is a disk usage analyzer with an ncurses interface. It is designed to find space hogs on a remote server where you don’t have an entire graphical setup available, but it is a useful tool even on regular desktop systems. Ncdu aims to be fast, simple and easy to use, and should be able to run in any minimal POSIX-like environment with ncurses installed.

via @stoeps

GitHub - jarun/googler: Google from the terminal

googler is a power tool to Google (web, news, videos and site search) from the command-line. It shows the title, URL and abstract for each result, which can be directly opened in a browser from the terminal. Results are fetched in pages (with page navigation). Supports sequential searches in a single googler instance.

googler was initially written to cater to headless servers without X. You can integrate it with a text-based browser. However, it has grown into a very handy and flexible utility that delivers much more. For example, fetch any number of results or start anywhere, limit search by any duration, define aliases to google search any number of websites, switch domains easily... all of this in a very clean interface without ads or stray URLs. The shell completion scripts make sure you don't need to remember any options.

via @stoeps

macos - What's wrong with my OpenSSH Include directive? - Super User

Include
Include the specified configuration file(s). Multiple pathnames may be specified and each pathname may contain glob(3) wildcards and, for user configurations, shell-like
``~'' references to user home directories. Files without absolute paths are assumed to be in ~/.ssh if included in a user configuration file or /etc/ssh if included from
the system configuration file. Include directive may appear inside a Match or Host block to perform conditional inclusion.

I had my Include statement trailing a Host directive so it was being included into that Host's config.

GitHub - Peltoche/lsd: The next gen ls command

This project is a rewrite of GNU ls with lot of added features like colors, icons, tree-view, more formatting options etc. The project is heavily inspired by the super colorls project.

via

Oliver Weiler
@helpermethod

How to colorizing cat command output or files using ccat app on Linux or Unix system - nixCraft

ccat is the colorizing cat. It works similar to the cat command but displays content with syntax highlighting. It supports JavaScript, Java, Ruby, Python, Go, C, and JSON programming languages. The overhead of ccat command comparing to a cat is minimum on a modern desktop with powerful multi-core CPUs and tons of RAM.

GitHub - tomnomnom/gron: Make JSON greppable!

Make JSON greppable!

gron transforms JSON into discrete assignments to make it easier to grep for what you want and see the absolute 'path' to it. It eases the exploration of APIs that return large blobs of JSON but have terrible documentation.

AA-project homepage
Port all important software (like Doom, Second Reality, X windows etc..) on AA-lib.
Port AA-lib on all available platforms (mainly ZX-Spectrum and Sharp).
Force IBM to start manufacturing MDA cards again. 

AA-project was started by Jan Hubicka. In that times just a few people knew about it. Then a new demo named BB has been relased to show the power of AA-lib technology. Now the project is freely available and anyone can help.

GitHub - sharkdp/hexyl: A command-line hex viewer

hexyl is a simple hex viewer for the terminal. It uses a colored output to distinguish different categories of bytes (NULL bytes, printable ASCII characters, ASCII whitespace characters, other ASCII characters and non-ASCII).

GitHub - ogham/dog: A command-line DNS client.

dog is a command-line DNS client, like dig. It has colourful output, understands normal command-line argument syntax, supports the DNS-over-TLS and DNS-over-HTTPS protocols, and can emit JSON.

GitHub - nicolargo/glances: Glances an Eye on your system. A top/htop alternative for GNU/Linux, BSD, Mac OS and Windows operating systems.

Glances is a cross-platform monitoring tool which aims to present a large amount of monitoring information through a curses or Web based interface. The information dynamically adapts depending on the size of the user interface.

GitHub - atanunq/viu: Terminal image viewer with native support for iTerm and Kitty

A small command-line application to view images from the terminal written in Rust. It is basically the front-end of viuer. It uses either iTerm or Kitty graphics protocol, if supported. If not, lower half blocks (▄ or \u2584) are displayed instead.

Based on the value of $TERM, viuer decides which protocol to use. For half blocks, $COLORTERM is inspected. If it contains either truecolor or 24bit, truecolor (16 million colors) will be used. If not, it will fallback to using only ansi256. A nice explanation can be found in this gist.

How to audit SSH server and client config on Linux/Unix - nixCraft

In simple words, ssh-audit is a tool for ssh server and client auditing. For example, you can use this tool:

Scan for OpenSSH server and client config for security issues
Make sure the correct and recommended algorithm is used by your Linux and Unix boxes
Check for OpenSSH banners and recognize device or software and operating system
Lookup for ssh key exchange, host-keys, encryption, and message authentication code algorithms
Alert developers and sysadmin about config issues, weak/legacy algorithms, and features used by SSH
Historical information from OpenSSH, Dropbear SSH, and libssh
Policy scans to ensure adherence to a hardened/standard configuration
GitHub - aristocratos/btop: A monitor of resources

Resource monitor that shows usage and stats for processor, memory, disks, network and processes.

C++ version and continuation of bashtop and bpytop.

via @stoeps

GitHub - StanfordSNR/guardian-agent: [beta] Guardian Agent: secure ssh-agent forwarding for Mosh and SSH

Guardian Agent (now in beta) allows users to securely empower remote hosts to take actions on their behalf, using their SSH credentials. It allows Mosh and SSH users to enable agent forwarding for every connection, even to hosts they may not fully trust.

Guardian Agent is an alternative to traditional ssh-agent forwarding, which can only safely be enabled when connecting to trusted hosts. The traditional ssh-agent protocol doesn't give the agent information about which host is asking to perform a command on the user's behalf, which server that hosts wants to connect to, or which command the host wants to perform:

Nerd Fonts - Iconic font aggregator, glyphs/icons collection, & fonts patcher

Nerd Fonts patches developer targeted fonts with a high number of glyphs (icons). Specifically to add a high number of extra glyphs from popular ‘iconic fonts’ such as Font Awesome, Devicons, Octicons, and others.

(21) Denis Denisov 🇺🇦 ❤️ on Twitter: "quicssh is a #QUIC proxy that allows to use QUIC to connect to an #SSH server without needing to patch the client or the server. https://t.co/27BBfh604H" / Twitter

quicssh is a #QUIC proxy that allows to use QUIC to connect to an #SSH server without needing to patch the client or the server.

GitHub - papis/papis: Powerful and highly extensible command-line based document and bibliography manager.

Papis is a powerful and highly extensible command-line based document and bibliography manager.

via "gallo"

GitHub - natesales/q: A tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH.

q -- a tiny command line DNS client with support for UDP, TCP, DoT, DoH, DoQ and ODoH.

cheat.sh/:firstpage

cheating is ok 😂 http://cheat.sh is one of my favorite utilities and easy to curl from the command line. Want to know about "ssh"? Just curl http://cheat.sh/ssh and get a little cheat sheet right to your terminal. Here's an example with "echo":

via John McBride
@johncodezzz

GitHub - charmbracelet/glow: Render markdown on the CLI, with pizzazz! 💅🏻

Glow is a terminal based markdown reader designed from the ground up to bring out the beauty—and power—of the CLI.

Use it to discover markdown files, read documentation directly on the command line and stash markdown files to your own private collection so you can read them anywhere. Glow will find local markdown files in subdirectories or a local Git repository.

By the way, all data stashed is encrypted end-to-end: only you can decrypt it. More on that below.

GitHub - ducaale/xh: Friendly and fast tool for sending HTTP requests

xh is a friendly and fast tool for sending HTTP requests. It reimplements as much as possible of HTTPie's excellent design, with a focus on improved performance.

GitHub - ClementTsang/bottom: Yet another cross-platform graphical process/system monitor.

A customizable cross-platform graphical process/system monitor for the terminal.

GitHub - cantino/mcfly: Fly through your shell history. Great Scott!

McFly replaces your default ctrl-r shell history search with an intelligent search engine that takes into account your working directory and the context of recently executed commands. McFly's suggestions are prioritized in real time with a small neural network.

GitHub - kellyjonbrazil/jc: CLI tool and python library that converts the output of popular command-line tools and file-types to JSON or Dictionaries. This allows piping of output to tools like jq and simplifying automation scripts.

jc JSONifies the output of many CLI tools and file-types for easier parsing in scripts. See the Parsers section for supported commands and file-types.

GitHub - chubin/wttr.in: The right way to check the weather

wttr.in — the right way to check curl the weather!

wttr.in is a console-oriented weather forecast service that supports various information representation methods like terminal-oriented ANSI-sequences for console HTTP clients (curl, httpie, or wget), HTML for web browsers, or PNG for graphical viewers.

via @stoeps

musikcube

musikcube is a fully functional terminal-based music player, library, and streaming audio server that runs natively on Windows, macOS, and Linux. it also runs well on a Raspberry Pi with a custom DAC (e.g. IQaudIO DAC+, HiFiBerry DAC+ and others), and can output 24bit/192k audio comfortably.

via stoeps

(25) Jon Gorenflo 🇺🇦🌻 on Twitter: "A friendly reminder that if you need to sort IP addresses in numerical order by octet, you can use sort -V, which is intended to sort software versions…but works just as well for IP addresses. sort -V ips.txt 1.9.128.13 1.9.128.17 - - SNIP - - 223.247.130.72 223.255.28.203" / Twitter

A friendly reminder that if you need to sort IP addresses in numerical order by octet, you can use sort -V, which is intended to sort software versions…but works just as well for IP addresses.

sort -V ips.txt
1.9.128.13
1.9.128.17

    • SNIP - -
      223.247.130.72
      223.255.28.203
Starship: Cross-Shell Prompt

The minimal, blazing-fast, and infinitely customizable prompt for any shell!

via Oliver Weiler
@helpermethod

5 Linux commands I never use | Enable Sysadmin

But some commands, programs, applications, or whatever you want to call them are just plain unneeded for me. I've found five such commands. I haven't spent the time to trace their origins because that would be a huge time vacuum that I can't afford. So, here they are in all their glory—the five commands on my system that I've found I never use. They are in alphabetical order.

"Website "Österreich testet" verursacht 187.000€/Monat.

Website "Österreich testet" verursacht 187.000€/Monat.
Hier die parlamentarische Beantortung im Wortlaut
https://parlament.gv.at/PAKT/VHG/XXVII