Skip to content

Instantly share code, notes, and snippets.

View dev-ritik's full-sized avatar
👨‍💻
Code Stalking!

Ritik kumar dev-ritik

👨‍💻
Code Stalking!
View GitHub Profile
@dev-ritik
dev-ritik / cbse_scrape.py
Last active March 20, 2021 16:34
Script to scrape X 2014 results from CBSE website by brute forcing DoBs
import csv
import datetime
import random
import sys
import time
from typing import Optional
import requests
from bs4 import BeautifulSoup
from orderedset import OrderedSet

Keybase proof

I hereby claim:

  • I am dev-ritik on github.
  • I am ritik (https://keybase.io/ritik) on keybase.
  • I have a public key whose fingerprint is DDB5 5731 446B 750E 28DB 0D43 1FCA B35B CE10 3F2F

To claim this, I am signing this object:

@dev-ritik
dev-ritik / client.py
Created May 10, 2020 15:06
Simple HTTPS client example
#!/usr/bin/python3
import socket
import ssl
from urllib3.util.ssl_ import create_urllib3_context, resolve_ssl_version
# example.com IP address
ADDRESS = '93.184.216.34'
PORT = 443

tmux cheatsheet

As configured in my dotfiles.

start new:

tmux

start new with session name:

@dev-ritik
dev-ritik / commit.md
Last active January 16, 2020 09:58
Git commit message convention @mdg

Please start your commits with these prefixes for better understanding among collaborators, based on the type of commit:

  • feat: (addition of a new feature)
  • rfac: (refactoring the code: optimization/ different logic of existing code - output doesn't change, just the way of - - execution changes)
  • docs: (documenting the code, be it readme, or extra comments)
  • bfix: (bug fixing)
  • chor: (chore - beautifying code, indents, spaces, camelcasing, changing variable names to have an appropriate meaning)
  • ptch: (patches - small changes in code, mainly UI, for example color of a button, increasing size of tet, etc etc)
  • conf: (configurational settings - changing directory structure, updating gitignore, add libraries, changing manifest etc)
@dev-ritik
dev-ritik / Server.md
Created December 25, 2019 06:50
Simple server program steps

Server

  1. Create a new Socket and get its file descriptor.

    • Domain: Protocol family to be used (AF_INET)
    • Type: Communication strategy (SOCK_STREAM)
    • Protocol: The protocol to be used in the family with the socket type (0)
  2. Set the options for the socket.

    • Level: The level of the options to be set. Use SOL_SOCKET for socket level options
    • Option_name: The name for the option to be passed to the protocol. Options like SO_REUSEADDR shall override checks previous occupation of the same port
  • Option_value: Set the value of the option to the value pointed
@dev-ritik
dev-ritik / Release.md
Created August 28, 2019 09:17
Releaase notes for NpChat to Play Store

Short description

npChat is a photo and file-sharing application built on Android and is inspired by Snapchat.

Full description

We present npChat, an Android application that allows users to capture and share multimedia with friends in a secure and fully decentralized way, while still giving users complete control over their data as well as communication.

The project's goals are to develop the completely decentralized application to runs over the Named Data Network (NDN), utilize a partial sync protocol and utilize a Web-Of-Trust like model

@dev-ritik
dev-ritik / Report.md
Created August 25, 2019 17:46
Report for my project on NpChat for the Google Summer of Code 2019

Android App Improvement

Introduction

NpChat is a photo and file-sharing application built on Android and is inspired by Snapchat. It runs over the Named Data Network (NDN) and focuses on decentralised information sharing architecture. It stands as one of the best examples of Android application developed on the new Internet architecture.

The project description can be found here. During Google Summer of Code 2019, I contributed to the project and developed several features to improve the NpChat app, its supporting library(Jndn) and the Identity Manager.

Work

@dev-ritik
dev-ritik / ca-module.cpp
Created August 24, 2019 09:38
Code for running modified ndncert-ca-server for android-identity-manager
/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil; -*- */
/**
* Copyright (c) 2017-2019, Regents of the University of California.
*
* This file is part of ndncert, a certificate management system based on NDN.
*
* ndncert is free software: you can redistribute it and/or modify it under the terms
* of the GNU General Public License as published by the Free Software Foundation, either
* version 3 of the License, or (at your option) any later version.
*
@dev-ritik
dev-ritik / Progress.md
Last active July 4, 2020 17:59
Summary of work done in GSoC on NDN

Introduction

Google Summer of Code is a global program focused on bringing more student developers into open source software development. Students work with an open-source organization on a 3-month programming project during their break from school.

The actual timeline of GSoC is available here. The main coding period spans between 27 May and 19 August and is divided into 3 parts each one following an evaluation.

Project Introduction

NpChat is a photo and file-sharing application built on Android and is inspired by Snapchat. It runs over the Named Data Network (NDN) and focuses on decentralised information sharing architecture. It stands as one of the best examples of Android application developed on the new Internet architecture.

The project description can be found here. The project aims to improve the functionalities of the erstwhile NpChat application. D