Some stuff I've had to figure out that wasn't documented...
If you get this error:
/tmp/nix-build-ati-drivers-15.7-4.4.18.drv-0/common/lib/modules/fglrx/build_mod/2.6.x/firegl_public.c:194:22: fatal error: asm/i387.h: No such file or directory
| #! /bin/bash | |
| user=manolis | |
| backups=/home/manolis/backups | |
| if [[ $EUID > 0 ]] | |
| then echo "Please run as root" | |
| exit | |
| fi |
| ;; DEPRECATED - see https://pitch-io.slack.com/archives/CBKNRBRHA/p1630054796006400 | |
| (defvar bulk-saved-attachments-dir (expand-file-name "~/Documents/mu4e")) | |
| (defun cleanse-subject (sub) | |
| (replace-regexp-in-string | |
| "[^A-Z0-9]+" | |
| "-" | |
| (downcase sub))) |
| import argparse | |
| # this first bit is to enable multiline help text. apparently this is a known problem with argparse. | |
| # Solution jacked from http://stackoverflow.com/questions/3853722/python-argparse-how-to-insert-newline-in-the-help-text | |
| import textwrap as _textwrap | |
| class MultilineFormatter(argparse.HelpFormatter): | |
| def _fill_text(self, text, width, indent): | |
| text = self._whitespace_matcher.sub(' ', text).strip() | |
| paragraphs = text.split('|n ') |
This is pretty out of date now... you may want to look elsewhere
Newer guides than mine (mine is a bit dated and has a lot of rough edges):
Have you looked at these?