TTFB stands for “Time To First Byte,” which refers to the amount of time it takes for a web server to start sending data back to a user’s browser after a request is made. This includes the time it takes for the server to receive the request, process it, and generate a response. TTFB is Continue reading “Checking TTFB using console in Mac or Linux”
Tag Archives: mac
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.
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 Continue reading “Fix Safari for Slow and Loading by Disable DNS Prefetching”
Finding all files containing a text string on Linux or Mac
I need to find some string in all folders. grep -rnw ‘./folder/’ -e “search-text” Note: -r is recursive -n is line number -w stands match the whole word
command c expects followed by text error in Mac
You received error from the sed command in Mac, because the argument in mac is different. If you type in Mac terminal, you may receive error like this Justins-MacBook-Pro:2 juzhax$ sed -i ‘s/old_text/new_text/g’ example.txt sed: 1: “config.php”: command c expects \ followed by text The first argument should be the extension of the backup file. Continue reading “command c expects followed by text error in Mac”
