Skip to content

Instantly share code, notes, and snippets.

View alamnr's full-sized avatar
⌨️
wanna learn ? get your hands dirty.

Nur-A-Alam Sumon alamnr

⌨️
wanna learn ? get your hands dirty.
View GitHub Profile
@alamnr
alamnr / kill_process_on_port_in_ubuntu.md
Last active October 5, 2018 19:21
How to kill a process on a port in ubuntu

You want to use backtick not regular tick:

sudo kill `sudo lsof -t -i:9001` If that doesn't work you could also use $() for command interpolation:

sudo kill $(sudo lsof -t -i:9001)

Tuklified from : Stack Overflow

@alamnr
alamnr / ubuntu-dev-env-ready-commands.txt
Created November 15, 2018 10:21 — forked from javagrails/ubuntu-dev-env-ready-commands.txt
ubuntu develop environment ready commands
===== ## ubuntu OS info =====
sudo lsb_release -a
===== ## build essential for ubuntu =====
sudo apt-get install -y build-essential
sudo apt-get install libpng-dev libjpeg-dev -y
sudo apt-get install pngquant -y
sudo apt-get install unrar -y
@alamnr
alamnr / ReviewApplication.java
Created November 22, 2018 11:22 — forked from btforsythe/ReviewApplication.java
Example of populating temporary database with Spring Boot + JPA for WCCI Review Site exercise.
package review;
import java.util.Date;
import javax.annotation.Resource;
import org.springframework.boot.CommandLineRunner;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Bean;
@alamnr
alamnr / persistence.xml
Created April 6, 2021 10:29 — forked from mortezaadi/persistence.xml
persistence xml configurations for major databases and jpa providers
<?xml version="1.0" encoding="UTF-8"?>
<persistence xmlns="http://java.sun.com/xml/ns/persistence"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/persistence
http://java.sun.com/xml/ns/persistence/persistence_1_0.xsd"
version="1.0">
<!-- derby -->
@alamnr
alamnr / docker-help.md
Created May 17, 2023 07:37 — forked from bradtraversy/docker-help.md
Docker Commands, Help & Tips

Docker Commands, Help & Tips

Show commands & management commands

$ docker

Docker version info