转载须知:个人博客随意,记得署名.商用及大中型网站联系我先sodya#qq.com,否则小心"上榜"


加精博文?

本地搭建网站

  1. access denied : copy systems directory
  2. website not authorized : config file -> local deployment xxx.local
  3. database error : database.conf.php -> echo dbname,pass
  4. database rename : phpmyadmin
  5. mysql root password : mysql tools

this is not the right way. It usually goes like this:

the web site comes with document for development

try windows power shell

  1. bigger window with blue background
  2. has ls command
  3. still no command line edit shortcut such as “c-u,c-k”, resulting ugly ^M^U^K

conclusion: a bit better than cmd, definetly not comparable with shell

three type of OS with different type of new line

  1. unix(linux) \n
  2. window( dos ) \r\n
  3. macOS \r

so ,if you open a file with vim, and everything is fine, it must be using \n as new line

if it has an additional ^M at the end of every line, it must have been created in window

and if all lines are in a big line, it must have been created in MACOS


久不用QQ,一旦要用,把我紧张得,老担心没注意到消息,总是是不是看下右下角,混蛋的QQ对于已经打开的聊天窗口的提醒就很不显眼地在任务栏那边高亮了一下,害我两边都得照看,注意力简直不能集中啊!!现在知道在linux下能愉快地操作是多么舒服了!手指一直在键盘的感觉就是爽!!

php调试, 传统的做法是,php文件保存后刷新页面查看,

  1. 直接用curl看源代码是最好的
  2. 直接在vim调用curl命令,这样连tmux的pane都不用切换!

tickeys

http://minimul.com/increased-developer-productivity-with-tmux-part-5.html

听到熟悉的键盘敲击声音

http://vim.wikia.com/wiki/Avoiding_the_"Hit_ENTER_to_continue"_prompts

command! -nargs=1 Silent
\ | execute ':silent !'.<q-args>
\ | execute ':redraw!'

nnoremap ,e :Silent !tmux send-keys -t 0 'curl test.com/a.php' c-m<cr>


nnoremap ,w :silent !tmux send-keys -t 0 'date' c-m <cr>:redraw!<cr>


There are no comments on this post.