Top Kubectl commands you should know.

Get Contexts kubectl config get-contexts Get Pods kubectl get pods Get Pods' Performance kubectl top pods Get specific Pod Performance while true; do echo "=== $(date '+%Y-%m-%d %H:%M:%S') ===" >> pod_metrics.log; kubectl top pod >> pod_metrics.log; sleep 10; done

Syntax highlighting in blogger

Problem: I want to have syntax highlighting for the code I share on my blog

Solution:

  1. I checked out this website: https://highlightjs.org/
  2. I downloaded the resources and upload them on to my server i.e. default.min.css and highlight.min.js
  3. Logged into my blogger and clicked on Edit HTML
  4. Find the closing 'head' tag and paste the following code there:
          
              <link rel="stylesheet" href="path_to_default.min.css"/>
              <script src="path_to_highlight.min.js"></script>
              <script>hljs.highlightAll();</script>
          
          
  5. Please note that in case of closing and opening tags of html, I used html entities.
  6. Yay! The syntax highlighting should be working now.