Skip to content

Instantly share code, notes, and snippets.

View mpitt's full-sized avatar

Michele Pittoni mpitt

View GitHub Profile

Keybase proof

I hereby claim:

  • I am mpitt on github.
  • I am mpitt (https://keybase.io/mpitt) on keybase.
  • I have a public key whose fingerprint is 746D 1612 BA80 C5ED D0CA 8444 DBA8 64C5 C884 A78C

To claim this, I am signing this object:

stat --version &>/dev/null
if [[ $! ]]; then
p=$(stat -c %a $1)
u=$(stat -c %U $1)
g=$(stat -c %G $1)
else
p=$(stat -f %p $1)
u=$(stat -f %Su $1)
g=$(stat -f %Sg $1)
fi