Skip to content

Instantly share code, notes, and snippets.

View selimgr's full-sized avatar
👋

Selim selimgr

👋
  • Lyon, France
  • 16:07 (UTC +02:00)
View GitHub Profile
@kernoeb
kernoeb / docsify-markdown2pdf.sh
Created November 16, 2020 15:23
Build a PDF file from Docsify structure (markdown)
# Install deps
# sudo apt-get install -y texlive-latex-base texlive-fonts-recommended texlive-fonts-extra texlive-latex-extra
# sudo apt-get install -y texlive-xetex
# sudo apt install -y ghostscript
# wget https://github.com/jgm/pandoc/releases/download/2.9.2.1/pandoc-2.9.2.1-1-amd64.deb
# sudo apt install -y ./pandoc-2.9.2.1-1-amd64.deb
# rm ./pandoc-2.9.2.1-1-amd64.deb
#cp fonts/*.ttf ~/.fonts # I use Google Fonts (Roboto -> please see line 8)
cd book # directory where markdown files can be found
@kernoeb
kernoeb / pdf2odp.py
Last active August 19, 2020 12:25
pdf2odp : convert pdf files to LibreOffice Impress odp documents (pictures)
# Author: kernoeb
# pdf2odp.py
###########################
# Please install : #
# pip3 install odfpy #
# pip3 install pdf2image #
###########################
import os
import shutil