- Open your terminal
- Install brew if it is not installed: https://brew.sh/
- Install jq by running the following command
brew install jq
import PyPDF2 | |
input_pdf = PyPDF2.PdfFileReader(open("document.pdf", "rb")) | |
num_of_pages_per_file = 10 | |
doc_counter = 1 | |
counter = 0 | |
output = PyPDF2.PdfFileWriter() | |
for split_range in [range(input_pdf.numPages)[x:x + num_of_pages_per_file] for x in | |
range(0, input_pdf.numPages, num_of_pages_per_file)]: |
brew install jq
This lightweight shell script demonstrates running two commands in parallel while combining their outputs into a single stdout. The script also prepends a static string to differentiate the output of each command. This solution requires zero external dependencies, making it efficient and easy to use.
run.sh
#!/bin/bash
# replace command1 and command2 with command you need to execute
Script to automatically download a youtuber's live stream as soon as it becomes live. It also respects youtube's free API limitations.