• 0 Posts
  • 74 Comments
Joined 1 year ago
cake
Cake day: June 15th, 2023

help-circle





  • I really like how nushell can parse output into it’s native structures called tables using the detect command.

    Unlike string outputs, tables allow for easy data manipulation through pipes like select foo will select foo key and you can filter and even reshape the datasets.

    This is great if you need to work with large data pipes like kuberneters so you can do something like:

    kubectl get pods --all-namespaces | detect columns | where $it.STATUS !~ "Running|Completed" | par-each { |it| kubectl -n $it.NAMESPACE delete pod $it.NAME }
    

    This looks complex but it parses kubectl table string to table object -> filters rows only where status is not running or completed -> executes pod delete task for each row in parallel.

    Nushell take a while to learn but having real data objects in your terminal pipes is incredible! Especially with the detect command.

    There’s are few more shells that do that though nu is the most mature one I’ve seen so far.


  • It’s incredible how little people spend on free software :(

    I used to have a dream of developing free software and launched a couple of big projects (thousands of github stars, millions of downloads) and no one fucking pays for anything no matter how easy you make it and how critical your software is to them.

    To give some perspective - some Youtubers earn same amount annually from Patreon than both Gnome and KDE yearly budgets combined (which is ~3M usd).

    I realized that the only way to fund something is to make people pay either through early releases, insider programs or something that forces the credit card form on them. That’s the only way.