Skip to content

Instantly share code, notes, and snippets.

View WomB0ComB0's full-sized avatar
πŸ˜΅β€πŸ’«
I need an Advil

Mike Odnis WomB0ComB0

πŸ˜΅β€πŸ’«
I need an Advil
View GitHub Profile
@WomB0ComB0
WomB0ComB0 / distance-formulas.ts
Created April 30, 2025 02:30
distance-formulas.ts and related files - with AI-generated descriptions
// @ts-nocheck
import { $, argv, } from 'bun';
function selfExecute<T extends { new(...args: any[]): {} }>(constructor: T): T {
new constructor();
return constructor;
}
@selfExecute
class Main {
@WomB0ComB0
WomB0ComB0 / fire-crawl-parser.ts
Created April 30, 2025 01:55
fire-crawl-parser.ts and related files - with AI-generated descriptions
import { file, readableStreamToJSON, argv, write } from 'bun';
import { z } from 'zod';
const fireSchema = z.object({
markdown: z.string(),
metadata: z.object({
generator: z.string(),
viewport: z.string(),
language: z.string(),
description: z.string(),
@WomB0ComB0
WomB0ComB0 / tech-week.ts
Last active April 30, 2025 00:53
tech-week.ts and related files - with AI-generated descriptions
"use strict";
import { readableStreamToJSON, file } from 'bun';
import { z } from 'zod';
import { generateText } from 'ai';
import { openai } from '@ai-sdk/openai';
import { GoogleMapsService } from './map.js';
import dotenv from 'dotenv';
dotenv.config({ path: '.env' });
@WomB0ComB0
WomB0ComB0 / project-llm.ts
Created April 25, 2025 00:49
project-llm.ts and related files - with AI-generated descriptions
import { argv, write } from 'bun';
import path from 'node:path';
import { Logger } from './logger.js';
import { GoogleGenAI } from '@google/genai';
/**
* Decorator that automatically instantiates a class when it's defined
*/
function selfExecute<T extends { new(...args: any[]): {} }>(constructor: T): T {
new constructor();
@WomB0ComB0
WomB0ComB0 / bun-shell-case.ts
Created April 23, 2025 02:53
bun-shell-case.ts and related files - with AI-generated descriptions
import { $ } from 'bun';
import { platform as osPlatform } from 'node:os';
// Removed unused 'exec' import
/**
* Enum representing the detected operating system platform.
*/
export enum Platform {
Windows = 'windows',
Mac = 'mac',
@WomB0ComB0
WomB0ComB0 / format-gitignore.ts
Last active April 22, 2025 16:09
format-gitignore.ts and related files - with AI-generated descriptions
import { $, write } from "bun";
if (require.main === module) {
(async () => {
try {
const filePath = `${process.cwd()}/.gitignore`;
console.log(filePath);
const content = (await $`cat ${filePath}`.text().then(text => text.trim()
.replace(/[\u{1F600}-\u{1F64F}]/gu, "")
.replace(/[^\x00-\x7F]/g, "")
@WomB0ComB0
WomB0ComB0 / linkedin-title-cleaner.ts
Last active April 19, 2025 03:55
linkedin-title-cleaner.ts and related files - with AI-generated descriptions
if (require.main === module) {
try {
(async () => {
const { argv } = await import('bun')
const fs = await import('node:fs')
const { Logger, LogLevel } = await import('./logger')
const logger = Logger.getLogger('LinkedinTitleCleaner', {
minLevel: LogLevel.INFO,
includeTimestamp: true
})
@WomB0ComB0
WomB0ComB0 / linkedin.py
Created April 8, 2025 14:20
linkedin.py and related files - with AI-generated descriptions
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# pylint: disable=all
"""
LinkedIn Profile Scraper
This script automates the process of scraping LinkedIn profiles using the linkedin_scraper library.
It handles authentication, navigates to a specified profile, and extracts structured information
including personal details, work experiences, education, interests, and accomplishments.
@WomB0ComB0
WomB0ComB0 / date-range-clean.sh
Created April 4, 2025 07:24
date-range-clean.sh and related files - with AI-generated descriptions
#!/bin/bash
# Help function
usage() {
echo "Usage: $0 <reference_date>"
echo "Example: $0 \"Mar 31 01:00\""
echo "Files and directories older than the reference date will be removed."
exit 1
}
@WomB0ComB0
WomB0ComB0 / organize.sh
Last active March 29, 2025 09:47
organize.sh and related files - with AI-generated descriptions
#!/usr/bin/env bash
# GitHub Repository Organizer - Final Fixed Version
# Enable strict mode but don't exit on arithmetic errors
set -euo pipefail
IFS=$'\n\t'
# Configuration
BASE_DIR="${GITHUB_DIR:-$HOME/github}"