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 { $, 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, "") |
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
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 | |
}) |
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 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. |
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 | |
# 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 | |
} |
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 | |
# 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}" |
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
'use server'; | |
import { exec } from 'node:child_process'; | |
import fs from 'node:fs'; | |
import path from 'node:path'; | |
import { promisify } from 'node:util'; | |
import { logger } from '@/utils'; | |
import { Redacted } from '@/classes'; | |
const execPromise = promisify(exec); |
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 fs from 'node:fs'; | |
import path from 'node:path'; | |
import type { PackageJson } from 'type-fest'; | |
const packageJsonPath = path.join(process.cwd(), 'package.json'); | |
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, 'utf-8')) as PackageJson; | |
const dependencies = | |
packageJson.dependencies || |
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
/** | |
* @fileoverview A comprehensive logging utility for both client and server environments. | |
* Provides structured logging with support for different log levels, colorization, | |
* and contextual information. | |
*/ | |
/** | |
* Determines if the code is running in a server environment | |
*/ | |
const isServer = typeof window === "undefined"; |
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
/** | |
* # Markdown to Google Docs Converter | |
* | |
* This module provides functionality to convert Markdown content to Google Docs | |
* with proper formatting. It handles various Markdown elements like headings, | |
* lists, bold, italic, links, and code blocks. | |
* | |
* ## Features | |
* - Create Google Docs from Markdown content | |
* - Apply proper formatting (headings, bold, italic, links, code blocks) |
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 path from 'path'; | |
import * as fs from 'fs'; | |
import * as readline from 'readline'; | |
/** | |
* Decorator that automatically instantiates a class when it's defined. | |
* @param constructor - The class constructor to instantiate | |
* @returns The original constructor | |
*/ | |
function selfExecute<T extends { new(...args: any[]): {} }>(constructor: T) { |