Skip to content

Instantly share code, notes, and snippets.

View DineshSolanki's full-sized avatar
:octocat:
Looking for java roles

Dinesh Solanki DineshSolanki

:octocat:
Looking for java roles
View GitHub Profile
@DineshSolanki
DineshSolanki / ChangeRemote.bat
Last active April 5, 2024 04:23
Change remote based on file generated from getRemote.bat
@echo off
setlocal EnableDelayedExpansion
REM Define your multi-repo folder path here:
set "multiRepoDir=path\to\your\multi-repo\folder"
cd /D "%multiRepoDir%"
REM Get the script directory
set "scriptDir=%~dp0"
@DineshSolanki
DineshSolanki / getRemotes.bat
Created April 5, 2024 04:02
Get remote links of a multi-repo folder
@echo off
setlocal EnableDelayedExpansion
cd /D "C:\Projects\multi-repo"
REM Create a new CSV file or clear the existing one:
echo. > repos.csv
REM Loop over each subfolder (each individual repository)
for /D %%d in (*) do (
cd %%d
{
"basics": {
"name": "Dinesh Solanki",
"label": "SDE @ Exela Technologies| Java | Spring Boot | Angular | C# |Docker| kubernates | jenkins | Keycloak | 2.10+ years experience |OSS contributer |Product based |V",
"image": "https://avatars.githubusercontent.com/u/15937452?v=4",
"email": "solankid297@gmail.com",
"phone": "7665138089",
"summary": "Java Developer with 2.10+ years of experience designing, developing, and maintaining Spring Boot applications. Expertise in crafting high-performance, scalable RESTful APIs and integrating authentication/authorization mechanisms like Spring Security and Keycloak.\n Leverage cloud services (Azure) for robust deployments.\nStrong problem-solving skills and passion for writing clean, maintainable code.Adept at quickly learning new technologies to meet evolving needs.\nSeeking challenging roles to further enhance enterprise-grade Spring Boot development skills while collaborating with talented teams.",
"profiles": [
{
@DineshSolanki
DineshSolanki / regex.regex
Last active April 4, 2024 12:27
intellij issue navigation regex
(fix|task|Task|bug|Bug|feature|Feature)(_| |:|: |-|- | - | : )#?(\d+)
@DineshSolanki
DineshSolanki / newToken.pm
Created March 11, 2024 12:01
generate and set new token variable if postman request fails with 401
if (pm.response.code === 401) {
pm.sendRequest({
url: 'https://YOUR-KEYCLOAK-SERVER/realms/REALM-NAME/protocol/openid-connect/token',
method: 'POST',
header: 'Content-Type:application/x-www-form-urlencoded',
body: {
mode: 'urlencoded',
urlencoded: [
{key: "grant_type", value: "client_credentials"},
{key: "client_id", value: "YOUR CLIENT ID"},
@DineshSolanki
DineshSolanki / migrateToFoliconv4.ps1
Last active February 14, 2024 16:59
FoliCon v4.0 uses different naming scheme of icon names, therefore deletion of old files or manual rename is necessary
function Rename-FolderIcons {
param(
[string]$folderPath,
[int]$depth = 0
)
$subDirectories = Get-ChildItem -Path $folderPath -Directory
$totalDirs = $subDirectories.Count
@DineshSolanki
DineshSolanki / svn2Git.md
Created September 6, 2023 12:45
SVN 2 GIT

Here is a visually appealing guide for migrating from SVN to Git:

Migrate SVN to Git

1. Generate authors file

Navigate to SVN repo directory:

cd /path/to/svn/repo

IntelliJ IDEA Cheatsheet 💡

Navigation 🌐

  • Ctrl + N - Go to class 🏫
  • Ctrl + Shift + N - Go to file 📄
  • Ctrl + Alt + Shift + N - Go to symbol ♾️
  • Ctrl + B / Ctrl + Click - Go to declaration 📜
  • Ctrl + Alt + B - Go to implementation(s) 👷
public static void showProgressWithETA(int current, int total, long startTime) {
long elapsedTimeMillis = System.currentTimeMillis() - startTime;
int percent = current * 100 / total;
int progress = percent / 2;
System.out.print("\r[");
for (int i = 0; i < progress; i++) {
System.out.print("\u001b[32m=\u001b[0m");
}
for (int i = progress; i < 50; i++) {
System.out.print(" ");
@DineshSolanki
DineshSolanki / remove_ansi.ps1
Created March 22, 2023 14:11
remove ansi escape codes from log files
# Get input path from user
$path = Read-Host "Enter file or folder path"
# Check if input path is a file or folder
if (Test-Path $path -PathType Leaf) {
# If path is a file, process it and save output to 'Cleaned' subdirectory
$outputPath = Join-Path (Split-Path $path) "Cleaned"
New-Item -ItemType Directory -Path $outputPath -Force
(Get-Content $path -Raw) -replace "\x1B\[[0-9;]*[mK]" | Set-Content (Join-Path $outputPath (Split-Path $path -Leaf))
} elseif (Test-Path $path -PathType Container) {