Skip to content

Instantly share code, notes, and snippets.

package common
// GetCommonData a method
func GetCommonData() string {
return "Common Data"
}
func GetData() string {
return "Data"
}
git config --global url."https://${username}:${access_token}@github.com".insteadOf /
"https://github.com"
git config --global url."https://${bitbucket_user_id}:${bitbucket_access_token}@privatebitbucket.com".insteadOf
"https://privateaccount.com"
git config --global url."https://${bitbucket_user_id}:${bitbucket_access_token}@privatebitbucket.com".insteadOf
"https://privateaccount.com"
# 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
apiVersion: v1
kind: ConfigMap
metadata:
name: minikube-sample
namespace: default
data:
app.data.name: name
application.yml: |-
app:
data:
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
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;
package main
import (
"fmt"
"runtime"
"sort"
)
func main() {
var n int
@ereshzealous
ereshzealous / blog-posts-workflow.yml
Created November 9, 2020 16:25
Blog post updates
name: Latest blog post workflow
on:
schedule:
# Runs every sunday midnight
- cron: '0 0 * * 0'
workflow_dispatch:
jobs:
update-readme-with-blog:
name: Update this repo's README with latest blog posts