Update 2024-10-20 07:57 OpenBSD/amd64-t14

This commit is contained in:
c0dev0id 2024-10-20 07:57:21 +02:00
parent 2dfb4eadd2
commit 634ce7bc79
5 changed files with 35 additions and 7 deletions

View File

@ -4,16 +4,15 @@ f=$1
if [ -z "$f" ];
then
f="$(find $PWD $HOME $HOME/Downloads -maxdepth 1 -type f \
| sort -u \
| fzf -e -x -i)"
echo "no argument given"
exit 2
fi
###################################################
# URLS
###################################################
if print "$f" | egrep -qi '^shell:|^ushell:|^cvs:';
if print "$f" | egrep -qi '^shell:|^ushell:|^cvs:|^home:';
then
_server=${f%%:*}
_dir=${f#*:}

View File

@ -6,6 +6,6 @@ PN="${N[0]}${N[1]:+v${N[1]}}${N[2]:+p${N[2]}}"
PD=$(pwd | cut -d"/" -f4,5)
cd /usr/ports
cvs -d $CVSROOT diff -uNp "${PD}" > ~sdk/diffs/${PN}.diff
echo ~/diffs/${PN}.diff
cvs -d $CVSROOT diff -uNp "${PD}" > ~sdk/Diffs/${PN}.diff
echo ~/Diffs/${PN}.diff

View File

@ -1,4 +1,6 @@
#!/bin/sh
echo "Updating abook addressbook"
cat /home/sdk/.isync/contacts/*.vcf \
| abook --convert --informat vcard --outformat abook \
> /home/sdk/.abook/addressbook

26
.bin/webmime Executable file
View File

@ -0,0 +1,26 @@
#!/bin/sh
if [ -z "$1" ]
then
>&2 echo "webmime: no argument given"
exit 2
fi
URL="$(echo "$1" | grep -i ^http)"
if [ -z "$URL" ]
then
>&2 echo "webmime: argument is not a http url ($1)"
exit 1
fi
>&2 echo "webmime: reading content-type from: $1"
R="$(curl --connect-timeout 5 -sI "$URL" | grep -i "^content-type:" | tr -d ' ' | awk -F'[:;]' '{ print $2 }')"
if [ -z "$R" ]
then
>&2 echo "webmime: no content-type header found ($1)"
exit 1
fi
echo "$R"

View File

@ -58,7 +58,8 @@ Host dalek
User sdk
Host tweety
Hostname tweety.home.codevoid.de
#Hostname tweety.home.codevoid.de
Hostname 10.20.30.20
User sdk
Host cvs