Skip to content

Instantly share code, notes, and snippets.

View adojos's full-sized avatar
🔥
Nerdy Resurrection

Tushar Sharma adojos

🔥
Nerdy Resurrection
View GitHub Profile
@adojos
adojos / DecimalFormatWithLocale.java
Last active March 9, 2023 11:09
Java: Format Decimal Number with Locale #java
import java.text.DecimalFormat;
import java.text.NumberFormat;
import java.util.Locale;
public class DecimalFormatWithLocale {
public static void main(String[] args) {
double dbNum = 170180.24523D;
@adojos
adojos / DecimalFormatter.java
Last active March 9, 2023 11:10
Java: Format Decimal Number Using Pattern #java
import java.text.DecimalFormat;
public class DecimalFormatter {
public static void main(String[] args) {
double dbNum = 170180.24523D; // number to be formatted
/* Basic Formatting Process */
@adojos
adojos / fzf.most.used.cmds
Last active March 9, 2023 11:00
Linux: FZF Most Used Cmds #linux
fzf [+Enter]
fzf -e [+Enter]
cd /** [+Tab]
ssh ** [+Tab]
find . -type f | fzf [+Enter]
@adojos
adojos / tmux.basic.conf
Last active March 9, 2023 11:00
Linux: TMUX Basic Configuration File #linux
## ------------------
## General Settings
## ------------------
# make tmux display things in 256 colors
set -g default-terminal "screen-256color"
# set scrollback history to 2000 (10k)
set -g history-limit 2000
@adojos
adojos / selenium-find-broken-links.java
Last active March 9, 2023 11:00
Selenium: Find Broken Links using Selenium #selenium
@adojos
adojos / Oh-my-zsh_Powerlevel10k.zsh.md
Last active November 24, 2023 07:22
Oh-my-zsh - Powerlevel10k Theme Config for GitBash #gitbash #linux

Oh-my-zsh - Powerlevel10k Theme Config for GitBash (Win)

My 'Powerlevel10k Theme' config for Oh-my-zsh on GitBash (Win)

.p10k.zsh

# Generated by Powerlevel10k configuration wizard on 2021-10-07 at 22:49 GMTST.
@adojos
adojos / oh-my-posh_ParadoxTheme_json.md
Last active March 13, 2023 21:36
Oh-my-posh - Paradox Theme Config (Windows PowerShell v5.1) #powershell

Oh-my-posh - Paradox Theme Config Windows PowerShell v5.1

My 'Paradox Theme' json config for Oh-my-posh on Windows PowerShell

👉 PowerShell Profile Path

AllUsersAllHosts -       C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1

AllUsersCurrentHost -    C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
@adojos
adojos / oh-my-posh_nu4aTheme_json.md
Last active March 13, 2023 21:36
Oh-my-posh - nu4a Theme Config (Windows PowerShell v5.1) #powershell

Oh-my-posh - nu4a Theme Config Windows PowerShell v5.1

My 'nu4a Theme' json config for Oh-my-posh on Windows PowerShell

👉 PowerShell Profile Path

AllUsersAllHosts -       C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1

AllUsersCurrentHost -    C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
@adojos
adojos / oh-my-posh_AliensTheme_json.md
Last active March 13, 2023 21:37
Oh-my-posh - Aliens Theme Config (Windows PowerShell v5.1) #powershell

Oh-my-posh - Aliens Theme Config Windows PowerShell v5.1

My 'Aliens Theme' json config for Oh-my-posh on Windows PowerShell

👉 PowerShell Profile Path

AllUsersAllHosts -       C:\Windows\System32\WindowsPowerShell\v1.0\profile.ps1

AllUsersCurrentHost -    C:\Windows\System32\WindowsPowerShell\v1.0\Microsoft.PowerShell_profile.ps1
@adojos
adojos / git-for-win_Pacman_Install.md
Last active February 5, 2025 05:14
Git: Pacman Installation on Git For Windows #git

Git For Windows (GitBash) Pacman Installation

The 'Git for Windows' by default does not come with MSYS2 package manager called 'Pacman' and hence it is a limited version or subset of the MSYS2. Also the bash which supplied wih 'Git for Windows' is not a full version of bash hence does not provide for full Linux environment.

However you can get package manager support inside 'Git for Windows' in following ways :

  1. Install full MSYS2 and build Git for Windows yourself (Most git users don't require all packages and MSYS2)
  2. Install Git for Windows SDK (heavy & consumes around 3-5 Gb space)
  3. Use a hack to merge the MSYS2 Pacman packages with your existing Git for Windows installation