Google/Google Photos
Google products seem to slowly become worse, examples: Gmail no longer recognizes flight itineraries. Google Photos: Removed the map view. Doesn’t let you easily delete all photos. Doesn’t offer a simple way to downlo...
Google products seem to slowly become worse, examples: Gmail no longer recognizes flight itineraries. Google Photos: Removed the map view. Doesn’t let you easily delete all photos. Doesn’t offer a simple way to downlo...
tl;dr Let's say you have a File[1].txt file and you would like to read it. Get-Content "File[1].txt" ^ this returns nothing Why? PowerShell interprets [] as special characters. A range in this case. PowerShell is actu...
git branch -d `git branch | grep feature` # delete all branches with feature in its name git branch | grep feature | xargs git branch -d # same as ^ git push origin --delete branchXYZ # git push origin :branchXYZ git ...
Running npm ci on WSL (Windows Subsystem for Linux) failed with: npm ERR! syscall getaddrinfo npm ERR! errno EAI_AGAIN npm ERR! request to http://registry.npmjs.org/nodemon failed, reason: getaddrinfo EAI_AGAIN regist...
My company had a hackathon focused on data scraping/processing. Each team had to scrape 3 endpoints. I came up with something similar to this: open System open System.Net.Http open System.Text let c = new HttpClient()...
PowerShell uses dynamic scoping. Yet the about_Scopes page doesn't mention the word "dynamic". Wird (wird - so weird that you need to misspell weird to get your point across). tl;dr; In PowerShell variables are copied...
but only in a specific directory The idea - use the Prompt function to check if you're in a specific dir and set/unset an env var: function Prompt { $currentDir = Get-Location if ("C:\git\that-special-dir" -eq $curren...