From 3e58a3659910648cb06e43b33cc0e9dd91d58ca9 Mon Sep 17 00:00:00 2001 From: c0dev0id Date: Tue, 24 Dec 2024 08:58:49 +0100 Subject: [PATCH] Update 2024-12-24 08:58 OpenBSD/amd64-t14 --- .bin/update-luakit-adlist | 10 ++++++++++ .bin/update-pim-all | 39 +++++++++++++++++++++++++++++++++++++++ .bin/upload | 2 +- .config/luakit/rc.lua | 2 +- 4 files changed, 51 insertions(+), 2 deletions(-) create mode 100755 .bin/update-luakit-adlist create mode 100755 .bin/update-pim-all diff --git a/.bin/update-luakit-adlist b/.bin/update-luakit-adlist new file mode 100755 index 0000000..b951071 --- /dev/null +++ b/.bin/update-luakit-adlist @@ -0,0 +1,10 @@ +#!/bin/sh -xe + +for list in easylist/easylist \ + easylist/easyprivacy \ + easylist/fanboy-social \ + easylistgermany/easylistgermany +do + ftp -o $HOME/.local/share/luakit/adblock/$(basename $list).txt \ + https://easylist.to/${list}.txt +done diff --git a/.bin/update-pim-all b/.bin/update-pim-all new file mode 100755 index 0000000..f782978 --- /dev/null +++ b/.bin/update-pim-all @@ -0,0 +1,39 @@ +#/bin/sh -xe +. ~/.bin/_config +needs vdirsyncer-- mu-- isync-- git-- p5-iCal-Parser-- remind-- + +# snapshot +cd /home/sdk/.reminders +git add * +git commit -m "Update $(date +"%Y-%m-%d %H:%M:%S")" || true + +# copy uugrn calendard to dalek +scp -q vorstand@vorstand.uugrn.org:private/Kalender/uugrn.rem \ + sdk@home.codevoid.de:.reminders/uugrn.rem + +# copy all calendars from dalek to local +scp -q sdk@home.codevoid.de:.reminders/\*.rem \ + /home/sdk/.reminders/ + +# download vcal/vcard from icloud / radical +vdirsyncer sync + +# create import.rem from ical events (XXX fix this mess) +find ~/.isync -name "*.ics" -exec cat {} + \ + | ical2rem --no-todos \ + | fgrep -v "REM MSG" \ + | sed 's,\\n, ,g' \ + | tr -d '\' \ + | sed 's/ / /g' \ + > /home/sdk/.reminders/import.rem + +# create abook addressbook +cat /home/sdk/.isync/contacts/*.vcf \ + | abook --convert --informat vcard --outformat abook \ + > /home/sdk/.abook/addressbook + +# sync email to offline +mbsync -a + +# index email +mu index diff --git a/.bin/upload b/.bin/upload index 97d1d8a..e38693e 100755 --- a/.bin/upload +++ b/.bin/upload @@ -106,7 +106,7 @@ then exit 0 fi -# HANDLE CASE: "list last N files" +# HANDLE CASE: "list last N remote files" if [ -n "$_last" ] then remote_list \ diff --git a/.config/luakit/rc.lua b/.config/luakit/rc.lua index 6f6d5fe..1448ebe 100644 --- a/.config/luakit/rc.lua +++ b/.config/luakit/rc.lua @@ -60,7 +60,7 @@ local settings_chrome = require "settings_chrome" settings.window.home_page = "luakit://newtab" -- settings.window.scroll_step = 20 settings.window.zoom_step = 0.2 -settings.webview.zoom_level = 100 +settings.webview.zoom_level = 150 settings.window.close_with_last_tab = true -- search engines