![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
工具
文章平均质量分 55
_hsc
寻常公司的一枚普通程序猿。产品上线时,优先祭天人员。此人平时涉猎比较广,啥都要去碰一碰。另外此人比较懒,不爱写博客。
展开
-
Centos7查看防火墙开放端口、状态、开放端口
查看防火墙状态命令:systemctl status firewalld[root@MyCloudServer home]# systemctl status firewalld● firewalld.service - firewalld - dynamic firewall daemon Loaded: loaded (/usr/lib/systemd/system/firewalld.service; enabled; vendor preset: enabled) Active:原创 2021-04-08 11:32:23 · 751 阅读 · 0 评论 -
gitlab13.7关闭用户邮箱验证方式
api方式参考Gitlab: 取消邮箱验证的方法(API方式)配置方式vim /opt/gitlab/embedded/service/gitlab-rails/app/models/app.rb# 将 confirmation: true 改成false 保存后gitlab-ctl reconfiguregitlab-ctl restart原创 2020-12-28 11:53:08 · 1634 阅读 · 2 评论 -
gitlab13.7 强制修改用户密码
命令记录下gitlab忘记账号密码强制更改密码方式gitlab-rails consoleuser = User.where(username: 'root').firstuser.password='newpassword'user.save!原创 2020-12-28 11:05:41 · 1105 阅读 · 0 评论 -
pyspider脚本编写指南
pyspider脚本编写指南projectproject 属性task任务调度script脚本约束BaseHandlerResponseproject脚本分为不同的 project,不同的 project 之间的任务互相独立,建议为不同的站点建立不同的 projectproject 属性group – 分组标识,暂时仅用于区分name – 脚本的名字,只允许 a-zA-Z0-9_status – 任务状态,只有处于 DEBUG 和 RUNNING 状态任务才会被执行rate – 每秒抓取页面个原创 2020-11-18 21:49:07 · 555 阅读 · 0 评论 -
python3.6+版本安装pyspider报错解决方案)
python3.7安装pyspider报错解决方案安装问题集合async=True, get_object=False, no_input=False):ImportError :pycurl: libcurl link-time ssl backend (openssl) is different from compile-time ssl backValueError: Invalid configuration: - Deprecated option 'domaincontroller': use原创 2020-11-16 23:41:17 · 698 阅读 · 0 评论 -
多种方式命令统计代码行数
多种方式命令统计代码行数shell 方式开源工具shell 方式统计java文件代码行数find . -name "*.java"|xargs cat|grep -v -e ^$ -e ^\s*\/\/.*$|wc -l此方式无法精准过滤掉代码中的注释参考文章一句shell命令搞定代码行数统计开源工具代码统计工具CLOC使用方式参考参考官方文档...原创 2020-10-13 10:53:59 · 1230 阅读 · 0 评论