This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/env bash | |
logFile=$1 | |
if [ -z "$logFile" ]; then | |
echo "Usage: ./log_pager.sh <log file>" | |
exit 1 | |
fi | |
if [ ! -f "$logFile" ]; then | |
echo "File '$logFile' not found!" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"folders": [ | |
{ | |
"name": "bson", | |
"path": "../drivers/js/bson" | |
} | |
], | |
"settings": { | |
"window.title": "bson", | |
"editor.codeActionsOnSave": { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# 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> | |
EOM | |
) | |
NAME=$1 | |
if [ -z $NAME ]; then |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
set -e | |
todo_message="" | |
directory="." | |
has_ripgrep() { | |
which "rg" | grep "not found" | |
case $? in | |
0) # no ripgrep found |