Skip to content

Instantly share code, notes, and snippets.

View kashif-ghafoor's full-sized avatar
🏠
Working from home

Kashif Ghafoor kashif-ghafoor

🏠
Working from home
View GitHub Profile
@igorjs
igorjs / rest-api-response-format.md
Last active November 11, 2024 05:14
REST API response format based on some of the best practices
@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',
@seeebiii
seeebiii / LambdaConstants.java
Last active October 24, 2024 15:44
Available default environment variables in AWS Lambda. Just copy&paste into your Node or Java project.
public class Constants {
/**
* Contains the path to your Lambda function code.
*/
public static final String LAMBDA_TASK_ROOT = System.getenv("LAMBDA_TASK_ROOT");
/**
* The environment variable is set to one of the following options, depending on the runtime of the Lambda function:
* AWS_Lambda_nodejs, AWS_Lambda_nodejs4.3, AWS_Lambda_nodejs6.10