How to set up a Headless Selenium Testing environment for CentOS 6.3.
Follow these steps to set up a CentOS 6.3 host to run headless Selenium tests with Firefox.
#!/bin/sh | |
# Update latest epel | |
wget http://dl.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm | |
sudo rpm -Uvh epel-release-6-8.noarch.rpm | |
# Download and build mosh | |
sudo yum -y install rpm-build rpmdevtools protobuf-compiler protobuf-devel libutempter-devel zlib-devel ncurses-devel openssh-clients perl-IO-Tty openssl-devel gcc gcc-c++ | |
rpmdev-setuptree | |
cd ~/rpmbuild/SOURCES |
set lock-after-time 300 |
Using Python's built-in defaultdict we can easily define a tree data structure:
def tree(): return defaultdict(tree)
That's it!
# the following two lines give a two-line status, with the current window highlighted | |
hardstatus alwayslastline | |
hardstatus string '%{= kG}[%{G}%H%? %1`%?%{g}][%= %{= kw}%-w%{+b yk} %n*%t%?(%u)%? %{-}%+w %=%{g}][%{B}%m/%d %{W}%C%A%{g}]' | |
# huge scrollback buffer | |
defscrollback 5000 | |
# no welcome message | |
startup_message off |
http://data.house.sina.com.cn/ip/app_addr.php?ip= | |
http://php.weather.sina.com.cn/xml.php?city=&password=DJOYnieT8234jlsK&day= | |
http://vip.stock.finance.sina.com.cn/quotes_service/view/HisenseSuggest.php?type=1,2&key= | |
http://vip.stock.finance.sina.com.cn/quotes_service/view/HisenseABQuotes.php?id= | |
http://image2.sinajs.cn/newchart/min/n/%s.gif | |
http://image2.sinajs.cn/newchart/daily/n/%s.gif | |
http://image2.sinajs.cn/newchart/weekly/n/%s.gif | |
http://image2.sinajs.cn/newchart/monthly/n/%s.gif | |
http://tvlist.dnethome.net:8088/cgi-bin/epg_index.fcgi?action=smarttv_ad&id=12 | |
http://tvlist.dnethome.net:8088/cgi-bin/epg_index.fcgi?action=smarttv_ad&id=12 |
#!/usr/bin/python | |
# All SSH libraries for Python are junk (2011-10-13). | |
# Too low-level (libssh2), too buggy (paramiko), too complicated | |
# (both), too poor in features (no use of the agent, for instance) | |
# Here is the right solution today: | |
import subprocess | |
import sys |
#step 1 | |
yum -y install python-setuptools | |
#step 2 | |
rpm -Uhv http://apt.sw.be/redhat/el5/en/i386/rpmforge/RPMS/rpmforge-release-0.3.6-1.el5.rf.i386.rpm | |
# or | |
# rpm -Uhv http://apt.sw.be/redhat/el5/en/x86_64/rpmforge/RPMS//rpmforge-release-0.3.6-1.el5.rf.x86_64.rpm | |
#step 3 | |
# if you using centOS 6.2 enable rpmforge-extras (enabled =1) |
In Gitlab 2.6 you must edit the following files in order to send messages through a Gmail account (also applicable to Google Apps accounts).
config.action_mailer.delivery_method = :smtp
config.action_mailer.perform_deliveries = true
config.action_mailer.raise_delivery_errors = true