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?
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?
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 ') |
;; 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))) |
#! /bin/bash | |
user=manolis | |
backups=/home/manolis/backups | |
if [[ $EUID > 0 ]] | |
then echo "Please run as root" | |
exit | |
fi |