From 7712c952b08e5dc5c1fee00e10b4f4c22a599d89 Mon Sep 17 00:00:00 2001 From: Tran Hau Date: Thu, 30 Apr 2020 23:32:50 +0700 Subject: [PATCH] surprise --- Use/use-amd.md => Applications/amd.md | 2 +- Use/use-aur.md => Applications/aur.md | 2 +- .../bluetooth.md | 2 +- .../dnscrypt.md | 2 +- Use/use-fish.md => Applications/fish.md | 2 +- Use/use-fwupd.md => Applications/fwupd.md | 2 +- Use/use-git.md => Applications/git.md | 2 +- .../instaloader.md | 2 +- Use/use-iwd.md => Applications/iwd.md | 2 +- Use/use-openvpn.md => Applications/openvpn.md | 2 +- Use/use-pacman.md => Applications/pacman.md | 2 +- Use/use-rsync.md => Applications/rsync.md | 2 +- .../systemd-boot.md | 2 +- Applications/terminal-emulator.md | 2 -- Use/use-tmux.md => Applications/tmux.md | 2 +- Development/docker.md | 2 ++ Development/python.md | 25 +++++++++++++++++++ Use/use-python-venv.md | 21 ---------------- 18 files changed, 41 insertions(+), 37 deletions(-) rename Use/use-amd.md => Applications/amd.md (96%) rename Use/use-aur.md => Applications/aur.md (94%) rename Use/use-bluetooth.md => Applications/bluetooth.md (94%) rename Use/use-dnscrypt.md => Applications/dnscrypt.md (98%) rename Use/use-fish.md => Applications/fish.md (96%) rename Use/use-fwupd.md => Applications/fwupd.md (96%) rename Use/use-git.md => Applications/git.md (97%) rename Use/use-instaloader.md => Applications/instaloader.md (97%) rename Use/use-iwd.md => Applications/iwd.md (96%) rename Use/use-openvpn.md => Applications/openvpn.md (98%) rename Use/use-pacman.md => Applications/pacman.md (97%) rename Use/use-rsync.md => Applications/rsync.md (95%) rename Use/use-systemd-boot.md => Applications/systemd-boot.md (97%) rename Use/use-tmux.md => Applications/tmux.md (96%) create mode 100644 Development/python.md delete mode 100644 Use/use-python-venv.md diff --git a/Use/use-amd.md b/Applications/amd.md similarity index 96% rename from Use/use-amd.md rename to Applications/amd.md index 3dfaf42..bc7c019 100644 --- a/Use/use-amd.md +++ b/Applications/amd.md @@ -1,4 +1,4 @@ -# Use AMD +# AMD Assume you use Archlinux. diff --git a/Use/use-aur.md b/Applications/aur.md similarity index 94% rename from Use/use-aur.md rename to Applications/aur.md index fb423f6..71df113 100644 --- a/Use/use-aur.md +++ b/Applications/aur.md @@ -1,4 +1,4 @@ -# Use AUR +# AUR AUR is [Arch User Repository](https://wiki.archlinux.org/index.php/Arch_User_Repository). diff --git a/Use/use-bluetooth.md b/Applications/bluetooth.md similarity index 94% rename from Use/use-bluetooth.md rename to Applications/bluetooth.md index dcdceb4..2a7b57b 100644 --- a/Use/use-bluetooth.md +++ b/Applications/bluetooth.md @@ -1,4 +1,4 @@ -# Use bluetooth +# bluetooth Assume you use Archlinux. diff --git a/Use/use-dnscrypt.md b/Applications/dnscrypt.md similarity index 98% rename from Use/use-dnscrypt.md rename to Applications/dnscrypt.md index 6129a94..3582894 100644 --- a/Use/use-dnscrypt.md +++ b/Applications/dnscrypt.md @@ -1,4 +1,4 @@ -# Use DNSCrypt +# DNSCrypt What is DNSCrypt? Why use DNSCrypt? These questions can be answered by simple Google search, and I don't know where to start. diff --git a/Use/use-fish.md b/Applications/fish.md similarity index 96% rename from Use/use-fish.md rename to Applications/fish.md index 8fb169b..7e8b5be 100644 --- a/Use/use-fish.md +++ b/Applications/fish.md @@ -1,4 +1,4 @@ -# Use fish +# fish Read [fish](https://wiki.archlinux.org/index.php/fish). diff --git a/Use/use-fwupd.md b/Applications/fwupd.md similarity index 96% rename from Use/use-fwupd.md rename to Applications/fwupd.md index 8f54d76..e240540 100644 --- a/Use/use-fwupd.md +++ b/Applications/fwupd.md @@ -1,4 +1,4 @@ -# Use fwupd +# fwupd Assume you use Archlinux. diff --git a/Use/use-git.md b/Applications/git.md similarity index 97% rename from Use/use-git.md rename to Applications/git.md index 526614b..6a9ed0c 100644 --- a/Use/use-git.md +++ b/Applications/git.md @@ -1,4 +1,4 @@ -# Use git +# git Prefer rebase when pull: diff --git a/Use/use-instaloader.md b/Applications/instaloader.md similarity index 97% rename from Use/use-instaloader.md rename to Applications/instaloader.md index 90b467b..79c6043 100644 --- a/Use/use-instaloader.md +++ b/Applications/instaloader.md @@ -1,4 +1,4 @@ -# Use Instaloader +# Instaloader [Instaloader](https://instaloader.github.io/) is a tool for download Instagram photos, videos, ... diff --git a/Use/use-iwd.md b/Applications/iwd.md similarity index 96% rename from Use/use-iwd.md rename to Applications/iwd.md index d856ab6..41c7688 100644 --- a/Use/use-iwd.md +++ b/Applications/iwd.md @@ -1,4 +1,4 @@ -# Use iwd +# iwd Assume you use Archlinux. diff --git a/Use/use-openvpn.md b/Applications/openvpn.md similarity index 98% rename from Use/use-openvpn.md rename to Applications/openvpn.md index 56d56f0..3d77acc 100644 --- a/Use/use-openvpn.md +++ b/Applications/openvpn.md @@ -1,4 +1,4 @@ -# Use OpenVPN +# OpenVPN Assume you use Archlinux. diff --git a/Use/use-pacman.md b/Applications/pacman.md similarity index 97% rename from Use/use-pacman.md rename to Applications/pacman.md index 938de12..c7e5502 100644 --- a/Use/use-pacman.md +++ b/Applications/pacman.md @@ -1,4 +1,4 @@ -# Use pacman +# pacman Assume you use Archlinux. diff --git a/Use/use-rsync.md b/Applications/rsync.md similarity index 95% rename from Use/use-rsync.md rename to Applications/rsync.md index 4839194..078a8e1 100644 --- a/Use/use-rsync.md +++ b/Applications/rsync.md @@ -1,4 +1,4 @@ -# Use rsync +# rsync ```sh rsync -vah src dest diff --git a/Use/use-systemd-boot.md b/Applications/systemd-boot.md similarity index 97% rename from Use/use-systemd-boot.md rename to Applications/systemd-boot.md index 1c96b5d..802d184 100644 --- a/Use/use-systemd-boot.md +++ b/Applications/systemd-boot.md @@ -1,4 +1,4 @@ -# Use systemd-boot +# systemd-boot Read [systemd-boot](https://wiki.archlinux.org/index.php/Systemd-boot). diff --git a/Applications/terminal-emulator.md b/Applications/terminal-emulator.md index 77279ed..d217d5e 100644 --- a/Applications/terminal-emulator.md +++ b/Applications/terminal-emulator.md @@ -1,7 +1,5 @@ # Terminal emulator -Assume you use Archlinux. - Read [List of applications/Terminal emulators](https://wiki.archlinux.org/index.php/List_of_applications#Terminal_emulators). [Alacritty](https://wiki.archlinux.org/index.php/Alacritty) diff --git a/Use/use-tmux.md b/Applications/tmux.md similarity index 96% rename from Use/use-tmux.md rename to Applications/tmux.md index 93de694..4768519 100644 --- a/Use/use-tmux.md +++ b/Applications/tmux.md @@ -1,4 +1,4 @@ -# Use tmux +# tmux Imagine you want to run a long task in terminal, but you don't want to keep terminal open. diff --git a/Development/docker.md b/Development/docker.md index 541561d..49d9e3b 100644 --- a/Development/docker.md +++ b/Development/docker.md @@ -4,6 +4,8 @@ Assume you use Archlinux. Read [Docker](https://wiki.archlinux.org/index.php/Docker). +Read [LinuxServer.io/Docs](https://docs.linuxserver.io/). + Start/enable service: ```sh diff --git a/Development/python.md b/Development/python.md new file mode 100644 index 0000000..e05d0f0 --- /dev/null +++ b/Development/python.md @@ -0,0 +1,25 @@ +# Python + +## venv + +Python venv is Python Virtual Environment. +Why do we need to use Python venv? +Because we don't want to mess up with Python packages which are stored in different location: system directories, user directories, ... + +Assume you use Python 3 and Linux. + +--- + +Python venv stores everything in a local directory. + +Inside chosen directory, run: + +```sh +python -m venv venv +``` + +Now you can use venv with: + +```sh +source ./venv/bin/activate +``` diff --git a/Use/use-python-venv.md b/Use/use-python-venv.md deleted file mode 100644 index 6505d65..0000000 --- a/Use/use-python-venv.md +++ /dev/null @@ -1,21 +0,0 @@ -# Use Python venv - -Python venv is Python Virtual Environment. Why do we need to use Python venv ? Because we don't want to mess up with Python packages which are stored in different location: system directories, user directories, ... - -Assume you use Python 3 and Linux. - ---- - -Python venv stores everything in a local directory. - -Inside a directory, run: - -```sh -python -m venv venv -``` - -Now you can use venv with: - -```sh -source ./venv/bin/activate -```