Short tips and tricks that I’ve come across and want to remember.

Turning csv into list for SQL

So this is something I’ve been doing for a long time - if you have a CSV of values and don’t want to write a Python script to read in the results and execute...

Killing long running redshift connections

We recently ran into an issue where we needed to kill database connections to redshift. To do so, we just wrote the following script. Nothing fancy, but usef...