Skip to content

Instantly share code, notes, and snippets.

View raihanba13's full-sized avatar

raihanba13

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',
@arsho
arsho / pdo_like.php
Created May 20, 2017 05:00
Like operator in PDO
<?php
$user = "root";
$password = "";
$name = "%o%";
try{
$conn = new PDO('mysql:host=localhost;dbname=test_db',$user,$password);
$query = "SELECT * FROM `test_table` WHERE `name` like :name";
$stmt = $conn->prepare($query);
$stmt->bindParam(':name',$name);
$stmt->execute();
@jeremykendall
jeremykendall / password_hash_example.php
Last active January 19, 2022 07:50
Example of password hashing and verification with password_hash and password_verify. This script is intended to be run from the command line like so: 'php -f password_hash_example.php'
<?php
/**
* Example of password hashing and verification with password_hash and
* password_verify
*
* This script is intended to be run from the command line
* like so: 'php -f password_hash_example.php'
*
* @see http://stackoverflow.com/a/20809916/1134565
@baijum
baijum / selenium_with_python.rst
Last active February 17, 2025 10:54
Selenium with Python