Anwar

Posts

Composer Upgrade guides for Composer 1.x to 2.0

Remove the current installation: sudo apt remove composer Install the latest version: php -r “copy(‘https://getcomposer.org/installer’, ‘composer-setup.php’);” php -r “if (hash_file(‘sha384’, ‘composer-setup.php’) === ‘756890a4488ce9024fc62c56153228907f1545c228516cbf63f885e036d37e9a59d27d63f46af1d4d07ee0f76181c7d3’) { echo...

Panther The port 4444 is already in use.

The port 4444 is already in use.#336 langziyang commented on May 4, 2020 i use wsl(ubuntu),installed firefox and use ./geckodriver run webdriver. then this is my...

Panther install

A browser testing and web scraping library for PHP and Symfony Panther is a convenient standalone library to scrape websites and to run end-to-end tests using real browsers. Panther is...

Panther How can I specify the Navigator or User Agent

https://github.com/symfony/panther/issues/141   You can pass an array of arguments when creating the client with createChromeClient(). which avoids the above problem with space being a delimiter. The arguments...

Puppeteer-Puppeteer served by pm2 doesn’t work

https://github.com/Unitech/pm2/issues/3933 Puppeteer served by pm2 doesn’t work. #3933 itsTeknas commented  What’s going wrong? Puppeteer crashes when running on app served by pm2. API > { TimeoutError: Navigation...

puppeteer install

https://www.checklyhq.com/learn/headless/managing-cookies/ Setting state using cookies The HyperText Transfer Protocol (HTTP) is stateless, but cookies allow it to keep context consistent over the course of a session. In...

puppeteer improvement

https://www.npmjs.com/package/puppeteer-extra-plugin-stealth A plugin for puppeteer-extra to prevent detection. Install yarn add puppeteer-extra-plugin-stealth # - or - npm install puppeteer-extra-plugin-stealth If this is your first puppeteer-extra plugin here’s everything you...

Forever restart when files change

https://github.com/foreversd/forever/issues/41   forever stopall git pull forever start server.js   https://www.npmjs.com/package/node-dev   https://github.com/foreversd/forever  Logging and output file locations By default forever places all of the files it...

ubuntu-ubuntu top command for ram and cpu usage

https://geekflare.com/process-cpu-memory-monitoring/ How to Monitor CPU and Memory on Linux? Netsparker Web Application Security Scanner – the only solution that delivers automatic verification of vulnerabilities with Proof-Based...