Skip to content

Instantly share code, notes, and snippets.

View amzon-ex's full-sized avatar
💭
Engaged

Ayon Tarafdar amzon-ex

💭
Engaged
  • Kolkata
View GitHub Profile
@amzon-ex
amzon-ex / docsshifter.py
Last active August 27, 2022 17:30
A quick script to move Google Docs files from the root of your Drive to a dedicated folder.
from pydrive.auth import GoogleAuth
from pydrive.drive import GoogleDrive
# Authentication procedure
gauth = GoogleAuth()
# Try to load saved client credentials
gauth.LoadCredentialsFile("mycreds.txt")
if gauth.credentials is None:
# Authenticate if they're not there
@amzon-ex
amzon-ex / vidchapper.py
Last active April 8, 2022 15:05
Create chapters in a video using ffmpeg+python
import sys
import subprocess
import re
argslen = len(sys.argv)
vidfile = sys.argv[1]
chapfile = sys.argv[2]
mdfile = 'mdfile.txt'