摘要:
Selection Criteriadouble line;provide username, hostname, current directory;provide information of git branch and commit status;provide command exit code;prompt is easy to distinguished from command r... 阅读全文
摘要:
Find命令格式:find 其中搜索范围是一个目录名,指定条件包括文件名、文件属性(修改时间所属用户等)、所在位置特点(如目录深度等)等;指定动作包括打印(-print)等; 例如:find $HOME -name "*.sh",查找用户根目录下所有以.sh结尾的文件,除了按文件名查找,find还可以按文件大小、类型、所属用户、用户组、修改时间、是否为空等,还可以指定找到文件后要执行的动作,... 阅读全文
摘要:
subprocess.callThis is the recommended way to run shell commands in Python compared with old-fashioned os module.This is a "real-time" method, which means you can get the shell output on the fly, comp... 阅读全文
摘要:
翻译环境包括两个部分,写作部分和电子书,Windows上,前者用gVim,后者用SumatraPDF,二者都是绿色软件,都可以定义成暗色系风格。gVim全屏需要使用一个叫做gvimfullscreen_win32的工具,下载安装包,把gvimfullscreen.dll解压到gvim.exe所在目录下(d:\Apps\Vim\vim72\),然后在_vimrc中加一行:map :call lib... 阅读全文
摘要:
RedHat今天晚上发现服务器上vi的界面提示变成了乱码,只能将XShell的编码改为GBK才能正常显示,导致consolas字体无法使用,GBK编码下的字体丑陋无比,无法忍受,一轮google之后终于发现有人改了/etc/sysconfig/i18n文件,解决方法就是把GB18030改回到UTF-8:root用户下修改/etc/sysconfig/i18n文件,将LANG=zh_CN.GB180... 阅读全文
摘要:
Check the current sshd status:service sshd statusStart sshd service:service sshd startSet sshd autostart on system startupchkconfig sshd onList the current autostart statuschkconfig --list |grep sshdO... 阅读全文
摘要:
Create a public repo on github, you can add README or License files on the master branch, suppose the url is:https://github.com/leetschau/don4.gitGet the private repo:$ git clone https://leechau@bitbu... 阅读全文
摘要:
Brief installation steps:Install git and zsh via yum;'git clone' autojump and oh-my-zsh from an internet-connected host;Install autojump and oh-my-zsh manually according to the instructions on their w... 阅读全文
摘要:
Host Machine[root@bocoty49 ~]# lsb_release -aLSB Version: :base-4.0-amd64:base-4.0-noarch:core-4.0-amd64:core-4.0-noarch:graphics-4.0-amd64:graphics-4.0-noarch:printing-4.0-amd64:printing-4.0-noarc... 阅读全文