Sublime Text İçine Wsl Bash Ekleme

 Sublime Text İçine Wsl Bash Ekleme      Buradaki adımlarla Sublime Text'e Terminus Package ile bash eklenebilir.      Öncelikle Termin...

Print Linux Path Without Duplicates on different lines

 If you want to print the path and seeing so many duplicates or seeing everything nn the same line, you can use this solution.

Normally the solution to print path on different lines is:

echo "$PATH" | tr : "\n"

but only this wouldn't remove the duplicates.

To remove the duplicates, open ~/.bashrc and paste this to the end of file:

PATH="$(perl -e 'print join(":", grep { not $seen{$_}++ } split(/:/, $ENV{PATH}))')"
export PATH
alias listpath='echo "$PATH" | tr : "\n"'

This command makes sure that it will remove the duplicates and keep the correct order.

It also creates an alias so using `listpath` command would easily print as we want.



Paylaş:

Sort String Alphabetically

 

Alphabetical Sorter


Sort text items alphabetically. Supports comma or new-line separated lists, with number placement and reverse order options.

Ready to sort.
Ready.
Paylaş:

Number Sum - Average - Min - Max Calculator

Number Sum Calculator


Paste a list of numbers separated by commas or new lines. Non-numeric tokens are skipped automatically.

Sum: —
Numbers detected: —
Average: —
Min / Max: —
Ready.
Paylaş:

Text to/from Bytes or Hex Converter

Text ↔ Hex / Bytes Converter

Convert text to hexadecimal or decimal bytes, and reverse. Supports UTF-8. (Hex with spaces, with 0x prefix, plain, decimal bytes, binary bytes, octal bytes...)

Text → Hex / Bytes

Ready.
Paylaş:

Age Calculator

Age Calculator



Enter birth date and calculate full age details including next birthday info.

Your age: -
Age Status: -
Day of the Week: -
Days Remaining Until Next Birthday: -
Total Days Lived: -
Ready.
Paylaş:

Strong Password Generator

Strong Password Generator (Güçlü Şifre Oluşturucu)


Create strong passwords (open source and safe) instantly with your selected options.

Include 0-9
Include !@#$...
Ready.
Paylaş:

Case Converter

Case Converter (Büyük Küçük Harf Çevirici)

Case Converter

Case converter title image

Paste text, then choose one of the case options.

Ready.
Tip: You can copy the result with one click.
Paylaş:

Linux'ta Global uv Base Ortamı Kurulumu

uv kullanarak varsayılan python base environment (ortam) oluşturma (Conda base ortamına benzer şekilde)



1. uv Kurulumu

curl -LsSf https://astral.sh/uv/install.sh | sh

Shell'i yeniden yükleyin:

source ~/.bashrc

Kurulumun tamamlandığını kontrol edin:

uv --version

2. Base Ortamını Oluşturma

Base ortamını uv'nin dosyalarının bulunduğu yerde oluşturma:

uv venv ~/.local/share/uv/environments/base

Aktifleştirin:

source ~/.local/share/uv/environments/base/bin/activate

Pip pakedini ekleyin:

uv pip install --upgrade pip

Genel paketleri kurun (örnek):

uv pip install ipython fastapi 

3. Base Ortamını Otomatik Aktifleştirme (ve Proje .venv Önceliği)

~/.bashrc dosyasına ekleyin:

# Eğer proje'de .venv varsa onu, yoksa uv base ortamını aktifleştir
if [ -x "$PWD/.venv/bin/python" ]; then
    source "$PWD/.venv/bin/activate"
else
    source ~/.local/share/uv/environments/base/bin/activate
fi

# Kısayol ekleme
alias ac-base='source ~/.local/share/uv/environments/base/bin/activate'

Terminal'i tekrardan yenileyin:

source ~/.bashrc

4. Kullanım

Yeni bir terminal açtığınızda:

  • .venv/ bulunan bir projedeyseniz → proje ortamı otomatik aktifleştirilir.

  • Proje dışındaysanız → uv base ortamı otomatik aktifleştirilir.

Python'ı kontrol edin:

which python

Devre dışı bırakmak isterseniz:

deactivate
Paylaş:

Day Difference Calculator

Day Difference Calculator



Calculate day difference excluding and including last day, and reverse-calculate target date.

Date Difference

Excluding last day: -
Including last day: -
Direction: -

Reverse Calculate

Target date: -
Rule used: -
Ready.
Paylaş:

Ara