• 0 Posts
  • 96 Comments
Joined 1 year ago
cake
Cake day: July 5th, 2023

help-circle




  • As a long-time bash, awk and sed scripter who knows he’ll probably get downvoted into oblivion for this my recommendation: learn PowerShell

    It’s open-source and completely cross-platform - I use it on Macs, Linux and Windows machines - and you don’t know what you’re missing until you try a fully objected-oriented scripting language and shell. No more parsing text, built-in support for scalars, arrays, hash maps/associative arrays, and more complex types like version numbers, IP addresses, synchronized dictionaries and basically anything available in .Net. Read and write csv, json and xml natively and simply. Built-in support for regular expressions throughout, web service calls, remote script execution, and parallel and asynchronous jobs and lots and lots of libraries for all kinds of things.

    Seriously, I know its popular and often-deserved to hate on Microsoft but PowerShell is a kick-ass, cross-platform, open-source, modern shell done right, even if it does have a dumb name imo. Once you start learning it you won’t want to go back to any other.







  • And cheap oil is bad for the US oil industry and US energy independence. Under ~$3 a barrel and our fracked oil fields become unprofitable. Something like ¾ of Texas’ oil fields were closed in the first year or so after covid and most fracked wells suffer damage from closing process and can’t be re-opened. Putin intentionally kept production high during Covid, causing the prices to plummet more, to damage the US oil industry as we’d become the world’s top producer.

    Heck the stupid XL pipeline not being available keeps prices low for the US Midwest because Canada is forced to sell crude at a discount to US midwest refineries. But Republicans repeat the Koch brothers promoted, well-rehearsed lies that that somehow that pipeline allowing Canada to get their crude to refineries on the Texas coast and sell on a world market would lower gas prices.