Skip to content

Instantly share code, notes, and snippets.

View light-bringer's full-sized avatar
:bowtie:
maomao

Debapriya Das light-bringer

:bowtie:
maomao
View GitHub Profile
@light-bringer
light-bringer / resume.md
Created March 18, 2025 01:42
Debapriya's Resume

Debapriya Das

Backend Engineer | Golang | Python | Cloud | Distributed Systems

A skilled backend engineer with over 8 years of experience in designing, developing, and maintaining backend/platform services, infrastructure, and tooling. Proficient in Golang, Python, Postgres, Kafka, AWS, GCP, and Linux. Loves contributing to open-source over the weekends.

📫 Contact Information

@light-bringer
light-bringer / Usage.md
Last active July 15, 2020 17:25
Hash generation Utility scripts

This is a utility script that generates md5 hash and sha1 hash of all files present in a directory/subdirectory and outputs the same in txt files.

  • sha1.txt
  • md5.txt

Run the following command to execute the utility script.

PS C:\Users\debapriya.das\Desktop> python .\hashcode_muncher.py
usage: hashcode_muncher.py [-h] dir_path
hashcode_muncher.py: error: the following arguments are required: dir_path
somevalue = True
while (somevalue):
# do whatever shit you are doing
if input == 0:
# if this is a switch case, put this inside a switch statement
# python does not have a switch statement
somevalue = False
somevalue = True
while (somevalue):
# do whatever shit you are doing
if input == 0:
# if this is a switch case, put this inside a switch statement
# python does not have a switch statement
somevalue == False
{
"data": {
"rdap": {
"nir": null,
"asn_registry": "arin",
"asn": "23148",
"asn_cidr": "204.51.76.0/22",
"asn_country_code": "US",
"asn_date": "2009-06-09",
"asn_description": "TERRENAP, US",
def timeit(method):
def timed(*args, **kw):
ts = time.time()
result = method(*args, **kw)
te = time.time()
if 'log_time' in kw:
name = kw.get('log_name', method.__name__.upper())
kw['log_time'][name] = int((te - ts) * 1000)
else:
print '%r %2.2f ms' % \
@light-bringer
light-bringer / Instructions.txt
Last active December 10, 2019 11:18
Python 3 program to count number of words in txt or doc or docx files
Have a python3 setup ready!
Install docx from pip
~/Desktop/awesome-performance-test-framework master ✗ 6h8m ✖ ⚑ ◒
▶ pip install --pre python-docx
Collecting python-docx
Downloading https://files.pythonhosted.org/packages/e4/83/c66a1934ed5ed8ab1dbb9931f1779079f8bca0f6bbc5793c06c4b5e7d671/python-docx-0.8.10.tar.gz (5.5MB)
|████████████████████████████████| 5.5MB 9.2MB/s
Requirement already satisfied: lxml>=2.3.2 in ./venv/lib/python3.7/site-packages (from python-docx) (4.4.2)
968c1d4e3784a9c5e7180cf7959edb708d8222192c633d0c707b117fa8fd962e77b4003f87b8459d9583cd4dd8deaf357cbb13b583e913a2eb8eca3a486399e0
import requests
def get_city(ipaddr):
url = "https://www.ipinfo.io/" + str(ipaddr)
response = requests.get(url=url).json()
return response['city']
lines = open('log.txt').readlines()
cities = {}
Question1Max. Marks 100.00
The Ultimate FIFA Dream Team Selection Challenge
[Problem Statement]
For the new season of English Premier League, the football club owners are re-strategizing their teams to ensure that they win this season. They need crunch data to build their dream team and guarantee a win. You are required to help the coaches who are not very tech savvy make a quick and effective decision by retrieving the data that they require.
In order to help them, you are required to implement a backend system for FIFA. This system must implement the following:
Microservices architecture that extracts the provided data