We use Graphite to store time series metrics for Sitespeed run result. Each of Sitespeed page result data contains more than 500 metrics. It’s interesting that we only see the metrics after a few days. We checked all the logs and don’t see any network issues. We only see the root cause when we built a dashboard to see some graphites internal metrics. As you can see , the number of metrics created was very low while the drop was very high? Why there are so many drops? It turns out that in graphite we have a configure So, it only create 50 metrics perRead More →

Have you ever thought of backing up your icloud photos to your own disk? Well, i haven’t found tools to do this job yet. I spent few hours to see how ICloud photos works via web interfaces. It’s pretty simple, it use some APIs to pull your photos library information. Can you use a script instead of via Web? yes, you can , you need to get the cookies and paste it to your script. It’s interesting that once you have the cookie you can query from any place – Apple does not check the IP , it just check the cookies only.  So, ifRead More →

  I was struggling with the client certificate with Puppeteer. Can you use client certificate for authentication? Yes, you can , but you have to do 3 things: Run the puppeteer in normal mode (headlesss=false) Import the certificate to your profile , you need a certificate file in pfx format , this is my script to import echo “Importing certificate” mkdir -p $HOME/.pki/nssdb certutil -d sql:$HOME/.pki/nssdb -N –empty-password certutil -d sql:$HOME/.pki/nssdb -L pk12util -d sql:$HOME/.pki/nssdb -i /config/cert.pfx -W “” Update the policy: /etc/chromium/policies/managed/policy.json ( if you using Chrome, then it should be /etc/opt/chrome/policies/managed/policy.json) Here is my sample file:   { “AutoSelectCertificateForUrls”: [“{\”pattern\”:\”\”,\”filter\”:{}}”] , “AuthServerWhitelist”: “.org”,Read More →