Skip to content

Instantly share code, notes, and snippets.

View tkrsh's full-sized avatar
🌴
Exploring

Utkarsh Chandra Srivastava tkrsh

🌴
Exploring
View GitHub Profile
@tkrsh
tkrsh / compressor.py
Created October 24, 2021 01:35
Compress your Media Libraries with latest h.265 encoding HEVC by NVIDIA NVENC with the help of ffmpeg linux
import os
import sys
import subprocess
import time
def compress(files):
for file in files:
prefix = os.getcwd() + "/" + "compressed" + "/" + file
@tkrsh
tkrsh / extractor.py
Last active October 24, 2021 01:36
Extract multiple zip files at once (python3 extractor.py /path/to/directory_with_zips)
"""
system imports
"""
import os
import sys
import logging
def get_zip_file_names(path):
"""
@tkrsh
tkrsh / populate.py
Last active February 9, 2021 11:57
Automate CSV -> SQLITE3 workflow with python3
"""
sqlite3 for read/write operations on the db
"""
import sqlite3
import pandas as pd
import sys
def get_cursor(file, table):
"""