This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private function converteData($value) | |
{ | |
if($value != "" && preg_match('/^(?:\s*(<>|<=|>=|<|>|=))?(.*)$/',$value,$matches)) | |
return $matches[1] . date("Y-m-d",strtotime($matches[2])); | |
else | |
return $value; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sudo mv /usr/lib/libX11.so.6 /usr/lib/libX11.so.6.old | |
sudo ln -s /usr/lib64/libX11.so.6.3.0 /usr/lib/libX11.so.6 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.remote.remote_connection import RemoteConnection | |
from selenium.webdriver.remote.errorhandler import ErrorHandler | |
from selenium.webdriver.remote.command import Command | |
class PersistentWebdriver (webdriver.Remote): | |
def __init__(self, session_id=None, browser_name=''): | |
command_executor='http://localhost:4444/wd/hub' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":100 -screen 0 1600x1200x24 -auth /etc/conf.d/Xvfb.cfg -nolisten tcp" | |
PIDFILE=/var/run/Xvfb.pid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ head -1000 /etc/conf.d/xvfb* /etc/init.d/{xvfb,selenium-daemon} | |
==> /etc/conf.d/xvfb <== | |
XVFB=/usr/bin/Xvfb | |
XVFBARGS=":90 -auth /etc/conf.d/xvfb.cfg -nolisten tcp" | |
PIDFILE=/var/run/xvfb.pid | |
==> /etc/conf.d/xvfb.cfg <== | |
localhost | |
==> /etc/init.d/xvfb <== |
NewerOlder