MacOS has many different CLI tooling built in. Did you know you can copy paste things with terminal command? Or measure internet speed with it?
Here's thread 🧵 with different pre-installed tooling that will make you more productive. ⬇️
1/5 ✂️ Copy paste! You can take output from bash command and store the result in your clip board using "pbcopy" and "pbpaste".
2/5 📂 When using terminal, you sometimes need to open file / directory in different application - like "subl file.txt", but did you know you can open it in Finder as well using "open"?
3/5 🏎️ There's also built in network speed measurement tool "networkQuality". No need to go to speedtest. you can get your network speed directly in terminal.
If you want to measure more data, such as packet loss and get network route quality, use "mtr".
4/5 🆔 As a developer, you sometimes need to generate UUIDs. On MacOS you can do that directly from the terminal.
By default "uuidgen" generates uppercase UUIDs, but run that through "tr" and you will get lowercase ones.
BTW. on last picture, there's also variant for Linux.
5/5 💤 If you don't want your computer to go to sleep/turn off display/logout or shut down, you can use "caffeinate" command that will not allow your computer to go to sleep. Super helpful if you want to just listen to music or watch your movie without interruptions.
• • •
Missing some Tweet in this thread? You can try to
force a refresh
🧵 There are hundreds o PRIVATE RSA keys in DNS TXT data.
You read it right, the secret part of RSA that you should never expose... What's even more surprising is, that it might make sense to have it there.
1/6 While poking around DNS, we found something unexpected: private keys in TXT records. These keys, which are meant to be private, were just hanging out there, visible to anyone checking those records.
2/6 Why is this even a thing? Well, some email systems use DKIM, where public keys in DNS help verify a sender’s authenticity by validating email signatures.
BUT you always only publish public part of the key! Not the private part! That one must remain secret.