Skip to content

Instantly share code, notes, and snippets.

View acbharat's full-sized avatar

Bharath Kumar Chandraraja acbharat

View GitHub Profile
@acbharat
acbharat / Selenium Cheat Sheet.md
Created April 18, 2017 06:30 — forked from kenrett/Selenium Cheat Sheet.md
Selenium Cheat Sheet - Ruby

#Getting Started

##Webpage:

<html>
<head>
    <title>Testing with Ruby and Selenium WebDriver</title>
</head>
 
<body bgcolor="antiquewhite">

API workthough

  1. Open a browser

    # start an instance of firefox with selenium-webdriver
    driver = Selenium::WebDriver.for :firefox
    # :chrome -> chrome
    # :ie     -> iexplore
    
  • Go to a specified URL
@acbharat
acbharat / Git_commands.md
Last active May 7, 2019 14:17 — forked from prashanth-sams/Git_commands.md
Git work-around for newbies

Git clone, add, commit, pull, push

git clone https://.....git
git clone -b <branchname> https://.....git
git status -s
git add README.md | git add lib/* log/* | git add .
git rm README.rdoc
git status -s commit -m "updated readme"
git pull origin master
@acbharat
acbharat / 1_kubernetes_on_macOS.md
Created June 20, 2018 21:01 — forked from kevin-smets/1_kubernetes_on_macOS.md
Local Kubernetes setup on macOS with minikube on VirtualBox and local Docker registry

Requirements

Minikube requires that VT-x/AMD-v virtualization is enabled in BIOS. To check that this is enabled on OSX / macOS run:

sysctl -a | grep machdep.cpu.features | grep VMX

If there's output, you're good!

Prerequisites

@acbharat
acbharat / Understanding Ansible
Last active February 27, 2019 15:47 — forked from MrNice/blogpost.md
Explain how to think about ansible and how to use it
# Ansible
## Understanding Ansible
Ansible is a powerful, simple, and easy to use tool for managing computers. It is most often used to update programs and configuration on dozens of servers at once, but the abstractions are the same whether you're managing one computer or a hundred.
Ansible can even do "fun" things like change the desktop photo or backup personal files to the cloud. It can take a while to learn how to use Ansible because it has an extensive terminology, but once you understand the why and the how of Ansible, its power is readily apparent.
Ansible's power comes from its simplicity. Under the hood, Ansible is just a domain specific language (DSL) for a task runner for a secure shell (ssh). You write ansible yaml (.yml) files which describe the tasks which must run to turn plain old / virtualized / cloud computers into production ready server-beasts. These tasks, in turn, have easy to understand names like "copy", "file", "command", "ping", or "lineinfile". Each of these turns into shell comma
@acbharat
acbharat / rest-basics.md
Created July 27, 2018 18:52 — forked from alexserver/rest-basics.md
REST basics, Theory, Principles, and examples.

RESTful API know-how

Motivation

I place my learning process in this document with 2 motives:

  1. To have a quick guide whenever I lost the track of knowledge.
  2. To share the knowledge with anyone wants to learn RESTful APIs

1. Before, some theory

Command to retrieve password after docker installation :
The password was saved to /var/jenkins_home/secrets/initialAdminPassword.
You can use
CMD: docker exec <container> cat /var/jenkins_home/secrets/initialAdminPassword
where <container> is your container id or name.
@acbharat
acbharat / ECS
Last active January 24, 2019 23:24
A.EC2 Instance SETUP:
Launch EC2 Instances
--IAM Role
ecsInstanceRole
--- Security group
Allow SSH,HTTP and Lb
-- User data
. /etc/ecs/ecs.config
-- Key pair
SSH into instance
https://bitnami.com/stack/sonarqube/cloud/aws
Install SonarQube plug-in on Jenkins build server no matter in local(or)AWS,
Application team needs to have access to SonarQube application dashboard.
From CI/CD perspective, we installed and configured Sonar plug-in in Jenkins build server by passing below parameters on properties file to run code analysis for every build,