This file contains hidden or 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
[2025/04/02 14:06:44.386] [31m 4 failing[0m | |
[2025/04/02 14:06:44.386] [0m 1) CRUD API | |
[2025/04/02 14:06:44.386] when creating a cursor with find | |
[2025/04/02 14:06:44.386] #forEach() | |
[2025/04/02 14:06:44.386] iterates all the documents: | |
[2025/04/02 14:06:44.386] [0m[31m MongoUnexpectedServerResponseError: BSON element "id" is missing[0m[90m | |
[2025/04/02 14:06:44.386] at CursorResponse.get id [as id] (src/cmap/wire_protocol/responses.ts:51:63) | |
[2025/04/02 14:06:44.386] at LegacyFindCursor.fetchBatch (src/cursor/abstract_cursor.ts:365:8) | |
[2025/04/02 14:06:44.386] at processTicksAndRejections (node:internal/process/task_queues:105:5) | |
[2025/04/02 14:06:44.386] at async LegacyFindCursor.next (src/cursor/abstract_cursor.ts:49:2745) |
This file contains hidden or 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 hidden or 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 hidden or 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 hidden or 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 hidden or 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 |