Skip to content

Instantly share code, notes, and snippets.

View RitamDey's full-sized avatar
🏠
Working from home

Ritam Dey RitamDey

🏠
Working from home
View GitHub Profile
@RitamDey
RitamDey / spotify-generate-playlist-by-year.py
Last active August 17, 2023 04:19
Automation script to sort liked tracks into years and create playlists based upon when they were added to liked playlist
import spotipy
from spotipy.oauth2 import SpotifyOAuth
from datetime import datetime, timezone
import logging
from logging.handlers import TimedRotatingFileHandler
from collections import defaultdict
def save_playlist_and_last_seen_data(spotify):
pass
@RitamDey
RitamDey / subdb_sdk.py
Created May 29, 2020 23:34
A wrapper around the TheSubDB API
# TheSubDB Python SDK
# Copyright (C) 2020 Ritam Dey
import requests
from hashlib import md5
from os import path
import os
class SubtitleNotFound(Exception):
pass
@RitamDey
RitamDey / ssltest3.py
Created May 23, 2020 12:50
Python Heartbleed (CVE-2014-0160) Proof of Concept by Jared Stafford, working on Python 3. OG: https://gist.github.com/sh1n0b1/10100394
#!/usr/bin/python
# Quick and dirty demonstration of CVE-2014-0160 by Jared Stafford (jspenguin@jspenguin.org)
# The author disclaims copyright to this source code.
# Updated to be used with Python 3 by Ritam Dey (deyritam27031999@gmail.com)
import sys
import struct
import socket
import time