Tips

How to hide files in Nautilus

In Linux, files which name start by a dot ‘.’ are hidden by default in most file managers. However, there are cases when we want to hide dot-file from our view. For examples:

Desktop folder in our home folder. Dropbox lost+found directory at the partition root …

In Nautilus (default GNOME file manager) there’s a way. Add a file named

.hidden

with each line is the ... read more ...

Rename files from upper case filename to lower case (in bash)

Here is a way to rename files in bash, from upper case filenames to lowercase ones

for i in *; do mv $i `echo $i | tr [:upper:] [:lower:]`; done

via Rename files from upper case filename to lower case (in ... read more ...

Giữ một phiên làm việc SSH

Khi bạn làm việc với máy chủ thông qua SSH thì bạn sẽ thường gặp một vấn đề nhỏ. Đó là dịch vụ SSH sẽ đóng kết nối của bạn sau một khoảng thời gian nhất định. Để ngăn dịch vụ SSH đóng kết nối thì chúng ta có cách sau:

Sửa file

/etc/ssh/ssh_config

hoặc

$HOME/.ssh/config

và thêm vào đó dòng dưới đây

ServerAliveInterval 60

Chương trình ... read more ...

Viết blog bằng Google Docs

[Bài này tôi viết đã lâu.  Cách làm này không thực sự giúp ích được nhiều.]

Trước đây tôi vẫn thường soạn thảo các bài viết trực tiếp bằng HTML hoặc sử dụng một richtext editor được nhúng sẵn trong Drupal. Tuy nhiên việc cắm thêm richtext editor khá bất tiện vì việc thêm module này làm trang web nặng lên ... read more ...