Snippets

Linux

List available filesystems

cat /proc/filesystems | awk '{print $NF}' | sed '/^$/d'

List available mount options for cifs

Note also that you could use -s (sloppy) mount option!

mount.cifs 2>&1 | grep -Pzo "\$(.|\n)*Options are described" | grep "^[[:space:]]" | sed 's/<[^>]*>//g' | tr '\n' ',' | tr ',' ' ' | tr -d '\t\n'

Github export for subpathes

They don’t support git archive but still have an Subversion API.

svn export https://github.com/zsh-users/zsh/trunk/Functions /usr/share/zsh/Functions --no-auth-cache --force