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
(use-package ffap) | |
(defun sanitze-string (str) | |
"Returns a string which contains only a-zA-Z0-9 with single dashes | |
replacing all other characters in-between them. | |
Some parts were copied and adapted from org-hugo-slug | |
from https://github.com/kaushalmodi/ox-hugo (GPLv3)." | |
(let* (;; Remove "<FOO>..</FOO>" HTML tags if present. | |
(str (replace-regexp-in-string "<\\(?1:[a-z]+\\)[^>]*>.*</\\1>" "" str)) |
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
Here goes. | |
ls /usr/src/linux-headers-* -d | sed -e 's/.*linux-headers-//' | \ | |
sort -V | tac | sudo xargs -n1 /usr/lib/dkms/dkms_autoinstaller start | |
Run as root. |
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
(require 'org-table) | |
(require 'org-clock) | |
(defun clocktable-by-tag/shift-cell (n) | |
(let ((str "")) | |
(dotimes (i n) | |
(setq str (concat str "| "))) | |
str)) | |
(defun clocktable-by-tag/insert-tag (params) |