Tips

Count words in all your sentences

Remember the tip to avoid writing sentences with more than 25 words ? And to definitly ban all 35+ words sentences ? Well, this is annoying to count manually, especially for an 8 page paper...

Well, I did a small CLI for that... that will be finished one day, no idea when. If you feel adventurous, you can check out the POC of BPR.

Read all the slides as PDF

There are tons of provided PPTX, how to export them in batch and merge them into a single PDF ?

  • Install the custom font Andika
  • Create a folder with all up-to-date PPTX
  • Create a destination folder (let's call it pdf)
  • Batch convert all PPTX to PDF. I don't know if Powerpoint has a CLI but LibreOffice has one ! libreoffice --convert-to pdf --outdir pdf *.pptx
  • Use any PDF merging tool such as PDF Arranger to create a single merged.pdf :)

Download all videos mentionned in slides

# For the AcWritPres course at MSE, the teacher provides slides as PPTX.
# It contains a dozen of videos to watch but their link
# is very hard to open because this is not a PDF. This little function, given a .pptx, will
# - unzip it
# - look for youtube links
# - download them with yt-dlp
function extract_pptx_videos
    set new $argv[1].zip
    if ! test -f $new
        echo Unzipping
        cp $argv[1] $new
        unzip $new &>/dev/null
    end
    for file in (grep -r -oP "https://(www.)?youtube.com/(shorts/|watch)[^\"]*" --no-filename)
        color blue $file
        yt-dlp $file
    end
end

Video editing

I highly recommend Kdenlive if you don't know any other tool. This is the best opensource video editing software out there IMO.