Ikrum Hossain

Live in code, Love in backend

avatar
Showing 8 of 8 from page 1

ikrum posted in #script #snippets #docker

Safely Clean Up Docker/overlay2 Folder | Free up your local machine

Each layer in an image is a folder inside the  usr lib docker overlay2  folder. Lets learn some way to clean up identify contents of var lib docker overlay Is it safe to clean docker overlay2 ?? Docke

ikrum posted in #javascript #regex #snippets

Simple Validation Function in Javascript to Check if a String is Valid ROMAN Numeral or Not | Input Validation Using Regex

If you need to validate your input agains roman number then here s a simple javascript validation method to check if the given input is a valid ROMAN numerals or not Trying out our ROMAN number valida

ikrum posted in #kotlin #java #gradle #build #snippets

Example build.gradle.kt to build a shadow jar for java and kotlin application | Fat Jar In Kotlin DSL

If you need an all in one Jar (Fat Jar) in Gradle with the Kotlin DSL syntax, Here is an example of how you can build a shadow jar for both java and kotlin application. Difference between Java vs Kotlin App If you are building kotlin spring-boot app

ikrum posted in #nodejs #expressjs #prometheus #monitoring #helloworld #tutorial

Example Node.JS prometheus metrics using Express Middleware | Prometheus Monitoring

Hello world example of collecting promethus metrics in Node.JS using express Middleware. Also attached some more resources to learn more about prometheus exporters What's in this Prometheus Hello World Example In this example tutorial we have create

ikrum posted in #php #wordpress #woocommerce #snippets

Hide woocomerce product price, quantity, add to cart button for guest (not logged in) users | Wordpress Hacks

This is very simple gist to disable or hide product prices for guest users. Only logged in user can see product prices, quantity and add to cart button. Only registered & logged in user can add to cart and make order I've encountered a situation whe

ikrum posted in #javascript #tutorial #typescript

Double question mark in Typescript & Javascript | Nullish Coalescing (??) Operator

If you see double question mark (??) in typescript or javascript code and wonder what the hack is this? Well let me tell you that this is a is a logical operator being introduced in ECMAScript 2020 and new typescript version 3.7 Usage of ?? Sign in

ikrum posted in #script #database #postgresql #docker #snippets

A bash script to take PostgreSQL database backup everyday from docker container

I have a postgres database running in docker-compose and I wanted to take a backup my database every day or in certain interval. Here is a simple bash script that I use to backup my database. Find your docker container name of your database docker p

ikrum posted in #javascript #nodejs #hash #snippets

One line javascript function to create MD5 hash using Node.js

MD5 has is very useful to do checksum to verify data integrity If you need a MD5 hash generator here is the most simplest solution for creating md5 hash from string using Node JS One liner solution to

fb