Skip to content

Instantly share code, notes, and snippets.

😃
I may be slow to respond.

Hemanth B hemanth22

😃
I may be slow to respond.
Block or report user

Report or block hemanth22

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
@hemanth22
hemanth22 / ChromeDriverTest.java
Created Jan 4, 2020 — forked from marcinfkns/ChromeDriverTest.java
Selenium + Firefoxes and other browsers
View ChromeDriverTest.java
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.chrome.ChromeDriver;
import org.openqa.selenium.chrome.ChromeOptions;
public class ChromeDriverTest {
// Configuration (CHANGE IT!):
private static final String ChromeDriverPath = "/Users/marcinf/bin/chromedriver/2.35/chromedriver"; // https://chromedriver.storage.googleapis.com/2.35/chromedriver_mac64.zip
private static final String ChromePath = "/Applications/Google Chrome.app/Contents/MacOS/Google Chrome";
View sqa017
<properties>
<surefire.version>2.21.0</surefire.version>
<compiler.version>3.7.0</compiler.version>
<failsafe.version>2.21.0</failsafe.version>
<java.version>1.8</java.version>
<selenium.version>3.141.59</selenium.version>
<testng.version>6.14.3</testng.version>
<hamcrest.version>1.3</hamcrest.version>
<uncommons.version>1.1.4</uncommons.version>
<isHeadless>true</isHeadless>
View headless-testing.pp
class apci_devel::headless_testing {
include java
package { "xvfb":
ensure => present,
}
package { "firefox":
ensure => present,
}
@hemanth22
hemanth22 / selenium-install
Last active Jan 4, 2020 — forked from kaze/selenium-install
How to install Chrome, ChromeDriver and Selenium on CentOS. Plus a sample scraping script.
View selenium-install
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@hemanth22
hemanth22 / install.txt
Created Jan 3, 2020 — forked from xiaol825/install.txt
How to install Chrome, ChromeDriver and Selenium on CentOS. Plus a sample scraping script.
View install.txt
#!/usr/bin/env bash
# https://developers.supportbee.com/blog/setting-up-cucumber-to-run-with-Chrome-on-Linux/
# https://gist.github.com/curtismcmullan/7be1a8c1c841a9d8db2c
# http://stackoverflow.com/questions/10792403/how-do-i-get-chrome-working-with-selenium-using-php-webdriver
# http://stackoverflow.com/questions/26133486/how-to-specify-binary-path-for-remote-chromedriver-in-codeception
# http://stackoverflow.com/questions/40262682/how-to-run-selenium-3-x-with-chrome-driver-through-terminal
# http://askubuntu.com/questions/760085/how-do-you-install-google-chrome-on-ubuntu-16-04
# Versions
CHROME_DRIVER_VERSION=`curl -sS chromedriver.storage.googleapis.com/LATEST_RELEASE`
@hemanth22
hemanth22 / pruge_signal.ps1
Created Dec 20, 2019
powershell script to purge files
View pruge_signal.ps1
#!/usr/bin/pwsh
remove-item * -include *.dat
@hemanth22
hemanth22 / ansible-summary.md
Created Nov 23, 2019 — forked from andreicristianpetcu/ansible-summary.md
This is an ANSIBLE Cheat Sheet from Jon Warbrick
View ansible-summary.md

An Ansible summary

Jon Warbrick, July 2014, V3.2 (for Ansible 1.7)

Configuration file

intro_configuration.html

First one found from of

@hemanth22
hemanth22 / ansible-aws.md
Created Nov 22, 2019 — forked from diegopacheco/ansible-aws.md
How to Install Ansible on Amazon Linux / CentOS?
View ansible-aws.md
sudo su
yum update
yum install -y git
cd /usr/local/src
yum -y install git python-jinja2 python-paramiko PyYAML make MySQL-python
git clone git://github.com/ansible/ansible.git
cd ansible
git submodule update --init --recursive
make install
View get_ec2_tags.sh
#!/bin/bash
aws ec2 describe-tags --filters "Name=resource-id,Values=${instance_id}"
@hemanth22
hemanth22 / aws_create_site.yml
Created Nov 20, 2019 — forked from ruzickap/aws_create_site.yml
Ansible playbook which creates instances and tag volumes
View aws_create_site.yml
---
- name: Create Instance in AWS
hosts: localhost
connection: local
gather_facts: false
vars:
aws_access_key: "xxxxxx"
aws_secret_key: "xxxxxx"
security_token: "xxxxxx"
You can’t perform that action at this time.