added credit for bash snippet