• 8 Posts
  • 109 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.





  • Yes of course it can help you. The lack of imagination in this thread is truly astounding.

    You have an assistant with you that can instantly answer your questions and help you develop your business:

    • “what’s the most efficient way to track appointments for me on Linux desktop program with minimal budget and I have 4-6 daily appointments. My key features are reminder 30min before appointment and ability to put notes for each appointment”
    • “help me optimize my meeting structure. I’m in X niche and currently I have 30minute daily meetings that don’t follow any structure, what are some de facto meeting structures and post meeting operations in this industry?”

    I’m not directing this at OP but to all of the naysayers in this thread - if you can’t find use for a tireless, 20$/mo assistant that will instantly answer your questions then you should not be owning any business or leading anything for that matter.




  • Journaling.
    It’s extremely powerful from mental health to actual planning tasks and keeping track of things but weirdly enough it can be difficult to get into.

    My best advice would be to make it as easy and as low stakes as possible at the beginning. Just open file/journal and write anything every day, even if it’s one word. Don’t worry about anything else. Then you can add and evolve this habbit to whatever feels useful to you.













  • I’ve updated some legacy nodejs to Deno recently and it’s actually not bad! If you’re using serverless Denoflare is super convenient and DTN is a tool for building Deno to NPM (both esm and commonjs) so you can have easy backwards compatibility if needed, it even shims all of the Deno standard lib.

    It’s really impressive what Deno and Bun people have done - for the first time I actually somewhat enjoy server side JS!