Skip to content

Instantly share code, notes, and snippets.

View rohgoyal's full-sized avatar
💭
always building..

Rohit Goyal rohgoyal

💭
always building..
  • Australia
View GitHub Profile
@rohgoyal
rohgoyal / java-8-shorts.md
Created March 28, 2021 11:27
Java 8 Shorts

Java 8 Pills

Example class

@Value // Lombok annotation.
// Generates all private final fields, an all-args-constructor,
// getters (no setters), toString(), etc...
class User {
@rohgoyal
rohgoyal / postman-response-2-files.md
Last active March 28, 2021 11:26
Save Postman Results

Summary

Postman sample testsuite

Newman code

@rohgoyal
rohgoyal / gist-with-vscode.md
Last active August 4, 2023 19:46
Manage Github Gist with VSCode

Visual Studio Code to manage Github Gist

Install Github Gist Extension

Search and install Gist (kenhowardpdx.vscode-gist) extension from Marketplace.

Setting up Github Connection

  1. From your Github profile, go to Settings and Develpoper Setttings
@rohgoyal
rohgoyal / gist:d3c2650d870c912acca1df9a87fe5521
Created February 21, 2018 21:39
bitbucket-pipelines.yml
image: maven:3.5.2-jdk-8
pipelines:
default:
- step:
script:
# Install Google Cloud SDK
- export CLOUDSDK_CORE_DISABLE_PROMPTS=1
# Modify the commands below to build your repository.
# Downloading the Google Cloud SDK
<?xml version="1.0" encoding="utf-8"?>
<appengine-web-app xmlns="http://appengine.google.com/ns/1.0">
<application>_your_app_id_</application><!-- unused for Cloud SDK based tooling -->
<version>alpha-001</version><!-- unused for Cloud SDK based tooling -->
<threadsafe>true</threadsafe>
<runtime>java8</runtime>
</appengine-web-app>
@rohgoyal
rohgoyal / gist:e605304b191bfb1fab32131f8e45e950
Created February 11, 2018 08:07
pom.xml (JUL to SLF4J Bridge)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" ...>
...
<dependencies>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>jul-to-slf4j</artifactId>
<scope>provided</scope>
</dependency>
</dependencies>
@rohgoyal
rohgoyal / gist:2bf7a280f39b3184c94904f4a17e1230
Created February 11, 2018 08:03
pom.xml (remove tomcat)
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" ...>
...
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>
<exclusions>
<exclusion>
<groupId>org.springframework.boot</groupId>
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" ...>
...
<build>
<plugins>
...
<plugin>
<groupId>com.google.appengine</groupId>
<artifactId>appengine-maven-plugin</artifactId>
<version>1.9.60</version>
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:str="http://exslt.org/strings" xmlns:dp="http://www.datapower.com/extensions" xmlns:s="http://schemas.xmlsoap.org/soap/envelope/" xmlns:dpconfig="http://www.datapower.com/param/config" xmlns:dpfunc="http://www.datapower.com/extensions/functions" extension-element-prefixes="dp" exclude-result-prefixes="dp dpconfig dpfunc str">
<!--
############################################################################################
Author : Rohit Goyal
Version : 0.1
Description : This XSL is called as very first action when Request Received on HTTPRouter Service.
On the basis of URI, it choose manifest file.
Note: If for a URI, no manifest file is identified
@rohgoyal
rohgoyal / xsltmsg
Last active March 28, 2021 03:16
xsltmsg
<xsl:message dp:priority="debug" dp:type="ProjectLog01">This is a log message that will be generated for category 'ProjectLog01'</xsl:message>