Skip to content

Instantly share code, notes, and snippets.

View shivam201's full-sized avatar

Shivam Maralay shivam201

  • Microsoft
  • India
View GitHub Profile
/**
* *************** 1 - Function Purpose - To Highlight The Webelement *************
* @param ele - WebElement
* @param d - Driver
* @param Color - Color by which Element which need to be highlight.
*/
public static void Highlight_Element(WebElement ele,WebDriver d , String Color)
{
JavascriptExecutor js=(JavascriptExecutor) d;
String command = "arguments[0].style.border='4px groove "+Color+"'";
org.apache.commons.logging-1.1.1.jar
REST -
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package webserviceclient;
@shivam201
shivam201 / Docker Setup & Linux Commands
Last active March 8, 2019 07:46
Docker and Ubuntu commands
List all running process.
sudo netstat -peanut
Install VIM
sudo apt install vim
Apache port configure and restart
1. sudo vim/etc/apache2/ports.conf -> port update
2. sudo service apache2 restart
@shivam201
shivam201 / Jmeter Maven
Last active May 17, 2021 05:35
Jmeter Tips and Tricks
**************** How to run Java Maven project in jmeter *************
Eclipse Side -
create a maven project use type - maven-archetype-quickstart
Add all the relevant dependency
Execute Maven from Command line [Build and generate target]
Run the below command to generate main jar and its dependency.
- mvn -U clean verify
- mvn clean install -U dependency:copy-dependencies
Node JS -
Express Js - light framework to create Rest Service.
********************************************************************************************
Server.js [Express.JS] -
var express = require('express');
var app = express();
app.get('/wines', function(req, res) {
res.header("Access-Control-Allow-Origin", "*");
res.header("Access-Control-Allow-Headers", "Origin, X-Requested-With, Content-Type, Accept");
@shivam201
shivam201 / JS and HTML Snipets
Last active December 30, 2021 11:42
HTML ShortCut and Javascript Snipets
Page refresh after 5 sec :-
<meta http-equiv="refresh" content="5"/> <!-- 5 sec interval-->
<h1>Page refersh in every 5 seconds...</h1>
HTML TextArea New Line
&#13&#10
Replace Example
$("#allfeestext").val().replace("Class "+$("#classfeedropdownid").val() + " - 10 Thousand/Lakh/Crore Rupees","Class "+$("#classfeedropdownid").val() + " - "+$("#feesid").val() + $("#feeunit option:selected").text())
@shivam201
shivam201 / SendMSG.java
Last active October 1, 2018 10:34
message sending java code Way2sms
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
/**
*
* @author ShivamMaralay
*/
@shivam201
shivam201 / Browser
Last active September 25, 2018 05:11
Source - http://www.oldversion.com/linux/
Chrome
- https://google-chrome-portable.en.uptodown.com/windows/old
- https://www.slimjet.com/chrome/google-chrome-old-version.php
Safari
UC Browser
**** Outlook Monitoring ****
Set myOlApp = CreateObject("Outlook.Application")
Set myOlNameSpace = myOlApp.GetNamespace("MAPI")
Set objFolder = myOlNameSpace.GetDefaultFolder(6)
Set itms = objfolder.Items
ItemCount = itms.Count
UnReadItemCount = objFolder.UnReadItemCount
MsgBox "There is total " & ItemCount & " messages in your mailbox."
@shivam201
shivam201 / Data
Last active February 19, 2019 04:20
hosting Plans Links
https://www.hostingcharges.in/hosting-coupons/godaddy
https://www.hostingcharges.in/hosting-coupons/hostsoch
https://www.hostsoch.in/linux-hosting.html