H-1
我们记录,我们监控,我们管理
不做事,不BB
使用composer require 本地GitLab中的项目,会把.git文件夹一块拉进来,从而在commit的时候报子项目问题
在配置composer repositories时,type使用的是git,则在提取时,等同于git clone,则会连着.git一起clone下来
正确的方法应该是参考 https://docs.gitlab.com/ee/user/packages/composer_repository/
成功后会在项目的Package Registry的菜单下看到他
1 | composer config repositories.<group_id> composer https://gitlab.example.com/api/v4/group/<group_id>/-/packages/composer/ |
1 | composer config gitlab-domains <你的GitLab地址> |
1 | vim $(grep -rl test .) |
或者Vim内
1 | :args `grep -rl test .` |
参考: https://unix.stackexchange.com/questions/77395/grep-l-xargs-vim-generates-a-warning-why
对于Linux命令参数中被误解析成-xxx的参数问题,如
1 | [root@HBSpy extreme]# rename -mib |
可以在参数前加–
1 | [root@HBSpy extreme]# rename -- -mib .mib extreme-* |
参考: https://unix.stackexchange.com/questions/11376/what-does-double-dash-mean
More precisely, a double dash (–) is used in most bash built-in commands and many other commands to signify the end of command options, after which only positional arguments are accepted.
Example use: lets say you want to grep a file for the string -v - normally -v will be considered the option to reverse the matching meaning (only show lines that do not match), but with – you can grep for string -v like this:
grep – -v file
从CentOS-7-x86_64-Minimal编译安装Vim8
1 | yum install python3 python3-devel |
1 | ./configure --enable-pythoninterp=yes --enable-python3interp=yes --enable-multibyte --enable-luainterp=yes --enable-perlinterp=yes --enable-rubyinterp=yes --with-python3-command=python3 --enable-cscope |
1 | cd src # 官方推荐你去src目录make |
enable了不等于装上了,之后最好vim --version查看下
1 | [root@localhost vim]# vim --version |
你看这个lua和ruby的interp其实就没装上
UI Recorder jWebDriver 不支持括号开头的XPath, 如
1 | (//input)[2] |
原因在于jWebDriver错误的认为括号开头的是css selector
修改lib/elements.js
1 | // using = /^\.?\//.test(value)?'xpath':'css selector'; |
1 | $input = shell_exec($cmd = '/usr/bin/python3 ' . APP_PATH . "/library/OpsKG/input_jieba.py $input"); |
无输出,python其实并没有收到正确的中文输入,exec的中文编码问题
需要先设置exec的环境变量
1 | putenv('LC_ALL=en_US.UTF-8'); |
或在命令前export LANG=en_US.UTF-8;
Win10 内置的MD5 sum
1 | $ CertUtil -hashfile /d/BaiduYunDownload/绳缚本事高清PDF版.pdf |
lrzsz在tmux下并不可用,但有方法取消rz/sz的卡死状态
rz: 5次ctrl+x
sz: 4次ctrl+x
fg
命令恢复。比如top -d1 然后ctrl+z,到后台,然后fg,重新恢复