07 2012 档案

摘要:sudo !!以 root 帐户执行上一条命令。python -m SimpleHTTPServer利用 Python 搭建一个简单的 Web 服务器,可通过 http://$HOSTNAME:8000 访问。:w !sudo tee %在 Vim 中无需权限保存编辑的文件。cd -更改到上一次访问的目录。^foo^bar将上一条命令中的 foo 替换为 bar,并执行。cp filename{,.bak}快速备份或复制文件。mtr google.comtraceroute + ping。!whatever:p搜索命令历史,但不执行。$ssh-copy-id user@host将 ssh ke 阅读全文
posted @ 2012-07-26 20:17 冰镇橘子汽水 阅读(160) 评论(0) 推荐(0)
摘要:<ul><div id="clock"></div> <script> function changeClock() { var d = new Date(); document.getElementById("clock").innerHTML = d.getFullYear() + "-" + (d.getMonth() + 1) + "-" + d.getDate() + " " + d.getHours() + ":" 阅读全文
posted @ 2012-07-26 12:19 冰镇橘子汽水 阅读(195) 评论(0) 推荐(0)
摘要:<script>function SetWinHeight(obj) { var win = obj; if (document.getElementById) { if (win && !window.opera) { if (win.contentDocument&& win.contentDocument.body.offsetHeight) win.height = win.contentDocument.body.offsetHeight; else if (win.Document ... 阅读全文
posted @ 2012-07-04 10:51 冰镇橘子汽水 阅读(363) 评论(0) 推荐(0)