This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Your vim needs to be compiled with clientserver support. You can check: | |
vim --version|grep +clientserver | |
Set up an alias so regular vim starts with a server (add it to your shell aliases): | |
alias vim='vim --servername "VIM"' | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LMAKE = latexmk | |
LMAKE_OPTIONS = -xelatex -pdfxe | |
LMAKE_PREVIEW = -xelatex -interaction=nonstopmode -pdfxe -pvc | |
ORG_FILES = $(shell find src/ -type f -name '*.org') | |
IMAGES = src/images/network.png src/images/backup.png | |
all: html system.pdf | |
.PHONY: clean html tex preview |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# usage ./kobo_categorize.py /path/to/kobo/mountpoint | |
# A backup of the kobo database is placed in your home directory before modification | |
# Script to add ebooks to the kobo reader sqlite db categories based on their | |
# directory structure | |
# Example: | |
# animals/giraffes/The Tallest Mammal.epub | |
# would be categorized in both animals and giraffes category | |
# animals/Fauna of the Nile.epub |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# Generates epub given a .devhelp2 file. | |
# Run this to generate epub for all installed devhelp files on a Debian system: | |
# for i in $(locate .devhelp2|grep ^\/usr\/share); do ./devhelp2epub.py $i; done | |
import argparse, os, hashlib, locale, collections, sys, zipfile, tempfile, shutil | |
import xml.etree.ElementTree as ET | |
from ebooklib import epub | |
import ebooklib | |
ns = {'devhelp': 'http://www.devhelp.net/book'} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
\usepackage{fancyhdr} % Extensive control of page headers and footers in LaTeX2e | |
\usepackage{enumitem} % Control layout of itemize, enumerate, description | |
\usepackage{multicol} % Intermix single and multiple columns | |
\usepackage{multirow} % Create tabular cells spanning multiple rows | |
\usepackage{mathtools} % Mathematical tools to use with amsmath | |
\usepackage{amsthm} % Typesetting theorems (AMS style) | |
\usepackage{amssymb} % | |
\usepackage{amsfonts} % TeX fonts from the American Mathematical Society | |
\usepackage{graphicx} % Enhanced support for graphics |