Skip to content

Instantly share code, notes, and snippets.

View kaapstorm's full-sized avatar

Norman Hooper kaapstorm

  • Dimagi, Inc.
  • Edinburgh, Scotland
View GitHub Profile

GitHub Copilot Deep Dive

A quick look at using GitHub Copilot from an IDE versus using it from github.com.

And a deeper dive into an example, where Copilot (using GPT 4o) goes head-to-head with DeepSeek-V3, and Copilot using o1, to refactor the same chunk of code.

URLs used in the refactoring example:

@kaapstorm
kaapstorm / ubuntu_on_existing_encrypt.md
Last active May 17, 2025 13:34
How to install Linux on an existing encrypted drive

How to install Linux on an existing encrypted drive

Context

When you install Ubuntu Desktop, you can choose to "Erase disk and install Ubuntu" and "Use LVM and encryption".

Installing alongside an existing Linux OS that already uses encryption

@kaapstorm
kaapstorm / 2024-10-24_datadog.md
Last active October 25, 2024 11:42
Adding metrics to Datadog

Adding metrics to Datadog

commcare-hq supports both Datadog and Prometheus (FOSS Datadog)

I will discuss Datadog.

Types

#!/usr/bin/env python3
import sys
from collections import Counter
num_to_word = {
3: 'three',
4: 'four',
5: 'five',
6: 'six',
AIDS Acquired Immuno-Deficiency Syndrome
ADR Adverse Drug Reactions
ANM Auxiliary Nurse Midwife
ART antiretroviral therapy
ARTI Annual Risk of Tuberculous Infection
ASHA Accredited Social Health Activist
AWW Anganwadi Worker
ATP Advanced Tour Program
BPHC Block Primary Health Centre
CBNAAT Cartridge-based nucleic acid amplification test

An Open Letter To My Children

I'm writing this to you because, although neither of you are thinking about this question yet, it is on my mind at the moment. And one day you will think about it, I hope, and then you will have this.

Recently I realised that smarter people than me think that this question has no answer. I think it has, and I feel that it's important. So this letter isn't just for you. It's for anyone who needs it.

@kaapstorm
kaapstorm / gpu_passthrough_on_saitama.rst
Last active January 17, 2021 10:13
How to configure GPU passthrough on saitama

GPU Passthrough on saitama

Preamble

saitama has an AMD socket AM4 B350 motherboard. It does not have an integrated graphics device. It has two NVIDIA cards plugged into PCIe ports. The worse of the two cards is in the first port, making it the primary card. The better is in the fourth port. As a result the better

@kaapstorm
kaapstorm / gpu_passthrough_on_trillian.rst
Last active November 5, 2023 20:34
How to configure GPU passthrough, specifically for my desktop machine, trillian

GPU Passthrough on trillian

Prepare the host

Configure primary GPU

Check that the integrated GPU is the primary GPU.

@kaapstorm
kaapstorm / fbworkon
Last active May 15, 2019 10:25
Set your current FogBugz case from the command line
#!/usr/bin/env python3
from datetime import datetime
import os
import re
import sys
import requests
import yaml
RC_FILENAME = '~/.fbworkonrc'