Skip to content

Instantly share code, notes, and snippets.

Ildar Manzhikov manzhikov

Block or report user

Report or block manzhikov

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
manzhikov /
Created Mar 16, 2020 — forked from tomas-stefano/
Capybara cheatsheet

Capybara Actions

# Anchor
click_link 'Save'

# Button
click_button 'awesome'

# Both above
manzhikov / capybara_fill_stripe_elements.rb
Last active Aug 26, 2019 — forked from iloveitaly/capybara_fill_stripe_elements.rb
Fill in a Stripe Elements ( credit card field using capybara
View capybara_fill_stripe_elements.rb
def fill_stripe_elements(card: '4242424242424242', expiry: '1234', cvc: '123', postal: '12345')
using_wait_time(10) {
frame = find('#card-element > div > iframe')
within_frame(frame) do
card.to_s.chars.each do |piece|
find_field('exp-date').send_keys expiry
find_field('cvc').send_keys cvc
manzhikov / bitbucket-pipelines.yml
Created Mar 2, 2019 — forked from tstrohmeier/bitbucket-pipelines.yml
AWS ECS: Script for creating a new revision of a task definition and update a service
View bitbucket-pipelines.yml
# enable Docker for your repository
docker: true
- step:
# python image with aws-cli installed
manzhikov /
Created Nov 29, 2017 — forked from YKCzoli/
Step through of converting shapefile to geojson with qgis.

Converting shapefiles to geojson


Get the data

We will use the Electoral District and Polling Division shapefiles found on the Elections Ontario site:

manzhikov / snail.rb
Created Aug 19, 2017 — forked from dliberalesso/snail.rb
Sort an array of arrays like a snail (clockwise spiral sorting) with Ruby.
View snail.rb
def snail(array)
result =
n = array.length
runs = n.downto(0).each_cons(2).to_a.flatten
delta = [[1,0], [0,1], [-1,0], [0,-1]].cycle
x, y = -1, 0
for run in runs
dx,dy =
run.times do |i|
x += dx
manzhikov / nginx-tls.conf
Created Jul 26, 2017 — forked from gavinhungry/nginx-tls.conf
Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
View nginx-tls.conf
# Name: nginx-tls.conf
# Auth: Gavin Lloyd <>
# Desc: Nginx SSL/TLS configuration for "A+" Qualys SSL Labs rating
# Enables SPDY, PFS, HSTS and OCSP stapling. Configuration options not related
# to SSL/TLS are omitted here.
# Example:
manzhikov /
Created Jun 6, 2017 — forked from Vestride/
Encoding video for the web

Encoding Video


Install FFmpeg with homebrew. You'll need to install it with a couple flags for webm and the AAC audio codec.

brew install ffmpeg --with-libvpx --with-libvorbis --with-fdk-aacc --with-opus
View 2.3.3
build_package_patch_ruby_railsexpress() {
fetch_git rvm-patchsets git:// master
for p in rvm-patchsets/patches/ruby/2.3.3/railsexpress/* ; do
patch -p1 < $p
install_package "openssl-1.0.2d" "" mac_openssl --if has_broken_mac_openssl
install_package "ruby-2.3.3" "" patch_ruby_railsexpress ldflags_dirs standard verify_openssl
manzhikov / install-comodo-ssl-cert-for-nginx.rst
Created Jun 30, 2016 — forked from bradmontgomery/install-comodo-ssl-cert-for-nginx.rst
Steps to install a Comodo PositiveSSL certificate with Nginx.
View install-comodo-ssl-cert-for-nginx.rst

Setting up a SSL Cert from Comodo

I use as a registrar, and they resale SSL Certs from a number of other companies, including Comodo.

These are the steps I went through to set up an SSL cert.

Purchase the cert

manzhikov /
Created Apr 30, 2016 — forked from ChuckJHardy/
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

Create a Droplet

SSH into Root

$ ssh root@

Change Root Password

You can’t perform that action at this time.