From 9a7b201a42394581cdc8ba2528f8c417be4ae683 Mon Sep 17 00:00:00 2001 From: Chris Koeritz Date: Sun, 22 May 2022 15:57:13 -0400 Subject: [PATCH] a few new crontabs and better gitconfig file --- .../configuration/cron/add_swap_mount.crontab | 9 +++++++++ .../configuration/cron/exim_key_updater.crontab | 10 ++++++++++ .../cron/save_serene_root_crons.crontab | 9 +++++++++ infobase/configuration/git/dot.gitconfig | 16 ++++++++++++++++ .../configuration/git/git_config_aliases.txt | 9 --------- 5 files changed, 44 insertions(+), 9 deletions(-) create mode 100644 infobase/configuration/cron/add_swap_mount.crontab create mode 100644 infobase/configuration/cron/exim_key_updater.crontab create mode 100644 infobase/configuration/cron/save_serene_root_crons.crontab create mode 100644 infobase/configuration/git/dot.gitconfig delete mode 100644 infobase/configuration/git/git_config_aliases.txt diff --git a/infobase/configuration/cron/add_swap_mount.crontab b/infobase/configuration/cron/add_swap_mount.crontab new file mode 100644 index 00000000..378ad370 --- /dev/null +++ b/infobase/configuration/cron/add_swap_mount.crontab @@ -0,0 +1,9 @@ + +############## + +#[hamstertronic_swap_enable] +# turns on some swap space to allow the machine to temporarily go over memory limits. +@reboot bash $FEISTY_MEOW_APEX/scripts/system/add_swap_mount.sh + +############## + diff --git a/infobase/configuration/cron/exim_key_updater.crontab b/infobase/configuration/cron/exim_key_updater.crontab new file mode 100644 index 00000000..87476cb1 --- /dev/null +++ b/infobase/configuration/cron/exim_key_updater.crontab @@ -0,0 +1,10 @@ + +############## + +#[service_key_updater] +# updates the exim4 certificate and key file once a week, which is faster +# than needed to stay up to date with the automated certificate renewals. +34 19 * * 1 (cd /etc/exim4 ; bash key_copier.sh; cd /etc/courier ; bash key_maker.sh ) &>> /tmp/${CRONUSER}-cron-service_key_updater.txt + +############## + diff --git a/infobase/configuration/cron/save_serene_root_crons.crontab b/infobase/configuration/cron/save_serene_root_crons.crontab new file mode 100644 index 00000000..6f613ee0 --- /dev/null +++ b/infobase/configuration/cron/save_serene_root_crons.crontab @@ -0,0 +1,9 @@ + +############## + +#[serene_root_crontab] +# update the stored crontab for the root user, using a cron job! +14 */8 * * * (crontab -l >/home/www-data/web/root.crontab ; chown www-data:www-data /home/www-data/web/root.crontab) + +############## + diff --git a/infobase/configuration/git/dot.gitconfig b/infobase/configuration/git/dot.gitconfig new file mode 100644 index 00000000..41aefa80 --- /dev/null +++ b/infobase/configuration/git/dot.gitconfig @@ -0,0 +1,16 @@ + + +[user] + email = me@mymail.com + name = Programmatic Coder + +[pack] + windowMemory = 100m + SizeLimit = 100m + threads = 1 + +[alias] + # show a beautiful view of the history of this git repository. + hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short + + diff --git a/infobase/configuration/git/git_config_aliases.txt b/infobase/configuration/git/git_config_aliases.txt deleted file mode 100644 index 92107f3e..00000000 --- a/infobase/configuration/git/git_config_aliases.txt +++ /dev/null @@ -1,9 +0,0 @@ - - -# this command should go into ~/.gitconfig to enable the hist alias: - -[alias] - hist = log --pretty=format:'%h %ad | %s%d [%an]' --graph --date=short - - -### (add more awesome aliases here as we find them) -- 2.34.1