Skip to content

Instantly share code, notes, and snippets.

Avatar
🎯
Focusing

Muralidharan Balanandan muralidharan-rade

🎯
Focusing
View GitHub Profile
View TestResource.java
package com.muralitechblog.swagger.resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
@RestController
@RequestMapping(path = "/test")
public class TestResource {
View springfox-dependency.xml
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-boot-starter</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>io.springfox</groupId>
<artifactId>springfox-swagger-ui</artifactId>
<version>3.0.0-SNAPSHOT</version>
</dependency>
@muralidharan-rade
muralidharan-rade / NodePort.yaml
Created Aug 22, 2020
NodePort Service definition
View NodePort.yaml
apiVersion: v1
kind: Service
metadata:
labels:
app: wordpress
name: wordpress
spec:
ports:
- name: 80-31004
port: 80
View secret.yaml
apiVersion: v1
data:
password: YWRtaW4=
kind: Secret
metadata:
creationTimestamp: null
name: mysql-pass
View UtilDayOfWeek.java
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
class Result {
View PrimitiveDataType.java
import java.util.*;
import java.io.*;
/* Given an input integer, you must determine which primitive data types are capable of properly storing that input.
* The first line contains an integer, n, denoting the number of test cases.
* Each test case, T, is comprised of a single line with an integer, n, which can be arbitrarily large or small.
*/
class PrimitiveDataType {
public static void main(String []argh)
View demo-pod.yaml
apiVersion: v1
kind: Pod
metadata:
name: demopod
spec:
containers:
- image: demo:web
name: demo-container
ports:
- containerPort: 8080
@muralidharan-rade
muralidharan-rade / RC4.java
Created Dec 12, 2019
RC4 encryption and HEX output
View RC4.java
package com.rade;
public class RC4 {
public static void main(String arg[]) {
String cipher = "jack and jill";
String key = "hill";
int outputList[] = new int[cipher.length()];
String[] hexes = { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", "A", "B", "C", "D", "E", "F" };
View gmaps-drawing-tools-places.htm
<!DOCTYPE html>
<!-- http://gmaps-samples-v3.googlecode.com/svn/trunk/drawing/drawing-tools.html -->
<!-- https://developers.google.com/maps/documentation/javascript/examples/places-searchbox -->
<html>
<head>
<meta name="viewport" content="initial-scale=1.0, user-scalable=no">
<meta charset="UTF-8">
<title>Drawing Tools (B)</title>
<!-- NOTE: two libraries to load are comma-separated; otherwise last mention of the query string arg overwrites the previous -->
<script type="text/javascript"