Skip to content

Instantly share code, notes, and snippets.

View sathiyaseelan's full-sized avatar

sathya sathiyaseelan

  • Singapore
View GitHub Profile
@sathiyaseelan
sathiyaseelan / Selenium_with_headless_chrome.md
Created November 22, 2017 04:29 — forked from sathya-moneysmart/Selenium_with_headless_chrome.md
Capybara Setup for selenium with headless chrome

Setup for Capybara selenium with headless chrome

This gist contains all you need to setup capybara for selenium with headless chrome.

  1. Add these gems to the Gemfile under test group
  gem 'capybara'
  gem 'chromedriver-helper
  gem 'selenium-webdriver'
@sathiyaseelan
sathiyaseelan / pre-commit
Created February 20, 2017 18:54 — forked from wacko/pre-commit
Git hook to avoid commit debug lines (binding.pry console.log debugger...)
#!/usr/bin/env ruby
# Validates that you don't commit forbidden keywords to the repo
# You can skip this checking with 'git commit --no-verify'
exit 0 if ARGV.include?('--no-verify')
# Update this list with your own forbidden keywords
KEYWORDS = %w(binding.pry console.log debugger)
def red(text) "\033[31m#{text}\033[0m"; end
@sathiyaseelan
sathiyaseelan / pre-commit
Created February 20, 2017 18:54 — forked from wacko/pre-commit
Git hook to avoid commit debug lines (binding.pry console.log debugger...)
#!/usr/bin/env ruby
# Validates that you don't commit forbidden keywords to the repo
# You can skip this checking with 'git commit --no-verify'
exit 0 if ARGV.include?('--no-verify')
# Update this list with your own forbidden keywords
KEYWORDS = %w(binding.pry console.log debugger)
def red(text) "\033[31m#{text}\033[0m"; end