Skip to content

Instantly share code, notes, and snippets.

View ThallesP's full-sized avatar

Thalles Passos ThallesP

View GitHub Profile
@eranbetzalel
eranbetzalel / batch-worker-host.ts
Last active November 4, 2025 10:05
This class provides an efficient and flexible way to handle batch processing of jobs in a BullMQ environment, leveraging NestJS. It ensures that jobs are processed in batches, which can be crucial for performance optimization in applications requiring bulk operations..
import {WorkerHost} from '@nestjs/bullmq';
import {Job} from 'bullmq';
export class BatchWorkerHost extends WorkerHost {
private jobBatchCreationTime: Date;
private jobBatch: Job[];
private jobBatchProcessPromise: Promise<void>;
private running: boolean = false;
private resolveJobBatchProcessPromise: () => void;
@0xdevalias
0xdevalias / bypassing-cloudflare-akamai-etc.md
Last active October 5, 2025 20:34
Some notes/resources for bypassing anti-bot/scraping features on Cloudflare, Akamai, etc.