Skip to content

Instantly share code, notes, and snippets.

View hassaanhameed786's full-sized avatar
🎯
Lazy programmer is a good programmer

frozenheart3k hassaanhameed786

🎯
Lazy programmer is a good programmer
View GitHub Profile
@jvillemare
jvillemare / convert.py
Created May 17, 2021 12:50
Basic Python Script for running Tesseract OCR on PDFs
import os # for magick and tesseract commands
import time # for epoch time
import calendar # for epoch time
from PyPDF2 import PdfFileMerger
dir_files = [f for f in os.listdir(".") if os.path.isfile(os.path.join(".", f))]
epoch_time = int(calendar.timegm(time.gmtime()))
print(dir_files)
for file in dir_files: # look at every file in the current directory
@cferdinandi
cferdinandi / terminal-cheat-sheet.txt
Last active June 8, 2024 15:35
Terminal Cheat Sheet
# Terminal Cheat Sheet
pwd # print working directory
ls # list files in directory
cd # change directory
~ # home directory
.. # up one directory
- # previous working directory
help # get help
-h # get help