Name: Malo Skrylevo
Birth date: 1977/07/30
Place of birth: Moscow
Phone: +7-905-524-5451
# origin is here: http://stackoverflow.com/questions/11784109/detecting-operating-systems-in-ruby | |
require 'rbconfig' | |
module SpecModule | |
def self.os | |
@os ||= ( | |
host_os = RbConfig::CONFIG['host_os'] | |
case host_os | |
when /mswin|msys|mingw|cygwin|bccwin|wince|emc/ | |
:windows |
#!/bin/bash | |
sharp_radius=5 | |
sharp_sigma=$(dc <<< 4k${sharp_radius}vp) | |
sharp_amount=1.2 | |
sharp_threshold=0.003 | |
a1=0 | |
b1=0 | |
c1=1.2 | |
d1=-0.1 |
#!/bin/sh | |
# (c) Malo Skrylevo | |
set -x | |
#service $IPTABLES restart | |
# interfaces IF0 - external LAN iface, IF1,IF2 - internal LAN ifaces | |
IF0=enp2s0 |
=Navigating= | |
visit('/projects') | |
visit(post_comments_path(post)) | |
=Clicking links and buttons= | |
click_link('id-of-link') | |
click_link('Link Text') | |
click_button('Save') | |
click('Link Text') # Click either a link or a button | |
click('Button Value') |
function FindProxyForURL(url, host) { | |
host = host.toLowerCase(); | |
if (dnsDomainIs(host, "linkedin.com") || | |
dnsDomainIs(host, "rutracker.org") || | |
dnsDomainIs(host, "ipleak.net") || | |
dnsDomainIs(host, "telegram.org") || | |
dnsDomainIs(host, "t.me") || | |
dnsDomainIs(host, "telegra.ph") || | |
dnsDomainIs(host, "psb4ukr.org") || | |
dnsDomainIs(host, "plus.pl") || |