Skip to content

Instantly share code, notes, and snippets.

View W-A-James's full-sized avatar

Warren James W-A-James

View GitHub Profile
W-A-James / mergeCSVs.ts
Last active February 9, 2024 18:28
import * as fs from 'fs/promises';
class CSV {
filePath?: string;
headings?: string[];
data?: Record<string, any>[];
private constructor(path?: string, headings?: string[], data?: Record<string, any>[]) {
this.filePath = path;
this.headings = headings;
W-A-James /
Created June 22, 2023 19:40
Get host name of named evergreen host
# provide evergreen host name as only argument
# Returns <user>@<hostname> for the specified host and fails if no host is found
USAGE=$(cat << EOM
$0 <name>
if [ -z $NAME ]; then
W-A-James /
Last active December 2, 2022 20:56
Checks for todos in the current repository
#!/usr/bin/env bash
set -e
has_ripgrep() {
which "rg" | grep "not found"
case $? in
0) # no ripgrep found