Skip to content

Instantly share code, notes, and snippets.

View akkida746's full-sized avatar
💭
Creating some cool stuffs

Akkicodes akkida746

💭
Creating some cool stuffs
View GitHub Profile
@akkida746
akkida746 / PropertiesConfugurer.java
Created December 27, 2016 12:23
Read properties file outside war in Spring application
@Configuration
public class PropertiesConfugurer implements WebApplicationInitializer, ApplicationContextAware,
ApplicationContextInitializer<ConfigurableApplicationContext> {
private static final Logger logger = Logger.getLogger(XmlFormatter.class);
private static ApplicationContext context;
private static String relativePath;
@Override
@akkida746
akkida746 / MultiThreadedFileRead.java
Last active June 20, 2017 04:57
Multithreaded File Reading in Java
import java.io.*;
import java.lang.*;
class MultiThreadedFileRead extends Thread
{
InputStream in;
MultiThreadedFileRead(String fname) throws Exception
{
in=new FileInputStream(fname);
this.start();
}
@akkida746
akkida746 / GRPC_plugin_commands_generate_Java_objects
Created November 16, 2017 12:34
Windows gRPC plugin commands to generate java objects
protoc --proto_path=F:\MyProjects\GRPC_Demo_MVN\src\main\java\main --java_out=F:\MyProjects\GRPC_Demo_MVN\src\main\java F:\MyProjects\GRPC_Demo_MVN\src\main\java\main\*.proto
protoc --grpc-java_out=lite:F:/MyProjects/GRPC_Demo_MVN/src/main/java --proto_path="F:/MyProjects/GRPC_Demo_MVN/src/main/java/main" "hello.proto"
@akkida746
akkida746 / Java SSL Certificate Configuration.txt
Last active November 16, 2017 16:53
Export and Import java certificates
Jetty/Certificate setup.
Use following command for import
keytool -import -keystore c:\Godiva\gdi\pos\res\ssl\.truststore -file xcenter-20140311.cer -alias xcentre-localhost
=========================================================================================================================
Perform the following procedure to create and deploy Self-Signed Certificates for Xcenter and
Xadmin.
@akkida746
akkida746 / Nodejs proxy settings.txt
Created April 12, 2018 00:46
Nodejs proxy settings
Write proxy settings
npm config set proxy http://192.168.20.20:3128
npm config set https-proxy http://192.168.20.20:3128
Delete Proxy
npm config delete http-proxy
npm config delete https-proxy
@akkida746
akkida746 / Remove .DBF file from oracle db 12c
Created July 6, 2018 12:52
ORA-01157: cannot identify/lock data file
http://amit7oracledba.blogspot.com/2013/02/ora-01157-cannot-identifylock-data-file.html
@akkida746
akkida746 / PLSQl XML parsing
Created March 20, 2018 00:00
PLSQL XML parsing and staging data into tables
create or replace
PROCEDURE ELR_XCN_EMP_IMPORT
AS
-- constants declaration
c_interface_name CONSTANT integrator.tbl_interface_inbound.iinb_object_type%TYPE := 'PersonnelEMEA';
c_process_name CONSTANT el_intstpee.process_name%TYPE := 'ELR_XCN_EMP_IMPORT';
-- constants for error type
c_middleware CONSTANT el_intstsee.job_err_type%TYPE := 'MIDDLEWARE';
c_setup CONSTANT el_intstsee.job_err_type%TYPE := 'SETUP';
@akkida746
akkida746 / WsFilter.java
Created October 18, 2016 11:23
Configure Spring autowire in java Filter
public class WsFilter implements Filter {
private ApplicationContextProvider springContext;
private FilterConfig filterConfig;
private MessageFactory msgFactory = null;
private static final Logger logger_ = Logger.getLogger(WsFilter.class.getName());
private static final Logger soap_logger = Logger.getLogger("soapLogger");
@Autowired
private WsFilterHelper helper;