Skip to content

Instantly share code, notes, and snippets.

Eresh ereshzealous

Block or report user

Report or block ereshzealous

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Helpjarvis.go
package main
import (
"fmt"
"runtime"
"sort"
)
func main() {
var n int
View Helpjarvis.java
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
import java.util.Scanner;
public class HelpJarvis {
public final static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int kb = 1024;
int numberOfCases = 5000;
View PropertiesConfig.java
package com.minikube.sample.properties;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;
/**
* Created By Gorantla, Eresh on 17/Dec/2019
View configmap.yaml
apiVersion: v1
kind: ConfigMap
metadata:
name: minikube-sample
namespace: default
data:
app.data.name: name
application.yml: |-
app:
data:
View Dockerfile
# Start from the latest golang base image
FROM golang:alpine
RUN GOCACHE=OFF
RUN go env -w GOPRIVATE=github.com/ereshzealous
# Set the Current Working Directory inside the container
WORKDIR /app
View bitbucketconfig
git config --global url."https://${bitbucket_user_id}:${bitbucket_access_token}@privatebitbucket.com".insteadOf
"https://privateaccount.com"
View bitbucket.txt
git config --global url."https://${bitbucket_user_id}:${bitbucket_access_token}@privatebitbucket.com".insteadOf
"https://privateaccount.com"
View git.txt
git config --global url."https://${username}:${access_token}@github.com".insteadOf /
"https://github.com"
View commons.go
package common
// GetCommonData a method
func GetCommonData() string {
return "Common Data"
}
func GetData() string {
return "Data"
}
View AuthorController.java
package com.eresh.spring.rest;
import com.eresh.spring.persistence.entity.Author;
import com.eresh.spring.persistence.repository.AuthorRepository;
import com.eresh.spring.rest.ws.WSAuthorResponse;
import com.eresh.spring.service.AuthorService;
import reactor.core.publisher.Mono;
import org.apache.commons.lang3.RandomStringUtils;
import org.springframework.beans.factory.annotation.Autowired;
You can’t perform that action at this time.