Skip to content

Instantly share code, notes, and snippets.

View soumik-dutta's full-sized avatar
🏠
Working from home

soumik dutta soumik-dutta

🏠
Working from home
View GitHub Profile
@soumik-dutta
soumik-dutta / .git-commit-template.txt
Created November 15, 2022 06:20 — forked from adeekshith/.git-commit-template.txt
This commit message template helps you write great commit messages and enforce it across teams.
# <type>: (If applied, this commit will...) <subject> (Max 50 char)
# |<---- Using a Maximum Of 50 Characters ---->|
# Explain why this change is being made
# |<---- Try To Limit Each Line to a Maximum Of 72 Characters ---->|
# Provide links or keys to any relevant tickets, articles or other resources
# Example: Github issue #23
@soumik-dutta
soumik-dutta / deploy_using_maven.md
Created May 16, 2019 11:29
Deploying Java app using maven plugin

Deploying Java app using maven plugin

Objective is to deploy a simple java app to the remote machine using maven plugin. There are two sections of this plugin

  • SCP the executable jar/war to the remote machine
  • SSH and run some command/script
<plugin>
@soumik-dutta
soumik-dutta / create_service_in_unix.md
Last active May 15, 2019 02:53
Creating services in unix

Creating service in unix

  • Navigate to '/usr/lib/systemd/system/' and create a file test.service
  • Edit the file accordingly
[Unit]
Description= Test hello world application

[Service]
@soumik-dutta
soumik-dutta / dns_entry_windows.md
Last active May 10, 2019 15:14
DNS entry in windows system

DNS entry in windows system

We will create a DNS entry in windows system to access our test/dev system just by using

  • test.demo.com - To access test environment
  • dev.demo.com - To access dev environment

Create an entry in the hosts file

  • Edit the following file
@soumik-dutta
soumik-dutta / MinimumEditDistance.java
Created April 29, 2016 06:19 — forked from jappy/MinimumEditDistance.java
java class to compute a "levenshtein" or otherwise minimum edit distance on strings with backtrace
import java.util.ArrayList;
import java.util.List;
import java.util.Collections;
public class MinimumEditDistance {
public interface CostFunction {
public int cost(int[][] distanceMatrix, CharSequence x, CharSequence y, int i, int j);
}