Skip to content

Instantly share code, notes, and snippets.

@dachi-gh
dachi-gh / script_execute fail
Created September 8, 2013 16:53
selenium-webdriver threaded script execution fails
puts '--start'
profile = Selenium::WebDriver::Firefox::Profile.new
driver = Selenium::WebDriver.for :firefox, :profile => profile
timeout = Thread.new(Time.now + 7) do |end_time|
while Time.now < end_time
Thread.pass
end
puts '--execute'
@dachi-gh
dachi-gh / dovecot-sql.conf.ext
Created February 7, 2014 14:54
Integrating PostfixAdmin with Postfix + Dovecot Personal SQL Auth with SASL
driver = mysql
connect = host=127.0.0.1 dbname=postfixadmin user=postfixadmin password=MYPASS
default_pass_scheme = SHA512-CRYPT
password_query = SELECT username, password FROM mailbox WHERE username='%u'