# Cody Couperus

> Medicine ∩ Data Science

Every page on this site is available as markdown: append `index.md` to its URL, or request the page with `Accept: text/markdown`.

## Posts

- [Declarative Postgres Schema with pgschema](https://www.codymd.com/declarative-postgres-with-pgschema/index.md): 2026-08-24 — I got tired of numbered migration files. Typical workflows mean you write the SQL to get from A to B by hand, keep those files forever, and hope nobody applied step 17 twice. I wanted the Infrastructure as Code (IaC) loop for Postgres: declare the desired schema, preview the…
- [SSH Into a WSL2 Instance (With Mirrored Networking)](https://www.codymd.com/ssh-into-wsl2-mirrored-networking/index.md): 2026-08-06 — I run most of my homelab tooling (Ansible, kubectl, Git) inside a Debian WSL2 instance on my Windows workstation. I wanted to SSH directly into that WSL instance from other machines on my LAN / Tailscale network without hopping through Windows first. Here's the setup that…
- [Manjaro Linux Bluetooth and Audio Info](https://www.codymd.com/manjaro-linux-bluetooth-and-audio-info/index.md): 2024-09-18 — I spent the morning troubleshooting this and I wasn't finding much useful info through searches, so this is just a little info dump post to be helpful for others with similar problems. I briefly explain the Manjaro Linux audio stack, the relevant packages, and how to…
- [Management of Euglycemic Diabetic Ketoacidosis - Insulin is the Secret Sauce](https://www.codymd.com/euglycemic-dka/index.md): 2024-08-20 — This post will review the presentation, workup, and treatment of euglycemic diabetic ketoacidosis (eDKA). Particular attention is spent discussing refractory acidosis, treatment failure, and insulin dosing. TL;DR eDKA is a medical emergency and the management is NOT…
- [Rapid Bronchoscopy for ETT Confirmation](https://www.codymd.com/quick-bronch/index.md): 2024-08-08 — Have you ever intubated a patient, initiated sedation, and then the patient started desatting? The ETCO2 is 35. You listen to lung sounds and they seem quieter on the left. The ETT is only at 23 cm and you swear that you barely went past the cords. You already ordered a stat…
- [Advanced Vascular Access Techniques for the Intensivist](https://www.codymd.com/lines/index.md): 2024-08-01 — The intensivist is a master of vascular access, but from time to time we still find ourselves with a challenging case. Sometimes the odds stack against our favor. Think of an elderly patient who is on dialysis, in shock, obese, and with just a small little femoral artery. When…
- [CRRT - lost in the sauce](https://www.codymd.com/crrt/index.md): 2024-07-04 — The hardest part about learning CRRT is deciphering the alphabet soup. It's easy to get lost in the sauce. Once you learn concretely the vocabulary and what all the tubes and pumps do on the CRRT machine then the rest kind of just falls in to place. This article is targeting…
- [How to Use Phenobarbital for Treatment of Alcohol Withdrawal Syndrome](https://www.codymd.com/phenobarb/index.md): 2022-11-20 — TL;DR Phenobarbital is a good alternative or adjunct for treatment of alcohol‌‌ withdrawal syndrome. It has particular benefits for patients with severe‌‌ alcohol withdrawal. High risk patients are those with prior seizure,‌‌ delirium tremens, ICU‌‌ admission, benzodiazepine…
- [How Much Should Medical Students Present on Rounds?](https://www.codymd.com/how-much-should-medical-students-present-on-rounds/index.md): 2022-11-13 — I would say this fully depends on the medical students and how busy my team is at the time. If things are chilling, then I rarely interrupt. I let them talk talk talk and give feedback +/- some teaching at the end. On the other hand, if my team is busy, then I give them fair…
- [How to change alignment of  LaTeX equations in Jupyter notebooks](https://www.codymd.com/left-align-latex-equation-in-jupyter-notebook/index.md): 2022-09-11 — Math can be inserted into Jupyter notebook markdown cells with LaTeX. The following works for Jupyter Notebooks in VS Code Center align with $$ math blocks $$ \Large\frac{N(t) - E(t)} {N(t)} $$ Left align with $ math blocks $ \Large\frac{N(t) - E(t)} {N(t)} $ Align on an equals…
- [Alternative to Massive Jupyter Notebooks](https://www.codymd.com/alternative-to-massive-jupyter-notebooks/index.md): 2022-09-11 — I used to have the problem of massive Jupyter notebooks. They were slow and I couldn't find what I was looking for. I was adding markdown headers and jump links... In retrospect, I was doing too much in one notebook and was not pulling out big functions into scripts. Now I use a…
- [The Decision to Intubate](https://www.codymd.com/decision-to-intubate/index.md): 2022-09-04 — In theory, the decision to intubate is straight forward. Intubate if the patient is not oxygenating, ventilating, or protecting their airway. In practice, it can be a LOT harder to decide to pull the trigger on intubation. This is compounded when incomplete knowledge of patient…
- [Iron Deficiency: How to Master Diagnosis and Treatment for Your Complex Admitted Patients](https://www.codymd.com/iron_deficiency/index.md): 2022-08-16 — This post outlines lab cutoffs for iron deficiency in healthy patients and those with heart failure, ongoing inflammation, or chronic kidney disease. Oral and IV treatment options are reviewed. Does your patient have iron deficiency? The most useful labs are ferritin and…
- [Fixing SSL Certificate and HTTP to HTTPS Forwarding for Ghost](https://www.codymd.com/setting-up-ghost-blog-on-google-cloud-services/index.md): 2022-08-16 — I ran into some major issues setting up the SSL certificate and HTTP to HTTPS forwarding on my Ghost blog. I'm outlining corrective steps here for other and for future reference. Basically, after setting up the SSL certificate my site had two major problems. First, it was…
- [Smooth Trendline with Pandas DateTime Axis Using Matplotlib](https://www.codymd.com/how-to-make-a-smooth-trendline-with-datetime-timestamp-variables-in-matplotlib/index.md): 2022-06-26 — TLDR This post shows an implementation for creating a smooth line over a datetime dataset with pandas and matplotlib. Introduction I recently ran into an issue where I wanted to make a smooth line over a 2 dimensional dataset. I'd been messing around with R and thought the…
- [A First Post](https://www.codymd.com/first-post/index.md): 2022-01-14 — I've been thinking about starting this blog for a long time now. Usually when I Google something and don't find a good answer. I'm a resident physician training in a combined emergency medicine and internal medicine program. I'll be doing a critical care fellowship. I'm going to…

## Pages

- [About Me](https://www.codymd.com/about-me/index.md): In my day job (and my night job) I'm a physician training in emergency medicine, internal medicine, and critical care. I will graduate in 2025 and work in the medical intensive care unit. I enjoy using data in medicine to improve patient care. Areas of interest include…
- [Contact](https://www.codymd.com/contact/index.md): You can contact me at cody@codymd.com
