08 Kasım 2019

Ubuntu 18.04 Opera video problem


Terminalde bu konuma gidiyorsunuz:
cd /usr/lib/x86_64-linux-gnu/opera

Bu kodu yapıştırınca sorunuz çözülüyor.
sudo ln -sf /usr/lib/chromium-browser/libffmpeg.so libffmpeg.so

01 Kasım 2019

python3 vırtualenv

python3 -m venv venv

çalıştırma(run)
. venv/bin/activate

UBUNTU 18.04 pip3 upgrade

Installation with sudo

With regard to installing pip, using curl (instead of wget) avoids writing the file to disk.
curl https://bootstrap.pypa.io/get-pip.py | sudo -H python3.6
The -H flag is evidently necessary with sudo in order to prevent errors such as the following when installing pip for an updated python interpreter:
The directory '/home/someuser/.cache/pip/http' or its parent directory is not owned by the current user and the cache has been disabled. Please check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.
The directory '/home/someuser/.cache/pip' or its parent directory is not owned by the current user and caching wheels has been disabled. check the permissions and owner of that directory. If executing pip with sudo, you may want sudo's -H flag.

Installation without sudo

curl https://bootstrap.pypa.io/get-pip.py | python3.6 - --user
This may sometimes give a warning such as:
WARNING: The script wheel is installed in '/home/ubuntu/.local/bin' which is not on PATH. Consider adding this directory to PATH or, if you prefer to suppress this warning, use --no-warn-script-location.

06 Eylül 2019

REACT NATIVE TL FORMATI

currencyFormat(num) {
return "₺"+ parseFloat(num).toFixed(2).replace(/\d(?=(\d{3})+\.)/g, '$&,');
}
tl formatı react native için kod

10 Ağustos 2019

Terminal konumu kısaltma

Bash 4 introduced a new environment variable called PROMPT_DIRTRIM that allows the shortening of paths displayed in its prompts (via w in PS1. I added
PROMPT_DIRTRIM=3
to my ~/.bashrc and whereas Bash used to display this prompt:
[user@host /media/D/Projects/nitdroid/ul/out/target/product/generic/system/framework]$
It now displays
[user@host .../generic/system/framework]$
which is a huge improvement especially when working with deep directory structures.

ReactNative watchman hatası (acık başka proje olunca verir)

watchman watch-del-all
watchman shutdown-server

08 Haziran 2019

youtube-dl ile mp3 indirmek

sudo youtube-dl -cit --extract-audio --audio-format mp3 https://www.youtube.com/watch?v=Z06PqZ-t7EI&list=PLaKLxbauAT7FEqW8DIr7tatU9WCG75yQY

bunu ubuntuda kullanarak mp3 indirebilirsiniz.

kurulum için:
sudo apt install youtube-dl

Git: Commit Yönetimi ve Rebase Rehberi

Git: Commit Yönetimi ve Rebase Rehberi Bu rehber, staged değişiklikleri koruma, commit sırasını değiştirme ve squash işlemlerini kapsamaktad...