Update 2023-02-17 08:54 OpenBSD/amd64

This commit is contained in:
c0dev0id 2023-02-17 08:54:10 +01:00
parent 10a879facd
commit 5b2f60e6e5
5 changed files with 35 additions and 72 deletions

49
.kshrc
View File

@ -129,23 +129,42 @@ alias spectrwmrc="vim ~/.config/spectrwm/spectrwm.conf"
# remind
alias rem="clear; remind -c+cu3 -wt ~/.reminders"
alias remy="clear; remind -cu12 -wt ~/.reminders | less"
rems() {
echo "Reminders for $(date +%Y/%m/%d) (today)"
remind ~/.reminders
echo
echo "Next 10 Reminders:"
remind -n .reminders | sort -n | head -10
rem-uugrn() {
vim sftp://vorstand@vorstand.uugrn.org/private/Kalender/uugrn.rem \
&& ssh -q sdk@vorstand.uugrn.org sh ~/.bin/make_calendar.sh \
&& echo "Calendar updated." \
&& scp -q vorstand@vorstand.uugrn.org:private/Kalender/uugrn.rem \
/home/sdk/.reminders/uugrn.rem \
&& echo "Calendar copied."
}
rem-personal() {
vim sftp://home.codevoid.de/home/sdk/.reminders/personal.rem \
&& echo "Calendar updated." \
&& scp -q sdk@home.codevoid.de:.reminders/personal.rem \
/home/sdk/.reminders/personal.rem \
&& echo "Calendar copied."
}
rem-sync() {(
set -xe
scp -q vorstand@vorstand.uugrn.org:private/Kalender/uugrn.rem sdk@home.codevoid.de:.reminders/uugrn.rem
scp -q sdk@home.codevoid.de:.reminders/\*.rem /home/sdk/.reminders/
)}
rem-uugrn() {(
set -xe
vim sftp://vorstand@vorstand.uugrn.org/private/Kalender/uugrn.rem
ssh -q sdk@vorstand.uugrn.org sh ~/.bin/make_calendar.sh
rem-sync
)}
rem-personal() {(
set -xe
vim sftp://sdk@home.codevoid.de/.reminders/personal.rem
rem-sync
)}
rem-birthdays() {(
set -xe
vim sftp://home.codevoid.de/.reminders/birthdays.rem
rem-sync
)}
# mastodon
alias toot-sh="toot-wrapper sh@bsd.network"
alias toot-uug="toot-wrapper uugrn@chaos.social"
@ -356,7 +375,7 @@ cvs-sync-sunny() {
# PORTS
portclean() {(
cd /usr/ports
doas rm -rf pobj/* plist logs packages bulk update
doas rm -rf pobj/* plist logs packages bulk update distfiles/*
doas make fix-permissions > /dev/null
)}
pmark() { pwd > /var/cache/pmark; }

View File

@ -2,7 +2,7 @@
-- Ion mod_sp configuration file
--
mod_sp.set_size(1400, 800);
-- mod_sp.set_size(1400, 800);
defbindings("WScreen", {
bdoc("Toggle scratchpad."),

View File

@ -1,8 +0,0 @@
INCLUDE /home/sdk/.reminders/personal/
INCLUDE /home/sdk/.reminders/uugrn/
BANNER %
FSET sortbanner(x) iif(x == today(), \
"***** THINGS TO DO TODAY *****", \
"----- Things to do %b -----")

View File

@ -1,29 +0,0 @@
#!/bin/sh
git_pull() {(
cd "$1"
git pull
)}
git_push() {(
cd "$1"
git add *
git commit -m "Calendar Update $(date)"
git push
)}
git_pull personal
git_pull uugrn
F="$(find . \
-mindepth 1 \
-not -path "*/.git/*" \
-not -name "100-*" \
-type f \
-name "*.rem" \
| fzf)"
[ ! -z "$F" ] && vim "$F"
git_push personal
git_push uugrn

View File

@ -1,19 +0,0 @@
#/bin/sh
cd /home/sdk/.reminders
( cd personal && git pull )
( cd uugrn && git pull )
export COLUMNS=80
remind -n -s+2 /home/sdk/.reminders | sort -n \
| cut -d" " -f1 -f6- \
| sort \
| sed 's|\(....\)/\(..\)/\(..\) \([^ ]*\) \([^\|]*\).*|\3.\2.\1 \| \4 \| \5|g' \
| sed 's|\(....\)/\(..\)/\(..\) \([^\|]*\).*|\3.\2.\1 \| \| \4|g' \
| column -t -s "|" \
| mail \
-s "Todays Reminders (+7 days)" \
-r "Remind <sh@dalek.home.codevoid.de>" \
sh@codevoid.de