This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
# Example of a user's .screenrc file | |
# | |
# http://www.orkut.com/CommMsgs.aspx?cmm=1988&tid=4 | |
# This is how one can set a reattach password: | |
# password ODSJQf.4IJN7E # "1234" | |
multiuser on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Unix中的screen是个多元化多功能的全屏窗口管理器,习惯了你会觉得它比windows的任务栏好用多了。 | |
下面是.screenrc文件,仅供参考。 | |
# | |
# ~/.screenrc | |
# | |
# 启动时不显示欢迎屏幕 | |
startup_message off | |
# 定义screen的功能键为Ctrl-Z。向终端输入Ctrl-Z时应按 Ctrl-Z z。 | |
escape ^Zz | |
# 屏幕缓冲区 1024 行。 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[default] /usr/local/rvm/gems/ruby-1.9.2-p180/gems/chef-0.9.12/lib/chef/mixin/command.rb:184:in `handle_command_failures': stderr | |
[default] : : stderr | |
[default] /etc/init.d/unicorn-vagrant stop returned 1, expected 0: stderr | |
[default] (: stderr | |
[default] Chef::Exceptions::Exec: stderr | |
[default] ) | |
: stderr | |
[default] ---- Begin output of /etc/init.d/unicorn-vagrant stop ---- | |
STDOUT: timeout: run: unicorn-vagrant: (pid 18739) 37s, want down, got TERMSTDERR: | |
---- End output of /etc/init.d/unicorn-vagrant stop ---- |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
➜ ~ cd workplace/shopqi | |
➜ shopqi git:(master) vagrant up | |
[default] Provisioning enabled with chef_solo... | |
[default] Importing base box 'lucid32-shopqi'... | |
[default] Matching MAC address for NAT networking... | |
[default] The guest additions on this VM do not match the install version of | |
VirtualBox! This may cause things such as forwarded ports, shared | |
folders, and more to not work properly. If any of those things fail on | |
this machine, please update the guest additions and repackage the | |
box. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
⌘T – Go to File | |
⇧⌘T – Go to Symbol – This works in the same way as Go to File but for within a specific file. | |
⌘L – Go to Line | |
⇧⌘L – Select Line | |
⌃⌘ + ARROW – Move Code | |
⇧⌃⌥V – Send selected to Pastie – Send the selected code over to Pastie with a private URL for sharing the code. | |
⌃S – Simple Search – Most folks know about ⌘F as it’s the same in most applications. This shortcut allows you to do a quick search in the current file iteratively. | |
⌘] and ⌘[ – Block indentation. | |
⌥⌘[ - Format Selection. | |
⇧⌃T – To-do list – This feature scans the project for code marked as ‘FIXME’, ‘TODO’ and ‘CHANGED’. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
form 嵌套form冲突 | |
//得到你的from | |
var form = document.forms[ 'yourForm ']; | |
//在这里手工指定提交给哪个ACTION | |
form.action = 'updateAction.do '; | |
//执行SUBMIT | |
form.submit(); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ct "字母" | |
shift + % |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
this.vtip = function() { | |
this.xOffset = -10; | |
this.yOffset = 10; | |
//为class为vtip的增加鼠标移进和移出时间 | |
$(".vtip").unbind().hover( | |
function(e) { | |
this.t = this.title; | |
this.title = ''; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
gem list -d // show the gems and the description of gem |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
when we use zsh ,we may get some problem on the keybord shortcuts.for example ,the shortcuts ctrl+a is going the head of a line ,but in zsh ,it is not occured! so we must change the bindkey. | |
~ ❯ bindkey | |
"^A"-"^C" self-insert | |
"^D" list-choices | |
"^E"-"^F" self-insert | |
"^G" list-expand | |
"^H" vi-backward-delete-char | |
"^I" expand-or-complete | |
"^J" accept-line |