Skip to content

Instantly share code, notes, and snippets.

View miklblitz's full-sized avatar
:octocat:
I may be slow to respond.

Михман miklblitz

:octocat:
I may be slow to respond.
  • Cl
  • Russia, Samara
View GitHub Profile
@qcam
qcam / capybara-wait-for-ajax.md
Created May 3, 2014 00:41
Wait for AJAX in Capybara

Wait for AJAX Capybara

Add wait_for_ajax to your helper

def wait_for_ajax
  Timeout.timeout(Capybara.default_wait_time) do
    loop do
      active = page.evaluate_script('jQuery.active')
 break if active == 0
@mkhuda
mkhuda / sidekiq.service
Last active June 28, 2022 23:15
Sidekiq service auto start for Ubuntu 16.04 using Systemd
#
# Sidekiq auto start using systemd unit file for Ubuntu 16.04
#
# Put this in /lib/systemd/system (Ubuntu).
# Run:
# 1. systemctl enable sidekiq (to enable sidekiq service)
# 2. systemctl {start,stop,restart} sidekiq (to start sidekiq service)
#
# This file corresponds to a single Sidekiq process. Add multiple copies
# to run multiple processes (sidekiq-1, sidekiq-2, etc).