Skip to content

Instantly share code, notes, and snippets.

View bkone's full-sized avatar

Bharath Khambadkone bkone

  • Princeton Junction, NJ
View GitHub Profile
@bkone
bkone / nginx.conf
Created November 21, 2020 02:05 — forked from plentz/nginx.conf
Best nginx configuration for improved security(and performance). Complete blog post here http://tautt.com/best-nginx-configuration-for-security/
# to generate your dhparam.pem file, run in the terminal
openssl dhparam -out /etc/nginx/ssl/dhparam.pem 2048
@bkone
bkone / generateKey.cmd
Last active July 18, 2016 15:24
Enable SSL in Jboss
openssl genrsa -out my.domain.key 2048
@bkone
bkone / url.rb
Created December 10, 2015 19:08
when /the duckduckgo home page/i
base_url="http://duckduckgo.com"
Feature: Search
In order to make sure that the search feature is working
As a user I will search for a search term and expect to see valid results
@desktop
Scenario: search for modus create
Given I am on the duckduckgo home page
Then I must see the page title "DuckDuckGo"
Given I fill in the text field "q" with "Modus Create"
And I click the "S" button
@bkone
bkone / add-article.xml
Last active October 22, 2019 12:12
Jmeter Correlation example
<?xml version="1.0" encoding="UTF-8"?>
<jmeterTestPlan version="1.2" properties="2.8" jmeter="2.13 r1665067">
<hashTree>
<TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" enabled="true">
<stringProp name="TestPlan.comments"></stringProp>
<boolProp name="TestPlan.functional_mode">false</boolProp>
<boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
<elementProp name="TestPlan.user_defined_variables" elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" testname="User Defined Variables" enabled="true">
<collectionProp name="Arguments.arguments"/>
</elementProp>
@bkone
bkone / README.md
Last active August 29, 2015 14:26 — forked from dduvnjak/README.md
A Ruby script which spins up a new Ubuntu instance on EC2 and installs java, ant, python and perl on it (all done via Fog). It reads parameters from the config file, but they're overwritable with passed arguments. Can also terminate instances and attach EBS volumes.

Usage:

ruby aws.rb launch [--region region --aws-key aws_key --aws-secret aws_secret --security-group security_group --key-pair key_pair --key-path key_path --ami-id ami_id--flavor-id flavor_id ]  

ruby aws.rb terminate [--region region --aws-key aws_key --aws-secret aws_secret] --instance-id instance_id  

ruby aws.rb attach [--region region --aws-key aws_key --aws-secret aws_secret] --instance-id instance_id --volume-id volume_id
No arguments provided
[INF] Capturing theme image
[DBG] running script at /opt/Sencha/Cmd/5.0.0.160/screenshot-runner.js
[DBG] using path /opt/Sencha/Cmd/5.0.0.160/bin/linux-x64/phantomjs:/opt/Sencha/Cmd/5.0.0.160/bin/linux-x64/phantomjs/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
[DBG] enabling executable flag on /opt/Sencha/Cmd/5.0.0.160/bin/linux-x64/phantomjs/phantomjs
[DBG] executable located at /opt/Sencha/Cmd/5.0.0.160/bin/linux-x64/phantomjs/phantomjs
[DBG] using working directory .
[ERR]
[ERR] BUILD FAILED
[ERR] com.sencha.exceptions.ExProcess: Failed creating background process
[ERR] at com.sencha.util.ExternalProcess.start(ExternalProcess.java:45)
Given(/^I am on the Ticket home page$/) do
@browser.goto("http://dev.sencha.com/extjs/5.0.0/examples/ticket-app/index.html")
end
Given(/^I log in the application$/) do
Watir::Wait.until { @browser.text.include? 'Login - Ticket App' }
@browser.text_field(:name,"password").set "blah"
@browser.span(:text,"Login").click
end
Given(/^I am on the Ticket home page$/) do
pending # express the regexp above with the code you wish you had
end
Given(/^I log in the application$/) do
pending # express the regexp above with the code you wish you had
end
Given(/^I wait for the "(.*?)" text to be displayed$/) do |arg1|
pending # express the regexp above with the code you wish you had
@bkone
bkone / extjs5.feature
Last active August 29, 2015 14:04
extjs5.feature
Feature: Sample Extjs5 BDD test
@desktop
Scenario: Edit a Project Member
Given I am on the Ticket home page
Then I must see the page title "Ticket"
Given I log in the application
And I wait for the "Project Summary - SDK" text to be displayed
Then I must see the text "Ticket Status Summary" displayed
And I must see the text "Project Members - Lead: Don" displayed