Mac
How to find the oldest and newest file in directory in Linux shell
Complex way, but allowed you to customise the output. Simple and shorter way Extra: Find the newest files in shell
curl: (35) error:14077410:SSL routines:SSL23_GET_SERVER_HELLO:sslv3 alert handshake failure in MacOS
I would like to run ab test on my website on MacOS Upgrade OpenSSL in MacOS
How to remove outdated installed versions of Homebrew packages in MacOS?
The cleanup (brew cleanup) command will remove outdated installed package versions. To affect a particular package/formula, you may supply a formula name like so: brew cleanup $FORMULA. brew cleanup only cleans outdated package versions if you have the newest version installed, so first brew upgrade then brew cleanup It saved me 5GB at /usr/local/
ERROR: Couldn’t create a device interface iterator: (e00002bd)
You need older version of Android Platform Tools to solve this problem You may use this version Android Platform Tools 26.0.1 Copy the fastboot to /usr/local/bin on your Mac.
How to rename rename *.png.png to *.png in Mac OS terminal
I always use this way to rename *.png.png to *.png [code lang=”shell”] find ./ -name ‘*.png.png’ -type f \ -exec sh -c ‘mv {} ./$(basename -s .png.png {}).png’ \; [/code]
libpng error: IDAT: CRC error
I receive this error message while using wkhtmltoimage. In Mac, it it not allow you to use Preview to save to other format. It will display cannot write, or enable to save. The fastest way to solve this problem, can be done in Automator, you can use Photo -> Flip Image -> Flip Image then …
Fix Safari for Slow and Loading by Disable DNS Prefetching
I’m wondering why Safari on my Mac always slower load on facebook.com, but fast in Google Chrome. I did set the DNS for my network to Google DNS 8.8.8.8 and 8.8.4.4 and it doesn’t help much. facebook.com reverse the IP differently from different location, if your browser prefetching it, maybe slow down from the previous …
Fix Safari for Slow and Loading by Disable DNS Prefetching Read More »
Finding all files containing a text string on Linux or Mac
I need to find some string in all folders. [code lang=”bash”] grep -rnw ‘./folder/’ -e “search-text” [/code] Note: -r is recursive -n is line number -w stands match the whole word