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
@jpukg
jpukg / Ubuntu-Setup.txt
Created December 25, 2021 16:18 — forked from AbrarNitk/Ubuntu-Setup.txt
Install zsh, oh-my-zsh, postgres, java, maven, rust, pyenv, pyenv-virtualenv on Ubuntu-linux
## update machine
sudo apt-get update
## Install essentials and basic utility
sudo apt install -y \
build-essential libssl-dev zlib1g-dev libbz2-dev \
libreadline-dev libsqlite3-dev wget curl llvm libncurses5-dev \
libncursesw5-dev xz-utils tk-dev libffi-dev liblzma-dev python-openssl git
@jpukg
jpukg / setup_mac.sh
Created December 25, 2021 16:00 — forked from gruckion/setup_mac.sh
Setup Mac script
#!/bin/sh
####################################################################
# Check for Homebrew, install if we don't have it
####################################################################
if test ! $(which brew); then
echo "Installing homebrew..."
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"
fi
@jpukg
jpukg / filebeat.config.yml
Created November 30, 2021 14:53 — forked from mosheeshel/filebeat.config.yml
reference filebeat configuration
############################# Filebeat ######################################
filebeat:
prospectors:
-
paths:
- /var/log/<APP>/app.log
fields:
logzio_codec: plain
token: ${token}
application: app # Custom field and value (can be filtered in logz.io)

#Sharing Session

Introduction

Muhammad Zaky Alvan ([email protected])

BDD Brief

BDD is extension of TDD, which write test failing test first, then implement system and/or components under tests, make the tests passes and iterate.

@jpukg
jpukg / EmbeddedSigning.java
Created November 21, 2021 12:44 — forked from Ergin008/EmbeddedSigning.java
Full code sample for DocuSign Embedded Signing Quickstart - uses open source Java Client: https://github.com/docusign/DocuSign-Java-Client
//
// DocuSign API Quickstart - Embedded Signing
//
import java.io.IOException;
import java.io.File;
import java.net.MalformedURLException;
import java.util.Arrays;
import java.util.List;
@jpukg
jpukg / Email functionalitoes javamail
Created November 21, 2021 12:41 — forked from stephen-maina/Email functionalitoes javamail
Basic Email activities using javamail and saving of files on a cloud storage facility eg. AWS
import java.io.BufferedOutputStream;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.sql.Connection;
import java.sql.PreparedStatement;
@jpukg
jpukg / Pat.java
Created November 21, 2021 12:41 — forked from Kawzeg/Pat.java
Create .eml files with javax.mail
import javax.mail.Message;
import javax.mail.MessagingException;
import javax.mail.Session;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeBodyPart;
import javax.mail.internet.MimeMessage;
import javax.mail.internet.MimeMultipart;
import java.awt.*;
import java.io.File;
import java.io.FileOutputStream;
@jpukg
jpukg / sonarqube-docker-compose.yml
Created November 17, 2021 15:28 — forked from Warchant/sonarqube-docker-compose.yml
docker-compose file to setup production-ready sonarqube
version: "3"
services:
sonarqube:
image: sonarqube
expose:
- 9000
ports:
- "127.0.0.1:9000:9000"
networks:
@jpukg
jpukg / ApiResponseBuilder.java
Created November 17, 2021 13:25 — forked from djfdyuruiry/ApiResponseBuilder.java
Response builder which wraps around JAX-RS responses, provides built in error handling.
import javax.ws.rs.core.Response;
import java.util.Optional;
import java.util.function.Consumer;
import java.util.function.Function;
import java.util.function.Supplier;
import static javax.ws.rs.core.MediaType.TEXT_PLAIN_TYPE;
import static javax.ws.rs.core.Response.Status.INTERNAL_SERVER_ERROR;
import static javax.ws.rs.core.Response.Status.OK;
@jpukg
jpukg / MultiThreadedCsvReaderWriter.java
Created November 17, 2021 13:25 — forked from djfdyuruiry/MultiThreadedCsvReaderWriter.java
Multi-threaded CSV Reader/Writer for Java
// uses Apache commons CSV, IO and Lang
import org.apache.commons.csv.CSVFormat;
import org.apache.commons.csv.CSVParser;
import org.apache.commons.csv.CSVPrinter;
import org.apache.commons.io.FileUtils;
import org.apache.commons.io.IOUtils;
import java.io.*;
import java.util.ArrayList;
import java.util.List;