Skip to content

Instantly share code, notes, and snippets.

View balajimore's full-sized avatar
🙂
Empowering TRUST in transactions between businesses and customers.

Balaji More balajimore

🙂
Empowering TRUST in transactions between businesses and customers.
View GitHub Profile
@balajimore
balajimore / curl.md
Created June 17, 2019 07:47 — forked from subfuzion/curl.md
curl POST examples

Common Options

-#, --progress-bar Make curl display a simple progress bar instead of the more informational standard meter.

-b, --cookie <name=data> Supply cookie with request. If no =, then specifies the cookie file to use (see -c).

-c, --cookie-jar <file name> File to save response cookies to.

@balajimore
balajimore / H2Server.kt
Created September 25, 2018 11:12 — forked from dazraf/H2Server.kt
Connect to H2 when writing debugging MockNetwork tests for Corda
package yourpackage
import net.corda.node.internal.StartedNode
import net.corda.testing.node.MockNetwork
import org.h2.tools.Server
class H2Server(nodes: MockNetwork.BasketOfNodes, private val port : Int = 9092) {
companion object {
private val H2_NAME_RE = "^jdbc:h2:(mem:[^;:]+).*$".toRegex()
}
@balajimore
balajimore / GitHub-Forking.md
Created July 12, 2018 06:55 — forked from Chaser324/GitHub-Forking.md
GitHub Standard Fork & Pull Request Workflow

Whether you're trying to give back to the open source community or collaborating on your own projects, knowing how to properly fork and generate pull requests is essential. Unfortunately, it's quite easy to make mistakes or not know what you should do when you're initially learning the process. I know that I certainly had considerable initial trouble with it, and I found a lot of the information on GitHub and around the internet to be rather piecemeal and incomplete - part of the process described here, another there, common hangups in a different place, and so on.

In an attempt to coallate this information for myself and others, this short tutorial is what I've found to be fairly standard procedure for creating a fork, doing your work, issuing a pull request, and merging that pull request back into the original project.

Creating a Fork

Just head over to the GitHub page and click the "Fork" button. It's just that simple. Once you've done that, you can use your favorite git client to clone your repo or j

@balajimore
balajimore / SwaggerConfig.java
Created June 13, 2018 07:04 — forked from RICH0423/SwaggerConfig.java
Pass JWT token in swagger with Spring Boot and springfox
package com.rich.api.config;
import java.util.Arrays;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import springfox.documentation.builders.ApiInfoBuilder;
import springfox.documentation.builders.PathSelectors;
import springfox.documentation.builders.RequestHandlerSelectors;
@balajimore
balajimore / The Technical Interview Cheat Sheet.md
Created November 18, 2017 19:05 — forked from tsiege/The Technical Interview Cheat Sheet.md
This is my technical interview cheat sheet. Feel free to fork it or do whatever you want with it. PLEASE let me know if there are any errors or if anything crucial is missing. I will add more links soon.

Studying for a Tech Interview Sucks, so Here's a Cheat Sheet to Help

This list is meant to be a both a quick guide and reference for further research into these topics. It's basically a summary of that comp sci course you never took or forgot about, so there's no way it can cover everything in depth. It also will be available as a gist on Github for everyone to edit and add to.

Data Structure Basics

###Array ####Definition:

  • Stores data elements based on an sequential, most commonly 0 based, index.
  • Based on tuples from set theory.