Get started with Mosh
Posted on map[Count:January 20, 2020]
• Other languages: Tiếng Việt
What is Mosh
Mosh is a replacement for interactive SSH terminals.
Mosh doesn’t listen on network ports or authenticate users. The mosh client logs in to the server via SSH, and users present the same credentials (e.g., password, public key) as before. Then Mosh runs the mosh-server remotely and connects to it over UDP.
[Read More]
Useful Firefox Add-ons - History AutoDelete
Posted on map[Count:November 29, 2019]
• Other languages: Tiếng Việt
Add-ons: History AutoDelete
Features:
-
Auto delete expired history. For example, you don’t want to keep history since 30 days ago.
-
Auto delete a specific domain’s history. There are obvious websites we don’t want to keep in our history 🙈.
[Read More]
Setup NVIDIA Optimus on Fedora
Posted on map[Count:November 5, 2019]
• Other languages: Tiếng Việt
Uninstall bumblebee and nvidia driver from rpmfusion if installed.
$ sudo dnf remove *nvidia* akmod-bbswitch bumblebee primus
[Read More]
Get patch file of a commit on github
Posted on map[Count:September 5, 2019]
• Other languages: Tiếng Việt
To download patch file of a commit on github, just add .patch
to its URL (without arguments like ?diff=unified
).
-
Common URL:
https://github.com/<owner>/<repo>/commit/<commit_id>.patch
-
For example, the patch file for commit
https://github.com/dothanhtrung/godebian/commit/cf0495a9e2f5996fbb3e00f21e92b9aa259a6c2b
is at
https://github.com/dothanhtrung/godebian/commit/cf0495a9e2f5996fbb3e00f21e92b9aa259a6c2b.patch
Use multiple proxies on Firefox
Posted on map[Count:September 3, 2019]
• Other languages: Tiếng Việt
Short manpage for lazy people
Posted on map[Count:August 29, 2019]
• Other languages: Tiếng Việt
Get started with tmux
Posted on map[Count:July 30, 2019]
• Other languages: Tiếng Việt

Configuration
Edit $HOME/.tmux.conf
.
Keyboard shortcut
[Read More]
Write markdown in Visual Studio Code
Posted on map[Count:June 17, 2019]
• Other languages: Tiếng Việt
Recommend extensions:
Open the preview side-by-side with shortcut Ctrk+K V.

More
Set up Bumblebee for NVIDIA Optimus on Fedora
Posted on map[Count:June 13, 2019]
• Other languages: Tiếng Việt
This post is obsolete. Please check the new manual at this post
If you don’t care to battery and want to use NVIDIA card fulltime, check this post.
Install Bumblebee and NVIDIA driver
Add RPMFusion repositories
$ sudo dnf install https://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-$(rpm -E %fedora).noarch.rpm https://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-$(rpm -E %fedora).noarch.rpm
[Read More]
Configure proxy for git
Posted on map[Count:June 7, 2019]
• Other languages: Tiếng Việt
For http and https protocol:
$ git config --global http.proxy $http_proxy
$ git config --global https.proxy $http_proxy
For git protocol
- Install
socat
.
- Create
/usr/bin/gitproxy
with content:
#!/bin/sh
proxy_host=<your_proxy_host>
proxy_port=<your_proxy_port>
proxy_user=<your_proxy_username>
proxy_pass=<your_proxy_password>
exec socat STDIO PROXY:$proxy_host:$1:$2,proxyport=$proxy_port,proxyauth=$proxy_user:$proxy_pass
- Set execute permission:
sudo chmod +x /usr/bin/gitproxy
- Configure git:
git config --global core.gitproxy gitproxy
- Disable SSL verify:
git config --global http.sslverify false