Saw this via Twitter, which seems like a really good way to lock your bike:
https://lifehacker.com/5942301/the-proper-way-to-lock-your-bicycle (about halfway down)
lock the back wheel inside the triangle of your frame to the bike rack
I tried this at work today with two D-locks and saved myself the bother of using a cable to secure the front wheel.