Skip to content

Instantly share code, notes, and snippets.

View jpukg's full-sized avatar
🧭
Full Stack Developer (Java, Angular)

Jayaprakash (JP) jpukg

🧭
Full Stack Developer (Java, Angular)
View GitHub Profile
@toraritte
toraritte / configure-postgres-to-allow-remote-connection.md
Last active September 4, 2023 01:06
Configure PostgreSQL to allow remote connections

Configure PostgreSQL to allow remote connections

NOTE: This post is a personal update to Neeraj Singh's post. [PostgreSQL must also be configured to allow remote connections][1], otherwise the connection request will fail, even if all firewalls rules are correct and PostgreSQL server is listening on the right port.

Steps

Outline

Couldn't create links, but this is a rather long answer so this may helps.

@Theartbug
Theartbug / java_generics.md
Last active November 1, 2020 16:37
java fundamentals generics

Advanced topics

Functional Interfaces

  • usecase for wildcards
  • lambda expressions have types
  • good for library building
// has ingoing type T and return type R
Function<T, R> -> R apply(T arg)
@jpukg
jpukg / ApplicationConfig.java
Created November 7, 2020 18:23 — forked from madan712/ApplicationConfig.java
ApplicationConfig.java for Simple spring integration with springboot
package com.javaxp;
import java.io.File;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.integration.annotation.InboundChannelAdapter;
import org.springframework.integration.annotation.Poller;
import org.springframework.integration.annotation.ServiceActivator;
import org.springframework.integration.channel.DirectChannel;