From ffcfa745499c3813d53620c0fabc026020983922 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Wed, 30 Aug 2023 14:05:14 +0200 Subject: letsencrypt hook --- etc/letsencrypt/hook.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100755 etc/letsencrypt/hook.sh diff --git a/etc/letsencrypt/hook.sh b/etc/letsencrypt/hook.sh new file mode 100755 index 0000000..5355a71 --- /dev/null +++ b/etc/letsencrypt/hook.sh @@ -0,0 +1,13 @@ +#!/bin/bash +CREATE_DOMAIN="certbot.rfc2136.sijanec.eu." +# update delete $CREATE_DOMAIN TXT +echo " +server 127.0.0.1 +update add $CREATE_DOMAIN 1 TXT $CERTBOT_VALIDATION +send +" | tee /dev/stderr | nsupdate -k /etc/bind/keyfile-rfc2136.conf +if [ $CERTBOT_REMAINING_CHALLENGES -eq 0 ] +then + rndc reload + sleep 30 +fi -- cgit v1.2.3 From 711df1ffbc54e03a8527b1009c65f7cfb881aaa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Thu, 31 Aug 2023 00:51:08 +0200 Subject: cgitrc-hiliting --- etc/cgitrc | 139 +++++++++++++++++++++++++++++++++++++++++++++ var/lib/git/sijanec/config | 5 +- 2 files changed, 142 insertions(+), 2 deletions(-) create mode 100644 etc/cgitrc mode change 100644 => 100755 var/lib/git/sijanec/config diff --git a/etc/cgitrc b/etc/cgitrc new file mode 100644 index 0000000..b68c53a --- /dev/null +++ b/etc/cgitrc @@ -0,0 +1,139 @@ +# +# cgit config +# see cgitrc(5) for details +virtual-root=/ +css=/cgit-css/cgit.css +logo=/cgit-css/cgit.png +about-filter=exec:/usr/lib/cgit/filters/about-formatting.sh +# auth-filter=lua:/usr/lib/cgit/filters/file-authentication.lua +branch-sort=age +clone-url=http://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL https://$HTTP_HOST$SCRIPT_NAME/$CGIT_REPO_URL +clone-url=http://$HTTP_HOST/$CGIT_REPO_URL https://$HTTP_HOST/$CGIT_REPO_URL +commit-filter=exec:/usr/lib/cgit/filters/commit-links.sh +# embedded=1 +enable-blame=1 +enable-commit-graph=1 +enable-filter-overrides=1 +enable-follow-links=1 +enable-git-config=1 +enable-html-serving=1 +enable-index-links=1 +enable-log-filecount=1 +enable-log-linecount=1 +enable-remote-branches=1 +enable-subject-links=1 +# head-include=/tmp/b +# header=/tmp/a +local-time=1 +max-atom-items=1000 +max-commit-count=5000 +max-message-length=800 +max-repo-count=5000 +max-repodesc-length=800 +max-stats=year +mimetype-file=/etc/mime.types +# noheader=1 +readme=README +readme=README.md +readme=README.html +readme=README.man +readme=README.rst +readme=README.roff +readme=README.groff +readme=README.txt +readme=README.MD +readme=README.HTML +readme=README.MAN +readme=README.RST +readme=README.ROFF +readme=README.GROFF +readme=README.TXT +readme=readme +readme=readme.md +readme=readme.html +readme=readme.man +readme=readme.rst +readme=readme.roff +readme=readme.groff +readme=readme.txt +readme=readme.MD +readme=readme.HTML +readme=readme.MAN +readme=readme.RST +readme=readme.ROFF +readme=readme.GROFF +readme=readme.TXT +readme=Readme +readme=Readme.md +readme=Readme.html +readme=Readme.man +readme=Readme.rst +readme=Readme.roff +readme=Readme.groff +readme=Readme.txt +readme=Readme.MD +readme=Readme.HTML +readme=Readme.MAN +readme=Readme.RST +readme=Readme.ROFF +readme=Readme.GROFF +readme=Readme.TXT +readme=BERIME +readme=BERIME.md +readme=BERIME.html +readme=BERIME.man +readme=BERIME.rst +readme=BERIME.roff +readme=BERIME.groff +readme=BERIME.txt +readme=BERIME.MD +readme=BERIME.HTML +readme=BERIME.MAN +readme=BERIME.RST +readme=BERIME.ROFF +readme=BERIME.GROFF +readme=BERIME.TXT +readme=berime +readme=berime.md +readme=berime.html +readme=berime.man +readme=berime.rst +readme=berime.roff +readme=berime.groff +readme=berime.txt +readme=berime.MD +readme=berime.HTML +readme=berime.MAN +readme=berime.RST +readme=berime.ROFF +readme=berime.GROFF +readme=berime.TXT +readme=Berime +readme=Berime.md +readme=Berime.html +readme=Berime.man +readme=Berime.rst +readme=Berime.roff +readme=Berime.groff +readme=Berime.txt +readme=Berime.MD +readme=Berime.HTML +readme=Berime.MAN +readme=Berime.RST +readme=Berime.ROFF +readme=Berime.GROFF +readme=Berime.TXT +# remove-suffix=.git +renamelimit=100 +repository-sort=age +root-desc=spletni dostop do sistema za nadzor inačic Antona Luke Šijanca +root-readme=/var/lib/git/indextext.html +root-title=nadzor inačic :: Anton Luka Šijanec +# side-by-side-diffs=1 # to nastavi default vrednost +snapshots=all +source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh +sumary-branches=100 +summary-log=100 +summary-tags=100 + +scan-path=/var/lib/git diff --git a/var/lib/git/sijanec/config b/var/lib/git/sijanec/config old mode 100644 new mode 100755 index c8f67c6..047cba5 --- a/var/lib/git/sijanec/config +++ b/var/lib/git/sijanec/config @@ -2,9 +2,10 @@ repositoryformatversion = 0 filemode = true bare = true + sharedRepository = true [gitweb] - category = etc - owner = Anton Luka Šijanec + category = etc + owner = Anton Luka Šijanec [receive] denyNonFastForwards = true denyDeletes = true -- cgit v1.2.3 From e6695821cca90fd30fa0b1d5bb91f4fa7bfdfc29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Anton=20Luka=20=C5=A0ijanec?= Date: Thu, 31 Aug 2023 00:52:34 +0200 Subject: c --- etc/portage/make.conf | 1 + etc/portage/package.accept_keywords/conf | 1 + root/.bash_aliases | 9 +++++++++ 3 files changed, 11 insertions(+) diff --git a/etc/portage/make.conf b/etc/portage/make.conf index 624a3da..49e9516 100644 --- a/etc/portage/make.conf +++ b/etc/portage/make.conf @@ -62,6 +62,7 @@ USE="$USE vhost-net qemu parted" # za qemu / libvirt USE="$USE qml positioning quick" # za freecad USE="$USE gstreamer" # za dino USE="$USE jack-sdk sound-server elogind" # za pipewire +USE="$USE v4l" # za motion CALLIGRA_FEATURES="stage words sheets" PALEMOON_ENABLE_UNSUPPORTED_COMPILERS=1 # uradno gcc 11 ni podprt diff --git a/etc/portage/package.accept_keywords/conf b/etc/portage/package.accept_keywords/conf index 9e14815..0944e06 100644 --- a/etc/portage/package.accept_keywords/conf +++ b/etc/portage/package.accept_keywords/conf @@ -52,3 +52,4 @@ app-misc/qlcplus ** net-analyzer/masscan ~* dev-util/android-studio ~* net-vpn/iodine ~* +app-emulation/libguestfs ~* diff --git a/root/.bash_aliases b/root/.bash_aliases index 9d1b336..07114ac 100644 --- a/root/.bash_aliases +++ b/root/.bash_aliases @@ -1,3 +1,12 @@ +function fancyindex_files () { + for i in `curl -k $1 | grep link | grep -v '-' | cut -d\" -f 4 ` + do + echo $2$i + done +} +function fancyindex_play () { + mpv `fancyindex_files $1 $1/` +} export CT_ALLOW_BUILD_AS_ROOT_SURE=1 function register () { n=`curl -s https://www.register.si | grep nonce | head -n 1 | cut -d\" -f8` -- cgit v1.2.3