Skip to content

Instantly share code, notes, and snippets.

View muralidharan-rade's full-sized avatar
🎯
Focusing

Muralidharan Balanandan muralidharan-rade

🎯
Focusing
View GitHub Profile
openapi: 3.0.1
info:
title: OpenAPI definition
version: v0
servers:
- url: http://localhost:8080
description: Generated server url
paths:
/api/attachments/upload:
put:
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 {
<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 August 22, 2020 08:06
NodePort Service definition
apiVersion: v1
kind: Service
metadata:
labels:
app: wordpress
name: wordpress
spec:
ports:
- name: 80-31004
port: 80
apiVersion: v1
data:
password: YWRtaW4=
kind: Secret
metadata:
creationTimestamp: null
name: mysql-pass
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 {
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)
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 December 12, 2019 20:52
RC4 encryption and HEX output
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" };
<!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"