Skip to content

Instantly share code, notes, and snippets.

View rahmanfrictionless's full-sized avatar
🌴
On vacation

Zak Rahman rahmanfrictionless

🌴
On vacation
  • Skokie, IL
View GitHub Profile
@rahmanfrictionless
rahmanfrictionless / gist:74510a56a416b337a1f6c81069a1e969
Created February 14, 2020 17:48
Laravel Dusk error: Curl error thrown for http POST
-- Error:
| Facebook\WebDriver\Exception\WebDriverCurlException: Curl error thrown for http POST to /session with params: {"desiredCapabilities":{"browserName":"chrome","platform":"ANY","chromeOptions":{"w3c":false,"binary":"","args":["--disable-gpu","--headless","--window-size=2200,1800"]}}}
| Open port 9515
`sudo lsof -i tcp:9515`
-- Install chrome driver
`php artisan dusk:chrome-driver 79`
@rahmanfrictionless
rahmanfrictionless / install-php7.2-mcrypt.sh
Created June 4, 2018 16:34 — forked from arzzen/install-php7.2-mcrypt.sh
Install PHP 7.2 MCrypt extension
## How to install mcrypt in php7.2
##
## https://lukasmestan.com/install-mcrypt-extension-in-php7-2/
##
#
# Check version php and pecl
#
php -v # if default php is not 7.2 then use /usr/bin/php7.2 instead php
@rahmanfrictionless
rahmanfrictionless / gist:43e78ba62c1f0f296205e32653770f24
Last active May 22, 2018 13:51 — forked from davepoon/gist:4371622
Added the .gitignore, and refresh the file index so the files get ignored properly.
git rm -r --cached .
git add .
git commit -m ".gitignore is now working"