Quick tip: leverage strings command to make hybrid files more readable
I came across a nifty linux command (strings
) recently and wanted to boost the volume. It's super helpful for filtering out non-human-readable (binary) content from from a file.
For example, I reviewing a Vim swap file containing php content and the output looked like:
(don't worry - this isn't actual data. . . .
Why does curl think my downloaded data is binary?
Because it is.
While working on a project recently, I came across an odd warning upon running curl
:
foouser@foo:~$ curl "https://api.foo.example/blah"
Warning: Binary output can mess up your terminal. Use "--output -" to tell
Warning: curl to output it to your terminal anyway, or consider "--output
Warning: . . .
Command Quick Reference
I’ve been meaning to do this for awhile now… Here’s my own list of handy commands/one-liners.
Azure - Bash
az group create --name <resourcegroupname> --location <region>
- Create a resource group in bash cloud console.
az acr create --resource-group <resourcegroupname> --name . . .