Compute a sorted disk usage analysis using du, without including filesystem mountpoints

duso() {
  sudo sh -es <<"EOF"
  case $(uname -s) in
  Linux) statfs="stat -c %m" ;;
  FreeBSD) statfs="stat -f %d" ;;
  *) echo "Unknown platform $(uname -s)" ;;
  esac
  mnt="$(${statfs} .)"
  LANG=C ls -1a | grep -Gv '^\.$\|^\.\.$' | while read dent
  do
    [ "$(${statfs} "${dent}")" = "${mnt}" ] && printf "%s\0" "${dent}"
  done | xargs -0 du -sx | sort -bn
EOF
}

PHP Warning

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead:"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead"

Warning: "preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead:"