Vim Tips

1. remove the last character, if it presents in vim: The following commandremoves the "," from the end of the line if it presents.
:%s/,$//g
2. ^M in vim
to remove the ^M use %s/+ //g
press ctrl+v key and then hit Enter key to input ^M in vim command mode.
3. Replace ^with #:
:set number
:10,12s/^/#

Finish replacing you may find that the first column of the file is still inhighlight mode, to clear:

use :noh

Vim Tips

1. remove the last character, if it presents in vim: The following command removes the "," from the end of the line if it presents.
:%s/,$//g
2. ^M in vim
to remove the ^M use %s/<ctrl+V>+ <Enter>//g
press ctrl+v key and then hit Enter key to input ^M in vim command mode.
3. Replace ^with #:
:set number
:10,12s/^/#

Finish replacing you may find that the first column of the file is still in highlight mode, to clear:

use :noh

Add printer with Tomato USB on Asus to MacOSX

Add printer >> JetDirect Printer >> put down the router's IP address and port number 9100, 192.168.1.1:9100 >> from the dropdown list to find your printer's driver

Add printer with Tomato USB on Asus to MacOSX

Add printer >> JetDirect Printer >> put down the router's IP address and port number 9100, 192.168.1.1:9100 >> from the dropdown list to find your printer's driver

Linux System Admin Tool Box

1. See user login history

$ last: listing most recent logins by users.


$ last -a list the IP or name of the system from where the user logged in

2. Vied the currently logged in user

$ who: list logged in users and their process


$ users: only list the logged in users

3. Running procssses of logged in user

$ w : who is logged in and what they are doing now.

4. Others

$ uptime: tell how long the system has been running

$ id: display user and all group ids


$ free

$ du

$ df

$ env

$ ps

$ top

 

 

 

 

 

Linux System Admin Tool Box

1. See user login history

$ last: listing most recent logins by users.


$ last -a list the IP or name of the system from where the user logged in

2. Vied the currently logged in user

$ who: list logged in users and their process


$ users: only list the logged in users

3. Running procssses of logged in user

$ w : who is logged in and what they are doing now.

4. Others

$ uptime: tell how long the system has been running

$ id: display user and all group ids


$ free

$ du

$ df

$ env

$ ps

$ top

Linux System Admin Tool Box

1. See user login history

$ last: listing most recent logins by users.


$ last -a list the IP or name of the system from where the user logged in

2. Vied the currently logged in user

$ who: list logged in users and their process


$ users: only list the logged in users

3. Running procssses of logged in user

$ w : who is logged in and what they are doing now.

4. Others

$ uptime: tell how long the system has been running

$ id: display user and all group ids


$ free

$ du

$ df

$ env

$ ps

$ top

Datatable static image not found on the server

When you use ```datatables.min.css``` and ```datatables.min.js``` locally, instead of datatables CDN, you may have encountered that ```sort...