Skip to content

Instantly share code, notes, and snippets.

View venkata-qa's full-sized avatar

Venkata Koripalli venkata-qa

  • QAWORKFORCE LTD
  • Leeds, United Kingdom
View GitHub Profile
@venkata-qa
venkata-qa / gpg-key-migration.md
Created August 16, 2023 09:44 — forked from angela-d/gpg-key-migration.md
Move GPG Keys from One Machine to Another

Migrate GPG Keys from One Workstation to Another

Replace [your key] with your key ID

To obtain your key ID

gpg --list-secret-keys --keyid-format LONG

Which returns something like

@venkata-qa
venkata-qa / CustomSimulation.scala
Created April 18, 2023 23:23 — forked from mburrows02/CustomSimulation.scala
Gatling simulation with dynamic scenarios and injection profiles
package test
import io.gatling.core.Predef._
import io.gatling.core.structure.PopulatedScenarioBuilder
import io.gatling.core.controller.inject.InjectionStep
import io.gatling.http.Predef._
import io.gatling.jdbc.Predef._
import scala.concurrent.duration._
import scala.collection.mutable.ArraySeq
import org.json.JSONArray;
import org.json.JSONObject;
@venkata-qa
venkata-qa / README.md
Created February 1, 2022 17:17 — forked from jmruc/README.md
Generating pom.xml from gradle

To generate a pom.xml file just run gradle writeNewPom

If you want to generate it as pom.xml in the root of the project, replace writeTo("$buildDir/newpom.xml") with writeTo("pom.xml")

@venkata-qa
venkata-qa / curl-get-status-code-and-response-body.sh
Last active January 6, 2021 22:11 — forked from maxclaus/curl-get-status-code-and-response-body.sh
Curl - Get status code and response body
GET_USERS_URL="https://reqres.in/api/users?page=2"
# Store the status code and the response
HTTP_RESPONSE=$(curl --silent --write-out "HTTPSTATUS:%{http_code}" -X POST $GET_USERS_URL)
# Extract the response body
HTTP_BODY=$(echo $HTTP_RESPONSE | sed -e 's/HTTPSTATUS\:.*//g')
# Extract the status code
HTTP_STATUS=$(echo $HTTP_RESPONSE | tr -d '\n' | sed -e 's/.*HTTPSTATUS://')