A tool to convert Markdown files to PDF using Pandoc and Typst.
These three programs should be in your path;
- Python 3
- Pandoc
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace HelloPerson | |
| { | |
| using System; | |
| using System.Collections.Generic; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; | |
| namespace HelloPerson | |
| { | |
| class Program | |
| { |
| /* | |
| cd ~/IdeaProects/foo | |
| rm package.json | |
| rm -rf node_modules | |
| npm init -y | |
| npm install gulp --save-dev | |
| npm install jshint --save-dev | |
| npm install gulp-jshint --save-dev | |
| npm install gulp-watch --save-dev | |
| npm install jasmine --save-dev |
| using System; | |
| using System.Collections.Generic; | |
| using System.Drawing; // include System.Drawing.dll | |
| using System.Drawing.Drawing2D; | |
| using System.Drawing.Imaging; | |
| using System.IO; | |
| using System.Linq; | |
| using System.Text; | |
| using System.Threading.Tasks; |
| #!/bin/bash | |
| # create a RAMDISK like so `create-ram-disk 6` to create a 6Gb ramdisk. | |
| # diagnostic information is written to STDERR: the name of the newly-created disk is written to STDOUT | |
| # from https://stackoverflow.com/a/47354885/6722 | |
| set -e | |
| FILEPATH="${BASH_SOURCE[0]}" | |
| FILE=$(basename "${FILEPATH}") | |
| DIR="$(cd "$(dirname "${FILEPATH}")" && pwd)" |
| import mailbox | |
| def extract_from(mbox_file): | |
| mbox = mailbox.mbox(mbox_file) | |
| for message in mbox: | |
| print(message['from']) | |
| if __name__ == "__main__": | |
| import sys |
| #!/usr/bin/env python3 | |
| # | |
| # Script: extract_clips.py | |
| # Purpose: Extract multiple clips from a video file using faster keyframe-based | |
| # seeking, hardware-accelerated H.265 (hevc_videotoolbox), and specified audio filters. | |
| # Ensures QuickTime compatibility by tagging the video track as hvc1. | |
| import subprocess | |
| import os | |
| from typing import List, Tuple |
This tutorial will guide you through manually installing FFmpeg on Windows and using it to convert large video files (like 12GB files) into smaller, YouTube-compatible formats. You'll learn how to control the output resolution and quality to meet your specific needs.