Skip to content

Instantly share code, notes, and snippets.

@abdeljalil09
abdeljalil09 / app.module.ts
Created June 29, 2023 15:44
Import the BullModule from the Bull.js module in a Nest.js project. Configure the registerQueue method with the following settings:
BullModule.registerQueue({
name: 'subscribe',
processors: [
{
path: resolve(`dist/workers/news/subscribe.js`),
concurrency: 5 / 2,
},
],
});
@abdeljalil09
abdeljalil09 / index.html
Created July 19, 2022 16:03
WhatsApp in Pure CSS and JS
<div class="page">
<div class="marvel-device nexus5">
<div class="top-bar"></div>
<div class="sleep"></div>
<div class="volume"></div>
<div class="camera"></div>
<div class="screen">
<div class="screen-container">
<div class="status-bar">
<div class="time"></div>
// @ts-check
import { firefox } from "playwright";
const link = "https://sso.godaddy.com/";
(async () => {
const browser = await firefox.launch({
headless: false,
});
const page = await browser.newPage();
await page.setViewportSize({
/* eslint-disable @typescript-eslint/no-var-requires */
const puppeteer = require('puppeteer-extra');
const StealthPlugin = require('puppeteer-extra-plugin-stealth');
const sealth = StealthPlugin();
const link = 'https://sso.godaddy.com/';
(async () => {
puppeteer.use(sealth);
const browser = await puppeteer.launch({
headless: false,
executablePath: