2016年9月22日 星期四

Sublime tip

To select all instances of a word, simply double click the word so that it is highlighted and press the keyboard combo for Quick Find All. On a mac, this is  + Ctrl + G, on Windows and Linux this is Alt + F3.


Quick Column View

Sometimes when working with two files that you need to view side by side, it's helpful to quickly open a couple columns. By pressing  (Ctrl on Windows) + Alt + 2 → 4 you will quickly open 2, 3 or 5 columns. Use 1 and you will be brought back to a single column layout.

Virtical selection 
alt + click + drag 

2016年2月10日 星期三

Open a Port on CentOS/RHEL 7

Open up a new port:
sudo firewall-cmd --zone=public --add-port=80/tcp --permanent
sudo firewall-cmd --reload

List open ports:
firewall-cmd --list-all