Skip to content

Instantly share code, notes, and snippets.

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
View gist:c71b9a48af5fe34149fdb027d9737a70
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
View gist:a3c826b596444241b3127d2c14338057
module.exports = function (config) {
var webdriverConfig = {
hostname: IP удаленной машины, на котором запущен hub,
port: Port удаленной машины, на котором запущен hub
};
config.set({
hostname: IP локальной машины, на которой запускаются тесты, именно IP, а не localhost,
basePath: './',
View gist:9016013bbbaa662f7b1da2a5a25668ad
from passlib.hash
import sha512_crypt;
import getpass;
print sha512_crypt.using(rounds=1000).hash(getpass.getpass())
View gist:893f0b68925400e2ea578ffa3a37ba26
- 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:
View sql
ALTER SYSTEM SET fixed_date = ‘2009-07-14-10:00:00?;
To unset:
ALTER SYSTEM SET FIXED_DATE=NONE;
View gist:1c70add3f100c45a239369ad6e621cf2
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
View sequence
def check(arr)
counter = 0
arr.each do |key|
if key == '('
counter += 1
else
counter -= 1
end
end