\** `(my-capture-prompt “First name” ‘my-firstname)` `(my-capture-prompt “Last name” ‘my-lastname)` :`(my-capture-insert ‘my-firstname)“(my-capture-insert ‘my-lastname)`:
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 | |
# -*- coding: utf-8 -*- | |
PROG_VERSION = "Time-stamp: <2022-03-13 22:56:40 vk>" | |
# TODO: | |
# - fix parts marked with «FIXXME» | |
# ===================================================================== ## | |
# You might not want to modify anything below this line if you do not ## |
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
#!/bin/bash | |
## This script appends to ORGFILE when syncthing conflict files are located on the host. | |
## setup: | |
## 1. pip3 install appendorgheading https://github.com/novoid/appendorgheading | |
## 2. modify ORFGILE to match an Org mode file which is part of your agenda (in order to get notified). | |
## 3. create a cronjob entry for this script to run, e.g., daily. | |
HOSTNAME=$(uname -n) |
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
#!/bin/sh | |
## My one and only backup script for the future :-) | |
## Uses rsnapshot. | |
## | |
## Please do read this blog article about that script: https://Karl-Voit.at/2020/08/29/vkbackup/ | |
## | |
## --------------------------------------------------- | |
## | |
## Initial setup: |
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
#!/bin/sh | |
## this script saves crontabs and misc things to a file | |
readonly SCRIPTNAME=$(basename $0) | |
readonly HOST=$(hostname) | |
OUTPUTDIR="${HOME}/archive/backup/" | |
[ "x$HOST" = "xHOSTX" ] && OUTPUTDIR="${HOME}/hosts/HOSTX/archive" | |
[ "x$HOST" = "xHOSTBUSINESS" ] && OUTPUTDIR="${HOME}/share/backup" |
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
#!/bin/sh | |
VERSION="Time-stamp: <2019-10-10 17:18:58 vk>" | |
## This script backups several things to a given target directory | |
## Initial tings to backup are taken from: | |
## https://www.debian.org/releases/stretch/amd64/release-notes/ch-upgrading.en.html | |
## -> "4.1.1. Back up any data or configuration information" | |
## «The main things you'll want to back up are the contents of /etc, /var/lib/dpkg, /var/lib/apt/extended_states and |
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
#!/bin/sh | |
FILES="${@}" | |
USERTAG="@KarlVoit" | |
no_files_found() | |
{ | |
echo "No files found. Please do give me some Org-mode files as parameter" >&2 | |
exit 1 | |
} |
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
# from distutils.core import setup | |
# Always prefer setuptools over distutils | |
from setuptools import setup, find_packages | |
# To use a consistent encoding | |
from codecs import open | |
from os import path | |
# workaround from https://github.com/pypa/setuptools/issues/308 to avoid "normalizing" version "2018.01.09" to "2018.1.9": | |
import pkg_resources |
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
#!/bin/sh | |
FILENAME=$(basename $0) | |
DEBUG="true" ## if true, verbose debug output is activated | |
DEBUG="false" | |
ERRORFOLDER="unknown_destinations" ## if found as a sub-directory, all non-matching files are moved there | |
SIMULATE="true" ## if true, no files are moved | |
SIMULATE="false" | |
warn_and_exit() | |
{ |
NewerOlder