Mooc fait par l'université de Genève sur la gestion du TDAH
For those who don't understand reverse proxies, this is a good explanation
This seems like a good idea! I'm curious to see the challenges at scale
un moteur de recherche distribué self hosted
On the latest fedora release which brings gnome 48, appindicator.js is kind of broken using the previous extensions pattern. This one fixes it. Found on https://bbs.archlinux.org/viewtopic.php?id=304357 where people are still debugging stuff for the community ahead of mainstream releases
quand le FMI discrédite la technique économique plébiscitée par les politiques :-/
un site super qui permet de faire de l'equalizing spécifique à chauqe hardware
_nft()
{
local cur prev
COMPREPLY=()
cur="${COMP_WORDS[COMP_CWORD]}"
prev="${COMP_WORDS[COMP_CWORD-1]}"
local families="ip ip6 arp bridge inet netdev"
local sets=$(nft list sets | grep -i "set" | awk '{print $2 }' | tr -d ' ')
if [ $COMP_CWORD -eq 1 ]; then
COMPREPLY=( $(compgen -W "add flush list" -- $cur) )
elif [ $COMP_CWORD -eq 2 ]; then
case "$prev" in
"add")
command="${prev}"
COMPREPLY=( $(compgen -W "element map table set" -- $cur) )
;;
"list")
COMPREPLY=( $(compgen -W "chains ruleset set sets table tables" -- $cur) )
;;
"flush")
COMPREPLY=( $(compgen -W "table" -- $cur) )
;;
*)
;;
esac
elif [ $COMP_CWORD -eq 3 ]; then
case "$prev" in
"table")
COMPREPLY=( $(compgen -W "${families}" -- $cur) )
;;
"set"|"element"|"map")
local tables=$(nft list tables | awk '{print $3 }' | tr -d ' ')
COMPREPLY=( $(compgen -W "${tables}" -- $cur) )
;;
*)
;;
esac
elif [ $COMP_CWORD -eq 4 ]; then
local tables=$(nft list tables | awk '{print $3 }' | tr -d ' ')
if [[ "$families" =~ "$prev" ]]; then
local tables=$(nft list tables "${prev}" | awk '{print $3 }' | tr -d ' ')
COMPREPLY=( $(compgen -W "${tables}" -- $cur) )
fi
if [ "${COMP_WORDS[1]}" != "add" ] && [[ "$tables" =~ "$prev" ]]; then
COMPREPLY=( $(compgen -W "${sets}" -- $cur) )
fi
if [ "${COMP_WORDS[1]}" == "add" ] && [ "${COMP_WORDS[2]}" == "element" ] && [[ "$tables" =~ "$prev" ]]; then
COMPREPLY=( $(compgen -W "${sets}" -- $cur) )
fi
fi
return 0;
}
complete -F _nft nft