Skip to content

Instantly share code, notes, and snippets.

@NathBabs
NathBabs / .cursorrules
Created June 1, 2025 00:00 — forked from boxabirds/.cursorrules
Rock solid: turn Cursor into a rock-solid software engineering companion
# Project Policy
This policy provides a single, authoritative, and machine-readable source of truth for AI coding agents and humans, ensuring that all work is governed by clear, unambiguous rules and workflows. It aims to eliminate ambiguity, reduce supervision needs, and facilitate automation while maintaining accountability and compliance with best practices.
# 1. Introduction
> Rationale: Sets the context, actors, and compliance requirements for the policy, ensuring all participants understand their roles and responsibilities.
## 1.1 Actors
https://github.com/alsyundawy/Microsoft-Office-For-MacOS?tab=readme-ov-file
https://officecdnmac.microsoft.com/pr/C1297A47-86C4-4C1F-97FA-950631F94777/MacAutoupdate/Microsoft_Excel_16.77.23091703_Updater.pkg
@NathBabs
NathBabs / Office 2019 ISO Links at Microsoft.md
Created December 24, 2024 08:17 — forked from Issykul/Office 2019 ISO Links at Microsoft.md
Office 2019 ISO Download Links at Microsoft
@NathBabs
NathBabs / ms-office-dl-links
Created December 24, 2024 08:15 — forked from DartPower/ms-office-dl-links
MS Office Download Links
@NathBabs
NathBabs / utils.js
Created February 15, 2024 00:49
General Utilities
import fs from "fs";
import path from "path";
import crypto from "crypto";
import GoogleLibPhone from "google-libphonenumber";
import moment from "moment";
/**
* get date instance by timezone
* @param date
* @param timeZone
@NathBabs
NathBabs / cleanup.go
Created July 19, 2023 09:09
Cleanup a folder by arranging files into their appropraite folders. Run by passing in the path to the folder it should clean e.g ` go run cleanup.go ~/Downloads/test`
package main
import (
"fmt"
"os"
"path/filepath"
)
// crate a map of file extensions to folders
// folderMap := make(map[string]string)
{ "keys":[{"e":"AQAB","kty":"RSA","n":"pL9d9fK4sCpxE8M61TlExZpjkZLJ_POXGk5SgS3LtXxI64OvvaBGmwPHUYpfPUNa4BuwWloT4CD3vT218daInwbqTB2hMRKa2eUo_7O694RXTLx2f_doRbiuiJO7c8a3Sg5H6L4MuYAtUU8HgUCCVkUcrbW85bIuYw8_3UsJLIDkl4ZdWrMoYTPogatNyl9A5dRGTahuC0nSZxVSPn6g95gZP_ybkGooKVQb24aFUa2aEBOJwiqdJgvxPpyqLaktcfJcGpLJHHLcip34GAME9Y62RTrs9VEvo40xKSe6lALMSX9NgteImsxRIg_PYnSLOEit0lQDJZ6kqCqrAycIpQ"}]}
@NathBabs
NathBabs / fetchKeys.js
Last active January 25, 2023 15:53
Connecting to Redis
const fetchKeys = (obj, keys) => {
const filteredObject = {};
if (Array.isArray(keys)) {
keys.forEach((key) => {
// eslint-disable-next-line no-prototype-builtins
if (obj.hasOwnProperty(key)) {
filteredObject[key] = obj[key];
}
});
} else if (typeof keys === "string") {
@NathBabs
NathBabs / envCopy.txt
Last active May 20, 2022 14:24
Copy .env variables fro Heroku App to .env file
heroku config -s -a [app-name-on-heroku] > .env
@NathBabs
NathBabs / aggs.json
Last active April 30, 2022 19:15
ElasticSearch Sum and Terms combination
"aggs": {
"bank_card_metrics": {
"terms": {
"field": "cardBank.keyword"
},
"aggs": {
"cards": {
"terms": {
"field": "cardType.keyword"
},