LeetCode to GitHub Sync

Visakh Vijayan
2 min readNov 16, 2023

A big part of the software engineering interview process is showing off your skills and your overall discipline with coding. The coder's GitHub profile is one of the first things an interviewer evaluates.

But let's face it. It’s not easy to keep an active commit history on GitHub every time and that actually gives a feeling that the person is maybe NOT so sincere with coding. Well turns out there is a small hack to overcome this. But hey it will require you to be sincere in another form though.

As a coder, you are expected to code on a daily basis if you want to crack that first sweet and exciting job of yours. And one of the best platforms is Leetcode. If you are regular on LeetCode, this GitHub action could help you to an extent.

Aim

As you crack those questions on LeetCode, the solutions will be copied over and committed to a public repository of yours. And by doing this, your commit history will get populated to this —

Steps

  1. Make a new repository and name it something unique. I used the obvious one — leetcode
  2. Now go over LeetCode and inspect the network tab. In the Request headers section, you will find two keys csrftoken and LEETCODE_SESSION. Copy those values.
  3. Now head over to the GitHub Secrets section of your…

--

--

Visakh Vijayan
Visakh Vijayan

Written by Visakh Vijayan

Techie from Kerala, India. Days are for coding, nights for weaving tales of tech, travel, and finance. Join me in exploring this multifaceted journey

Responses (1)