Small and dangerous.
# /boot/config.txt
display_rotate=0
display_rotate=1 # 90 degress
display_rotate=2 # 180 degrees
display_rotate=3 # 270 degrees
Enable SSH by placing a file named ssh
onto the boot partition of the SD card.
touch /path/to/sd/card/volume/ssh