brewedbits.dev

Personal blog with guides and news on selfhosting, Linux and AI, from the Netherlands

nextDash nextdash --aboutYour bookmarks. Your terminal. checks your links knows your Docker host one container, no cloudLive demo →nextdash.cc ↗

tips

~/tips/scripting
All tips

10 tips Scripting

One command, setting or habit at a time about Scripting: what it does, the line to copy and a caveat or two.

Standard library 6

Python one-liners 2

Windows 2

  • Call a REST API and work with the fields directly, without parsing JSON yourself.

    $r = Invoke-RestMethod https://api.github.com/repos/PowerShell/PowerShell/releases/latest
  • Runs a PowerShell command and reports how long it took to finish.

    Measure-Command { Get-ChildItem -Path C:\Windows\*.txt -Recurse }