Version: 1.9.8
Platform: x86_64
First, install or update to the latest system software.
sudo apt-get update
sudo apt-get install build-essential chrpath libssl-dev libxft-dev
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<title>Dumber Gist</title> | |
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1.0, user-scalable=no"> | |
</head> | |
<!-- | |
Dumber Gist uses dumber bundler, the default bundle file | |
is /dist/entry-bundle.js. |
#!/usr/bin/env bash | |
# Author: Kenta Togashi | |
INTERVAL=5 | |
COUNT=0 | |
while : | |
do | |
sleep $INTERVAL | |
ZOMBIE_FIREFOX_PID=`ps aux | grep 'firefox' | grep '[-]silent' | awk '{print $2}'` |
require_once __DIR__ . "/vendor/autoload.php"; | |
use \Facebook\WebDriver\Remote\WebDriverCapabilityType; | |
use \Facebook\WebDriver\Remote\RemoteWebDriver; | |
use \Facebook\WebDriver\WebDriverDimension; | |
$host = '127.0.0.1:8910'; | |
$capabilities = array( | |
WebDriverCapabilityType::BROWSER_NAME => 'phantomjs', | |
'phantomjs.page.settings.userAgent' => 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:25.0) Gecko/20100101 Firefox/25.0', |