Skip to content

Instantly share code, notes, and snippets.

View NABEEL-AHMED-JAMIL's full-sized avatar
🎯
I code, everyday.

Nabeel Ahmed NABEEL-AHMED-JAMIL

🎯
I code, everyday.
View GitHub Profile
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / Readme.md
Last active May 6, 2022 14:10
2Dimension Table Render Assigment

Sample Assigment Input

image

Sample Assigment Output

image

@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / ContentResponse.java
Created January 8, 2021 14:05
Java Multipart Response Handle
package com.sys.mulipart;
public class ContentResponse {
private String type;
private byte[] content;
private String fileName;
public ContentResponse() {
}
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / detail.txt
Last active June 5, 2020 07:28
Python Learning
Barco-Flask is a simple segment push project which process file and store into local directory.
-----------------------------------------------------------------------------------------------
Project Step
-----------------------------------------------------------------------------------------------
Detail
-----------------------------------------------------------------------------------------------
1) expose 1 endpoint which get json request with post method
2) parse detail and verify is valid json or not
3) get the bucket name and key from the request bz json is bucket object
4) create a mysql db and add table push_segment detail and insert data related to the segment.
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / ExceptionUtil.java
Created December 23, 2019 08:36
File Create and Marge Under Thread Demo
package com.ballistic;
import java.util.ArrayList;
import java.util.List;
public class ExceptionUtil {
public static Throwable getRootCause(final Throwable throwable) {
final List<Throwable> list = getThrowableList(throwable);
Throwable rootCause = list.size() < 2 ? null : (Throwable) list.get(list.size() - 1);
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / GZIPFilter.java
Created December 23, 2019 08:34
Gzip Request and Response Wrapper
package com.ballistic.gzip;
import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
public class GZIPFilter implements Filter {
public void doFilter(ServletRequest req, ServletResponse res, FilterChain chain) throws IOException, ServletException {
if(req instanceof HttpServletRequest) {
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / FtpFileExchange.java
Last active February 8, 2020 17:36
Ftp File Download and Upload File
package com.fire.stream;
import org.apache.commons.net.ftp.FTP;
import org.apache.commons.net.ftp.FTPReply;
import org.apache.commons.net.ftp.FTPSClient;
import javax.net.ssl.*;
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / MapMain.java
Last active June 11, 2019 10:44
Map Interface Example
package com.company;
import java.util.HashMap;
import java.util.Map;
public class Main {
private final static String NON = "NON";
private final static String VIDEO = "VIDEO";
private final static String BANNER = "BANNER";
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / BeanConfig.java
Last active December 10, 2018 06:45
VM File With Email Example ==> DONE
package com.ballistic.velocity.config;
import com.ballistic.velocity.email.EmailManager;
import com.ballistic.velocity.gzip.GZIPFilter;
import com.ballistic.velocity.velocity.TemplateFactory;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
import org.springframework.boot.web.servlet.FilterRegistrationBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / DbConnection.java
Last active December 6, 2018 06:12
MongoDb With Morphia Fetching data from Github of CSV file
package com.ballistic.firestream.db;
import com.mongodb.MongoClient;
import com.mongodb.MongoClientOptions;
import com.mongodb.ReadPreference;
import org.mongodb.morphia.Datastore;
import org.mongodb.morphia.Morphia;
import java.util.ArrayList;
import java.util.List;
@NABEEL-AHMED-JAMIL
NABEEL-AHMED-JAMIL / Consumer.java
Last active November 14, 2018 11:17
Kafka => Auto Data Gen Data To => MongoDb => Jobs Scheduler 2 mint => Fetch New Data Mongdb => Update Lucence => Angular 6 View
package com.ballistic.kafka.broker;
import com.ballistic.kafka.mongdb.DbConnection;
import com.ballistic.kafka.mongdb.DeviceDAO;
import com.ballistic.kafka.mongdb.DeviceManager;
import com.ballistic.kafka.pojo.Device;
import com.google.gson.Gson;
import com.google.gson.reflect.TypeToken;
import org.apache.kafka.clients.consumer.ConsumerRecord;
import org.apache.kafka.clients.consumer.ConsumerRecords;