Skip to content

Instantly share code, notes, and snippets.

View omar331's full-sized avatar
🏠
Working from home

Omar Alves omar331

🏠
Working from home
View GitHub Profile
@omar331
omar331 / index.html
Created April 2, 2020 17:42
Minha app sensacional
<!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.
@omar331
omar331 / kill_zombie_firefox
Created December 16, 2016 15:55 — forked from kentatogashi/kill_zombie_firefox
Kill zombie process of firefox during the time that you execute automation test through the selenium web driver and the firefox browser
#!/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}'`
@omar331
omar331 / 00.howto_install_phantomjs.md
Created November 4, 2015 13:11 — forked from julionc/00.howto_install_phantomjs.md
How to install PhantomJS on Debian/Ubuntu

How to install PhantomJS on Ubuntu

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
@omar331
omar331 / gist:2f6050a596297c9c560f
Created October 21, 2015 14:38
Conectar webdriver com phantomjs
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',