Skip to content

Instantly share code, notes, and snippets.

View userdocs's full-sized avatar

Userdocs userdocs

View GitHub Profile
@userdocs
userdocs / beautiful-elegant-helpful-solution.txt
Created March 17, 2024 12:49
beautiful, elegant and very helpful solution
Let wel: Die Windows-binêre lêers in libusb-1.0.27.7z word verskaf soos dit is en sal dalk nie vir jou gereedskapketting werk nie. In daardie geval, bou asseblief libusb vanaf die bron deur u eie gereedskapsketting te gebruik.
Let wel:
*.tar.bz is ons amptelike vrystelling lêers, dit is behoorlike vrystelling tarballs insluitend konfigurasie.
*.tar.gz en .zip is iets wat GitHub genereer, ongelukkig het ons nie 'n manier gevind om hulle te deaktiveer nie. Hulle is net 'n git-kiekie, sonder bv. instel.
*) https://github.com/orgs/community/discussions/6003
Shënim: Binarët e Windows në libusb-1.0.27.7z ofrohen siç janë dhe mund të mos funksionojnë për zinxhirin tuaj të veglave. Në këtë rast, ju lutemi ndërtoni libusb nga burimi duke përdorur zinxhirin tuaj të veglave.
@userdocs
userdocs / pandoc.md
Last active March 11, 2023 14:48
pandoc - easy install - linux - github actions and workflows

Pandoc is a simple multi binary setup.

🟦 It does not really require a complicated action or a docker container to quickly bootstrap this on linux or when using it in a github action.

We will bootstrap these binaries with two commands.

pandoc
pandoc-lua
pandoc-server
@userdocs
userdocs / install.sh
Created May 30, 2021 18:37
build and install qbittorrent or qbittorrent-nox using cmake on Alpine Linux
install_dir="/usr/local"
boost_version="1_76_0"
#
apk add autoconf automake build-base cmake curl git libtool linux-headers perl pkgconf python3 python3-dev re2c tar
#
apk add icu-dev libexecinfo-dev openssl-dev qt5-qtbase-dev qt5-qttools-dev qt5-qtsvg-dev zlib-dev
#
git clone --shallow-submodules --recurse-submodules https://github.com/ninja-build/ninja.git ~/ninja && cd ~/ninja
git checkout "$(git tag -l --sort=-v:refname "v*" | head -n 1)" # always checkout the latest release
cmake -Wno-dev -Wno-deprecated -B build \
@userdocs
userdocs / authelia_nginx.md
Last active April 24, 2024 13:20
A simplified Authelia nginx reverse proxy configuration

Nginx

nginx is a reverse proxy supported by Authelia.

Configuration

We will be working with these files.

/etc/nginx/authelia.conf
@userdocs
userdocs / znc.sh
Created April 11, 2021 23:07
an example znc install script
#! /usr/bin/env bash
#
#shellcheck source=sources/functions/utils
. /etc/swizzin/sources/functions/utils
#shellcheck source=sources/functions/os
. /etc/swizzin/sources/functions/os
#shellcheck source=sources/functions/app_port
. /etc/swizzin/sources/functions/app_port
#shellcheck source=sources/functions/ip
. /etc/swizzin/sources/functions/ip
@userdocs
userdocs / bashrc_autoupdate.sh
Last active August 6, 2021 23:39
authelia filebrowser autoupdate via bashrc
authelia_local_version="$($HOME/bin/authelia --version | awk '{ print $3 }' | sed -rn 's|v(.*)|\1|p')"
authelia_remote_version="$(git ls-remote -t --sort=-v:refname --refs https://github.com/authelia/authelia.git | awk '{sub("refs/tags/v", "");sub("(.*)(rc|alpha|beta)(.*)", ""); print $2 }' | awk '!/^$/' | head -n 1)"
#
if [[ "$authelia_local_version" != "$authelia_remote_version" ]]; then
wget -qO "$HOME/authelia.tar.gz" "https://github.com/authelia/authelia/releases/download/v${authelia_remote_version}/authelia-linux-amd64.tar.gz"
tar -xf "$HOME/authelia.tar.gz" -C "$HOME/bin/" authelia-linux-amd64
mv -f "$HOME/bin/authelia-linux-amd64" "$HOME/bin/authelia"
[[ -f "$HOME/authelia.tar.gz" ]] && rm -f "$HOME/authelia.tar.gz"
systemctl --user restart authelia.service
echo "Authelia updated and restarted"
@userdocs
userdocs / libtorrent.sh
Last active December 31, 2023 13:29
A simple example of how to build libtorrent and the python binding using the boost source files.
#! /usr/bin/env bash
#
# shellcheck disable=SC1091,SC2034 # sourced files
#
set -a
#
export DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
#
cr="\e[31m" # [c]olor[r]ed
cg="\e[32m" # [c]olor[g]reen
@userdocs
userdocs / binding.sh
Created January 17, 2021 12:18
python binding
#! /usr/bin/env bash
#
# shellcheck disable=SC1091,SC2034 # sourced files
#
set -a
#
export DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
#
cr="\e[31m" # [c]olor[r]ed
cg="\e[32m" # [c]olor[g]reen
@userdocs
userdocs / qbittorrent.sh
Last active December 31, 2023 13:30
A modern and complete qbitorrent build script.
#! /usr/bin/env bash
#
# shellcheck disable=SC1091,SC2034 # sourced files
#
set -a
#
export DEBIAN_FRONTEND="noninteractive" TZ="Europe/London"
#
cr="\e[31m" # [c]olor[r]ed
cg="\e[32m" # [c]olor[g]reen
@userdocs
userdocs / install.sh
Last active November 2, 2020 19:08
Docker rootless installation
## https://docs.docker.com/engine/security/rootless
## Debian Specific
echo "kernel.unprivileged_userns_clone=1" > /etc/sysctl.d/10-docker.conf \
&& sysctl --system
echo "options overlay permit_mounts_in_userns=1" > /etc/modprobe.d/10-docker.conf \
&& modprobe overlay permit_mounts_in_userns=1