Skip to content

Instantly share code, notes, and snippets.

View Bablzz's full-sized avatar
💭
Quality is remembered long after the price is forgotten (Sir Frederick Royce)

Maksim Sokolnikov Bablzz

💭
Quality is remembered long after the price is forgotten (Sir Frederick Royce)
View GitHub Profile
java -jar selenium_server_standalone_version.jar -role hub
java -Dwebdriver.ie.driver=IEDriverServer.exe -jar selenium-server-standalone-version.jar -role webdriver -hub http://localhost:4444/grid/register -port 5558 -browser browserName=iexplorer
module.exports = function (config) {
var webdriverConfig = {
hostname: IP удаленной машины, на котором запущен hub,
port: Port удаленной машины, на котором запущен hub
};
config.set({
hostname: IP локальной машины, на которой запускаются тесты, именно IP, а не localhost,
basePath: './',
pip install passlib[bcrypt]
from passlib.hash
import sha512_crypt;
import getpass;
print sha512_crypt.using(rounds=1000).hash(getpass.getpass())
- hosts: host1
vars:
# created with:
# python -c "from passlib.hash import sha512_crypt; import getpass; print sha512_crypt.using(rounds=1000).hash(getpass.getpass())"
password: "$6$rounds=1000$7dsUf2EPFiC7m4FV$RM9lxRRaannAAmOfRbjvk9V8OSENyFxBaMkOFnIvjeECw39QLCXfFvJlRqGhypDjG8RKOjwp1ufJJD3JZSpu2."
user: "test_user"
tasks:
- name: "Create group"
group:
ALTER SYSTEM SET fixed_date = ‘2009-07-14-10:00:00?;
To unset:
ALTER SYSTEM SET FIXED_DATE=NONE;
config.vm.provision "shell", inline: <<-SHELL
sudo apt-get update
sudo apt-get install -y software-properties-common
sudo apt-add-repository ppa:ansible/ansible
sudo apt-get update
sudo apt-get install -y ansible zip unzip
SHELL
echo "##teamcity[addBuildTag '%build%']"
def check(arr)
counter = 0
arr.each do |key|
if key == '('
counter += 1
else
counter -= 1
end
end