Friday, October 18, 2019

Sneaky tricks I've needed this week that I want to write down so I can be sneaky in the future.


  1. How to make git give you the full history so you can see how badly you've fucked things up:
    • git log --oneline --graph --all --decorate
  2. How to get SQL alchemy to stop being such a piece of shit and just give you the stupid fucking query it's fucking up:
    • query.sql.compile(compile_kwargs={'literal_binds': True}).string
      • Yes, I know that's batshit insane.

No comments:

Post a Comment