Skip to content

Instantly share code, notes, and snippets.

View uzair004's full-sized avatar
🎯
Focusing

Muhammad Uzair uzair004

🎯
Focusing
View GitHub Profile
@tegansnyder
tegansnyder / Preventing-Puppeteer-Detection.md
Created February 23, 2018 02:41
Preventing Puppeteer Detection

I’m looking for any tips or tricks for making chrome headless mode less detectable. Here is what I’ve done so far:

Set my args as follows:

const run = (async () => {

    const args = [
        '--no-sandbox',
        '--disable-setuid-sandbox',
        '--disable-infobars',
@twolfson
twolfson / README.md
Last active December 24, 2021 11:23
Node.js database fixture library evaluation
@markdboyd
markdboyd / migration.js
Last active December 29, 2021 14:12
Drop constraint from Sequelize model
// Remove constraint and index
queryInterface.sequelize.query(
'ALTER TABLE "project" DROP CONSTRAINT IF EXISTS project_name_key;'
).then(function() {
return queryInterface.removeIndex('project', 'project_name_key');
});
// Add unique constraint and index
queryInterface.addIndex('project', ['name'], {
indexName: 'project_name_key',
@vitorbritto
vitorbritto / rm_mysql.md
Last active April 23, 2024 14:21
Remove MySQL completely from Mac OSX

Remove MySQL completely

  1. Open the Terminal

  2. Use mysqldump to backup your databases

  3. Check for MySQL processes with: ps -ax | grep mysql

  4. Stop and kill any MySQL processes

  5. Analyze MySQL on HomeBrew:

    brew remove mysql