Sunday, May 14, 2017

Best flight booking websites

https://www.flychina.com
https://www.kayak.com/
https://www.justfly.com/
http://www.airfarewatchdog.com/

If you find best price, also check official website, sometimes they have promotion which can save you additional amount.

1.中文常用机票网站大全
www.qunar.com
www.ctrip.com
www.taobao.com (阿里的飞猪)
www.kuxun.com
www.yiqifei.com
www.flychina.com
www.e-traveltochina.com

2. 英文常用机票网站大全
www.kayak.com

kayak是众所周知的机票网站就不多介绍了,在他家订机票需要注意的是 :机票过分追求便宜价格时,把不同航空公司的航段拼凑一起,会造成一些转机延误、行李等问题)

www.priceline.com

priceline是目前美国最大的在线旅游公司。在Priceline网站,最直观的可选项目就是机票、酒店、租车、旅游保险,机票价格偏贵。他家的bid your price的业务,这个功能支持在机票紧张时你输入一个比较低的报价,系统会自动征询所有的航空公司。如果有航空公司愿意接受这个报价 ,你就赚到了。

www.studentuniverse.com

学生可以试一下,需要是由edu结尾的邮箱来注册订购。

www.travelocity.com

Travelocity 类似于国内的E龙,携程,同程,去哪儿等预订服务类网商,机票搜索引擎。

www.lastminute.com

就像它的名字,这个网站是那些不到起飞前不买机票的人的救命稻草。

www.Expedia.com

超级牛的旅行预订网站。

还有像Cheapoair,Hotwire等等吧,这些网站如果有coupon就会有超值机票。
 

Monday, May 8, 2017

Copy folder from local to remote or vice versa

Option 1: scp -r
To copy all from Local Location to Remote Location (Upload)
scp -r /path/to/file username@hostname:/path/to/destination

To copy all from Remote Location to Local Location (Download)
scp -r username@hostname:/path/to/file /path/to/destination

Custom Port where xxxx is custom port number
scp -r -p xxxx username@hostname:/path/to/file /path/to/destination

Copy on current directory from Remote to Local
scp -r username@hostname:/path/to/file .


Option 2: zip to file then scp
Better to first compress catalog on remote server:
tar czfP backup.tar.gz /path/to/catalog

Secondly, download from remote:
scp user@your.server.example.com:/path/to/backup.tar.gz .

At the end, extract the files:
tar -xzvf backup.tar.gz

Option 3: sftp
$ sftp user_remote@remote_ip
sftp> cd /path/to/remoteDir
sftp> get -r remoteDir

Transfer files between Host and Client using Microsoft Remote Desktop

Transfer files between Host and Client using Microsoft Remote Desktop

1. Open Microsoft Remote Desktop for Mac
2. Goto "My Desktops" and choose your Connection (either to either Mac or Windows)
3. Select "Edit"
4. Goto the Tab "Redirection" in Edit dialog
5. Check "Enable Folder redirection"
6. On the bottom, click the "+" sign, following select the "Path" under "Browse" you want to redirected
7. When you connect to the Remote Computer you can see the redirected Folder under "Computer" (You might need restart the remote session to make redirection take effect)
8. From remote Windows, you can access the redirected folder from Mac

PS: Microsoft Remote Desktop is a free Mac OSX app available on apple store