Skip to content

Instantly share code, notes, and snippets.

@lucndm
Last active January 7, 2016 02:46
Show Gist options
  • Save lucndm/7894797a9b60959041d6 to your computer and use it in GitHub Desktop.
Save lucndm/7894797a9b60959041d6 to your computer and use it in GitHub Desktop.
Tắt mở firewall trên lunix, tạo http nhanh
Tạo Http nhanh để download file
python -m SimpleHTTPServer
Tắt firewall
iptables -F
Mở lại firewall
iptables-restore < /etc/sysconfig/iptables
Sử dung s3cmd để connect s3
s3cmd --configure
s3cmd get s3://
chinh file config : ~$ vim .s3conf
http://tecadmin.net/install-s3cmd-manage-amazon-s3-buckets/
====
Doc 10 dòng đầu
head -n 10 __file__
Doc 10 dòng cuối
tail -n 10 __file__
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment