Skip to content

Instantly share code, notes, and snippets.

View proffapt's full-sized avatar
:shipit:
¯\_(ツ)_/¯

Arpit Bhardwaj proffapt

:shipit:
¯\_(ツ)_/¯
View GitHub Profile
@proffapt
proffapt / iitkgp-network-and-communication.md
Last active July 10, 2023 21:32
A thorough documentation on `communication` aspect of restrictions imposed on the network in IIT-KGP campus, discussing about the problem and some of the reliable solutions discovered so far.
@proffapt
proffapt / setup-c-cpp-dev-env.md
Last active July 29, 2023 19:26
Guiding complete beginners to setup their c/c++ development environment on any "normal" machine to get their journey started.
@proffapt
proffapt / azure-openvpn-setup.md
Last active March 3, 2025 15:02
Elaborated step by step guide to setup OpenVPN on Azure via student discount
@proffapt
proffapt / dcpp.md
Last active March 23, 2025 04:56
Everything you need to know about DC++ at IIT KGP.

DC++

IIT Kharagpur once had one of the largest DC (Direct Connect) networks in India1. It lost its glory when the pandemic hit and everything went online. This is an effort to restore that glory, by educating students about "How can one connect to the DC Hub properly". Following is the structure of this documentation for a quick overview and easy navigation.

Footnotes

  1. Which campus has the highest total share and users on DC++ in India?. Quora. Retrieved May 1, 2015.

@proffapt
proffapt / gentokenjson.py
Last active March 15, 2025 13:20
Script to generate `token.json` from `credentials.json` file for gmail enabled google api
import sys
from google_auth_oauthlib.flow import InstalledAppFlow
scopes = [f"https://www.googleapis.com/auth/gmail.{sys.argv[1]}"]
flow = InstalledAppFlow.from_client_secrets_file("credentials.json", scopes)
creds = flow.run_local_server(port=0)
with open("token.json", "w") as token:
token.write(creds.to_json())