Skip to content

Instantly share code, notes, and snippets.

@qadatta
qadatta / gist:15124fbc34e3cbc15eb1e8fbafd4bef3
Created December 8, 2021 10:26 — forked from djangofan/gist:2766613
Using RestAssured to do a SOAP web service request
package test.ra;
import static com.jayway.restassured.RestAssured.*;
import static com.jayway.restassured.path.xml.XmlPath.*;
import java.util.HashMap;
import java.util.Map;
public class SOAPDictionary {
@qadatta
qadatta / cheerioExamples.js
Created September 28, 2021 17:00 — forked from odevodyssey/cheerioExamples.js
Examples of Cheerio.js methods and their usage
const cheerio = require('cheerio')
const responseBody = "<?xml version='1.0' encoding='us-ascii'?> \
<!-- A SAMPLE set of slides --> \
<soap-env:envelope> \
<soap-env:header> \
<wsse:security xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\">Assertion Here</wsse:security> \
</soap-env:header> \
<soap-env:body> \
<slideshow \
@qadatta
qadatta / .gitignore Java
Created January 7, 2020 17:32 — forked from dedunumax/.gitignore Java
A complete .gitignore file for Java
##############################
## Java
##############################
.mtj.tmp/
*.class
*.jar
*.war
*.ear
*.nar
hs_err_pid*
@qadatta
qadatta / json-schema.js
Created December 5, 2019 12:52 — forked from JamesMessinger/json-schema.js
Using JSON Schema in Postman
// Define the JSON Schema
const customerSchema = {
"required": ["id"],
"properties": {
"id": {
"type": "integer",
"minimum": 100,
"maximum": 1000
},
"name": {
@qadatta
qadatta / example.md
Created December 3, 2019 13:15 — forked from sdnts/example.md
Postman pm.sendRequest example

To send a request via the sandbox, you can use pm.sendRequest.

pm.test("Status code is 200", function () {
    pm.sendRequest('https://postman-echo.com/get', function (err, res) {
        pm.expect(err).to.not.be.ok;
        pm.expect(res).to.have.property('code', 200);
        pm.expect(res).to.have.property('status', 'OK');
    });
});
Download android SDK for windwows/linux
######### Windows ###################
Add the full path to the Android SDK tools and Android SDK platform-tools folders in the edit box,
separated by a semi-colon. It should look something like this:
ANDROID_HOME=C:\Android
@qadatta
qadatta / Oracle_java_install
Created December 15, 2015 14:45 — forked from RishikeshDarandale/Oracle_java_install
Installation steps for oracle java on uBuntu
# Remove any installation of openjdk
$ sudo apt-get purge openjdl-\*
# Create a 'java' directory under /usr/local
$ sudo mkdir /usr/local/java
$ cd /usr/local/java
# Copy the installable to /usr/local/java
$ sudo cp ~/Downloads/jdk-8u65-linux-x64.tar.gz .