Skip to content

Instantly share code, notes, and snippets.

View dandv's full-sized avatar
🔍
Consulting for Anthropic

Dan Dascalescu dandv

🔍
Consulting for Anthropic
View GitHub Profile
@dandv
dandv / 00 - README.md
Last active April 7, 2020 22:16
Ubuntu locks up, trying to investigate why

My Ubuntu 18.04 system is locking up every few minutes as described in this AskUbuntu question. This gist serves to upload various diagnostics.

@dandv
dandv / package-lock.json
Last active April 21, 2020 08:16
Unknown version 4 of samsung on AWS - see https://github.com/gatsbyjs/gatsby/issues/23331
{
"name": "website-gatsby",
"version": "1.0.0",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"@apollo/react-common": {
"version": "3.1.4",
"resolved": "https://registry.npmjs.org/@apollo/react-common/-/react-common-3.1.4.tgz",
"integrity": "sha512-X5Kyro73bthWSCBJUC5XYQqMnG0dLWuDZmVkzog9dynovhfiVCV4kPSdgSIkqnb++cwCzOVuQ4rDKVwo2XRzQA==",
@dandv
dandv / recursiveDelete-fail.ts
Last active January 5, 2025 14:59
recursiveDelete fails with "Error: 0 deletes failed. The last delete failed with"
import { initializeApp, cert } from 'npm:firebase-admin/app';
import { getFirestore } from 'npm:firebase-admin/firestore';
const serviceAccount = 'service-account-key.json';
initializeApp({ credential: cert(serviceAccount) });
export const db = getFirestore('nonexistent');
await db.recursiveDelete(db.collection('docs'));