
CM
文章平均质量分 68
NetMicrobe
这个作者很懒,什么都没留下…
展开
-
在 virtualbox 中使用 CentOs 6 & CentOS 7
1. 安装 增强功能 virtualbox Additions工具包 参考 VirtualBox Guest Additions on Fedora 25/24, CentOS/RHEL 7.3/6.8/5.111.1. 安装步骤“增强功能”要编译安装,so先安装 build essential : yum groupinstall "Development Tools"菜单: 设备 》安装...原创 2018-06-21 15:16:07 · 642 阅读 · 0 评论 -
jekyll plugin, 重写 site.categories / site.tags ,将 page 的 categories & tags 收纳进来。
重写 Jekyll::Site 的 tags 和 categories 方法,将 page 的 categories & tags 收纳进来。原版的 site.categories / site.tags 只包含 posts (_posts collection 中的带日期的 doc)gather_cates_tags.rb1234567891011121314...原创 2018-06-21 15:52:28 · 734 阅读 · 0 评论 -
执行 gem install 时,忽略 SSL 证书检查
参考: http://dharampal.in/2012/06/28/bypassing-ssl-certificate-checks-during-gem-installation/1. 现象 按照 gem 包有时候,会报错: ssl certificate error2. 解决 修改 .gemrc添加1:ssl_verify_mode: 0windows 上 .gemrc 存放在: c:\u...原创 2018-06-21 15:51:32 · 1944 阅读 · 1 评论 -
如何配置gitlab自动生成哪些label
参考: https://gitlab.com/gitlab-org/gitlab-ce/issues/7181. 问题 gitlab 中 some-project > Issues > Labels > “Generate a default set of labels”点击可以生成一系列的label如何自定义这些 labels 呢?2. 解决 修改 gitlab/lib...原创 2018-06-21 15:49:14 · 2915 阅读 · 1 评论 -
使用 git alias (pushall) 将branch 向所有 remote push
参考 https://stackoverflow.com/a/18674313创建个 pushall alias,命令前加感叹号 ! 表示是shell 命令。1git config --global alias.pushall '!git remote | xargs -L1 -I R git push R '使用方法:12# 将 master 分支push到所有remotegit p...原创 2018-06-21 15:47:53 · 521 阅读 · 0 评论 -
jekyll在windows上使用和调试
1. Windows 上调试 1.1. 解决中文文件名问题1.1.1. 修改ruby 库 URI::escape修改文件: ruby-2.1.7-x64-mingw32\lib\ruby\2.1.0\uri\common.rb修改: 在 escape 方法中 添加 us.encode!(“utf-8”)1234567891011121314151617 def...原创 2018-06-21 15:27:03 · 982 阅读 · 0 评论 -
使用 android adb命令 录像 screenrecord 和 截屏 screencap
参考: https://developer.android.com/studio/command-line/adb.html1. 快速截屏&录屏的 Windows 脚本 1.1. screencap.bat用法:screencap your-filename效果:命令执行目录生成截图文件:your-filename.png@echo offadb shell screencap /...原创 2018-06-21 15:23:43 · 2739 阅读 · 0 评论 -
notepad++ 删除空行
正则表达式替换查找目标: \r\n{0,1}[\s\t]*\r\n替换为: \r\n循环查找:勾选原创 2018-06-21 15:21:17 · 818 阅读 · 0 评论 -
nikto 进行web安全扫描
1. 安装 nikto 1.1. 安装 perlcentos 6.8 默认的 Perl 5.10 不行,报错 ERROR: Required module not found: Time::HiRes安装了最新的 Perl 5.26 可以运行1.2. 安装 libwhisker12345wget https://10gbps-io.dl.sourceforge.net/project/wh...原创 2018-06-21 15:18:30 · 7315 阅读 · 0 评论 -
ruby 和 rails 调试方法
1. console 命令行输入 irb1.1. rails consolerefer http://edgeguides.rubyonrails.org/command_line.html123bundle exec rails console或者bundle exec rails dbconsole1.2. 不打印返回值:在命令后面加上分号和0:“; 0”1your-command;...原创 2018-06-22 14:41:03 · 1149 阅读 · 0 评论