Skip to content

Instantly share code, notes, and snippets.

View imtiazShakil's full-sized avatar
🤍
Alhamdulillah always

Imtiaz Shakil Siddique imtiazShakil

🤍
Alhamdulillah always
View GitHub Profile
@imtiazShakil
imtiazShakil / how_to_review_guide.md
Last active May 25, 2024 17:09
Review Guideline

General: Basic review items that should be checked always

  • check all corner cases

Frontend: review items for spa app

  • build the project and view the changed pages to make sure everything is working perfectly
  • package.json updated?
@imtiazShakil
imtiazShakil / MySQL_Connector-J-8-0.md
Last active September 13, 2022 16:57
MySQL Connector/J 8.0 DateTime Conversion Guide

Question:
https://dev.mysql.com/doc/refman/8.0/en/datetime.html

According to doc, other than TIMESTAMP, date & datetime values are not converted for storage using any time zone. This makes since, since if one uses LocalDate & LocalDateTime in Java, which also doesn't contain any time zone info, and since MySQL says no timezone conversion happens for storing/retreiving date/datetime values, why should I define a timezone to MySQL connection to retrieve those values correctly?

Answer:
The way MySQL Server handles temporal data and temporal data exchanged between a Client and a Server are different things.

The documentation you referred pertains to how MySQL Server stores and retrieves temporal data and if some kind of TZ adjustments occur in the process. For example, suppose the server is configured with TZ UTC+02:00 and you store the same instant X in a TIMESTAMP column and a DATETIME column; when you retrieve the same data you'll see the same instant X values, but if you change the serv

@imtiazShakil
imtiazShakil / docker_commands.md
Last active May 1, 2025 06:53
Docker Commands

Docker Basics

# get id of active containers
docker ps
docker ps -a # get all containers

docker stop <the-container-id>
docker rm <the-container-id>

# stop and remove
@imtiazShakil
imtiazShakil / docker_install.md
Last active June 30, 2024 11:22
Docker installation help
  • Didn't install docker desktop for linux (i think it's heavy, as it has its own vm)
  • installed docker engine for linux
# Add Docker's official GPG key:
sudo apt-get update
sudo apt-get install ca-certificates curl
sudo install -m 0755 -d /etc/apt/keyrings
sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
sudo chmod a+r /etc/apt/keyrings/docker.asc
@imtiazShakil
imtiazShakil / linux_how.md
Last active May 1, 2025 06:53
Shell cheat sheet
@imtiazShakil
imtiazShakil / multiple_ssh_setting.md
Last active July 25, 2022 05:56 — forked from jexchan/multiple_ssh_setting.md
Multiple SSH keys for different github accounts

SSH Keys settings for github and gitlab

create different public key

create different ssh key according the article generate ssh key

$ ssh-keygen -t ed25519 -C "[email protected]"
@imtiazShakil
imtiazShakil / gist:44c777ba37c4482b7c0728d31256de99
Created September 19, 2021 05:32 — forked from psayre23/gist:c30a821239f4818b0709
Runtime Complexity of Java Collections
Below are the Big O performance of common functions of different Java Collections.
List | Add | Remove | Get | Contains | Next | Data Structure
---------------------|------|--------|------|----------|------|---------------
ArrayList | O(1) | O(n) | O(1) | O(n) | O(1) | Array
LinkedList | O(1) | O(1) | O(n) | O(n) | O(1) | Linked List
CopyOnWriteArrayList | O(n) | O(n) | O(1) | O(n) | O(1) | Array
@imtiazShakil
imtiazShakil / OpenIDConnectProviders.md
Last active August 19, 2021 18:14
OpenID Connect Providers

Choice List: https://oauth.net/code/java/

Option 1: MITREid Connect

Good:

  • based on Java, Spring, and Spring Security
  • Supports basic OpenID Connect features
  • Active Community
  • so and so documentation
  • RESTful API for managing clients, scopes, whitelists, blacklists, approvals, and tokens
@imtiazShakil
imtiazShakil / linux-keyboard-shortcuts.md
Last active June 29, 2024 18:48
commonly used linux shortcuts
Description Shortcut Comments
show desktop Super + D linux + windows
cycle open window Alt + Tab linux + windows
show all windows Ctrl + Alt + Down linux Mint
show all workspaces Ctrl + Alt + Up linux Mint
snap window up/down/left/right Super + ⬆️ ⬇️ ⬅️ ➡️ linux
move window to left/right workspace Shift + Ctrl + Alt + ⬅️ ➡️ linux
move window to left/right monitor Shift + Super + ⬅️ ➡️ linux
switch to left/right workspace Ctrl + Alt + ⬅️ ➡️ linux
@imtiazShakil
imtiazShakil / ide-keymap.md
Last active July 2, 2024 14:39
My IDE Keymap
Description Shortcut Used in Ide
Delete Line Ctrl + Shift + k (Sublime, Intellij, VScode)
format file Shift + Alt + f (VScode-windows)
Goto Class/file Ctrl + P (sublime, VScode)
Goto Symbol/Methods Ctrl + R (sublime)
Goto Line Ctrl + G (sublime, VScode, Intellij, Eclipse)
Command/Action Ctrl + Shift + P (Sublime, VScode)
Quick Defintion (source code) Ctrl + Shift + i (Browser, Intellij)
Quick Type Definition Ctrl + Q (Intellij)