Level up your SRE game — Best of this week — 29th Jan 2023

Vikas Yadav
2 min readJan 29, 2023

--

“Learning is not attained by chance, it must be sought for with ardor and attended to with diligence.” — Abigail Adams

I compile Site Reliability Engineering/DevOps-related articles every week and help you keep up your learning game.

This week we covered:

  1. Command line tool to simulate git operations
  2. Cache your python http requests
  3. Reproducible dev environments using Devcontainers

I also write about the tools and tips related to Software Development and SRE regularly on my Linkedin profile. You can check out my profile here: https://www.linkedin.com/in/vikasyadav94/

Command Line tool to simulate Git Operations

Just discovered git-sim and it’s blowing my mind!

This command line tool allows you to visually simulate Git operations in your own repo with a single terminal command. Say goodbye to confusion and unexpected repository states.

Features
-> Git command visualization: It allows you to generate a custom Git command visualization (jpg) from your repository, which can help you to understand the effects of Git commands before actually running them.

-> Animation: git-sim provides the option of generating an animated video (mp4) instead of a static image using the — animate flag, which is too fancy :D

Checkout git-sim here: https://lnkd.in/ebCYeUsy

#git #coding #opensource #github

Cache your python http requests

Did you know you can improve the performance of your Python code by caching the responses from external API?

Check the requests-cache library. It seamlessly integrates with the python requests library and can save you from writing extra code for caching and also speed things up at the same time.

Checkout the git repo for more info and code examples: https://lnkd.in/eUfFtWqU

#python #speed

Reproducible dev environments using Devcontainers

Did you know you can create reproducible dev environments directly on vscode?

I have been using Devcontainers for a while now and I am amazed by how wonderful they are! My development workflow has never been smoother — no more frustrating environment inconsistencies or dependency issues. To add to it the ability to share my entire development environment makes collaboration a breeze.

If you’re not using Devcontainers yet, trust me, you’re missing out! Give them a try and thank me later.

Here’s a link to some template environments that can help you get started quickly: https://lnkd.in/eSx7uZ-E

#devcontainer #development #codinglife #docker #vscode

--

--

Vikas Yadav
Vikas Yadav

No responses yet