Skip to content

Instantly share code, notes, and snippets.

View w3b3's full-sized avatar
πŸ‡¨πŸ‡¦
CariocaJitsu on IG

Daniel w3b3

πŸ‡¨πŸ‡¦
CariocaJitsu on IG
View GitHub Profile
@w3b3
w3b3 / cursor.txt
Created August 27, 2025 03:31
Cursor rules
make sure to inspect the markdown files included in ./docs/ folder and follow project standards (PROJECT_STANDARDS.MD).
for architectural changes proposed and implemented, update the corresponding markdown file with instructions useful for the AI agent to keep the standards and practices consistent on future iterations (refer to PROJECT_STANDARDS.MD).
βœ… always rely on PROJECT_STANDARDS.MD file in any repository. It is the source of truth. Should always be kept updated and organized.
******
I use Cloudflare DNS. I use Cloudflare origin certificates and Full strict mode.
@w3b3
w3b3 / git_local_cleanup.md
Created July 30, 2025 14:52
Remove sensitive commits and update git ignore

Remove sensitive commits and update git ignore

Exported on 7/30/2025 at 11:47:13 GMT-3 from Cursor (1.3.5)


User

I have a few commits locally that I don't want to have pushed to the remote repository due to its sensitive nature. Actually, I should have added the output folder to be ignored by version control. So the ask here is twofold:

  • git ignore should include the output folder
  • these 3 sequential commits (8ddcba0e06a0942584fa315d6c7e0edff9fa48f2, cc480baae319125b283e4760824f8158662140c2, c07b93c319971cf5a83c435db720bbb01a6234a6) should be completely erased from the GIT history, leaving the other commit content present (again the content of these commits should not be pushed to Github).
@w3b3
w3b3 / export-confluence-space.js
Created July 29, 2025 15:31
A script to fetch all pages and attachments from a Confluence space and save each page as JSON.
// export-confluence-space.js
// A script to fetch all pages and attachments from a Confluence space and save each page as JSON.
require('dotenv').config();
const axios = require('axios');
const fs = require('fs');
const path = require('path');
const {
CONFLUENCE_BASE_URL, // e.g. https://your-domain.atlassian.net/wiki
@w3b3
w3b3 / apple_stripe_google.md
Created July 11, 2025 15:11
Expand Apple service by creating new ones

Expand Apple service or create new ones

Exported on 7/11/2025 at 11:09:17 EDT from Cursor (1.2.4)


User

Should I expand the Apple service built here to accept and store events from Google Play and Stripe, or would be better (more organized, more stable) to have a similar service created for these other payment providers?


@w3b3
w3b3 / Daniel Santos' Team Lead Projects at MileIQ.md
Created July 4, 2025 21:17
This comprehensive technical implementation demonstrates sophisticated full-stack engineering leadership across frontend, backend, mobile, analytics, and infrastructure domains, delivering significant business value through technical excellence.

Technical Leadership Report: Daniel Santos' Team Lead Projects at MileIQ

Executive Summary

This report documents the comprehensive technical projects led by Daniel Santos as Team Lead at MileIQ. Through analysis of multiple repositories (teams, dashboard-v2-web-app, MileIQApp, analytics, billing, infrastructure, fleet-infra, drives-review), I've identified substantial technical implementations across frontend, backend, mobile, analytics, and infrastructure domains. Each project demonstrates significant technical complexity and business impact.


1. Dunning (Payment Failure Recovery System)

@w3b3
w3b3 / Android ERD Template.md
Created May 11, 2025 22:47
Engineering Requirements Document (ERD) Templates

Android Engineering Requirements Document (ERD)

Feature / Project Name:
[Insert name]

Platform:
Android (Kotlin / Jetpack Compose / XML)

Author(s):
[Engineer(s) responsible]

@w3b3
w3b3 / CreateDummySubscriptionUsers.js
Last active November 20, 2024 16:48
Stripe creation of test users
require("dotenv").config();
const stripe = require("stripe")(process.env.STRIPE);
const casual = require("casual");
async function createMockUsers() {
for (let i = 0; i < 1; i++) {
const customer = await stripe.customers.create({
email: casual.populate("{{email}}"),
name: casual.populate("{{full_name}}"),
metadata: { script_test_data: "true" }, // Add metadata to customer
@w3b3
w3b3 / dryRunUpdateSubscriptions.js
Last active November 20, 2024 16:49
Stripe: Update Prices on Subscriptions
require("dotenv").config();
const stripe = require("stripe")(process.env.STRIPE);
async function dryRunUpdateSubscriptions(subscriptionId = null) {
// TODO: check for usyearlyrecurring as well
const oldPriceId = "foo",
newPriceId = "price_foo";
let hasMore = true;
let startingAfter = null;
@w3b3
w3b3 / main.go
Created November 2, 2023 00:51
Void Stripe invoices, skipping a subset from the range
package main
import (
"fmt"
"github.com/stripe/stripe-go"
"github.com/stripe/stripe-go/invoice"
"time"
)
func contains(s []string, str string) bool {
@w3b3
w3b3 / main.py
Created November 2, 2023 00:35
Create SNL to a local instance of Teams API while reading addresses from a CSV file (shell script)
#!/usr/bin/env python3
import argparse
import csv
import json
from urllib.parse import quote, urlencode
from urllib.request import urlopen, Request
from urllib.error import HTTPError
# CSV input has the following content