自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(26)
  • 资源 (1)
  • 收藏
  • 关注

原创 linux 创建软连接

ln -s /opt/app/xxx/shared/log /opt/app/xxx/current/log# 两个都用绝对路径# /opt/app/xxx/shared/log 为目标文件或文件夹# /opt/app/xxx/current/log 为软连接

2019-07-30 00:24:45 338

原创 Vue 和Rails项目混合使用,Nginx配置

待整理 location /mobile/account/users/mobile_account_index { root /opt/app/vue.xxx.com/; index index.html; try_files $uri /index.html $uri/; } location /static { ...

2019-07-27 15:16:33 355

原创 VSCODE 使用TabNine自动补全

使用TabNine 自动补全工具相关文章介绍:https://cloud.tencent.com/developer/news/410030安装:1.1 左边栏直接搜索 TabNine 安装;1.2 在代码编辑页直接输入(注意是 在代码编辑页,不是命令窗口使用)TabNine::version 可以查看版本2019-07-26 at 2.15 PM.p...

2019-07-26 14:19:08 18049 1

原创 SCSS 入门教程

https://www.jianshu.com/p/a99764ff3c41

2019-07-23 15:07:09 132

原创 Vue 集成富文本编辑器tinymce5

参考 https://segmentfault.com/a/1190000018358304Uncaught SyntaxError: Unexpected token < 问题解决:项目略有不同:2019-07-23 at 2.34 PM.png把文件目录搞对就不会有Uncaught SyntaxError: Unexpected tok...

2019-07-23 14:36:14 451

原创 每次登录都需要source ~/.bashrc 问题解决

在 ~/.bash_profile # 加载.bashrc文件if test -f .bashrc ; thensource .bashrc fi

2019-07-23 14:31:40 2975 2

原创 Ruby 替换手机号中间部分为*

phone.dup.tap{|p| p[3...8] = "*****"}

2019-07-22 11:30:46 384

原创 Grape 教程

https://www.cnblogs.com/cuimiemie/tag/grape/

2019-07-19 16:36:41 1303

原创 Rails Transaction 事务的使用处理

http://wjp2013.github.io/rails/rails-transactions/

2019-07-18 19:22:29 433

原创 MacOS zsh history命令显示操作时间

zsh 不必像bash一样需要配置~/.bashrcexport HISTTIMEFORMAT='%F %T '直接执行命令:$ history -E 1 2.12.2013 14:19 cd ..$ history -i 1 2013-12-02 14:19 history -E$ history -D 1 0:00 hist...

2019-07-18 18:01:30 6912

原创 Vue v-for :key的作用

数据变更时,使用:key绑定的key来更新指定的数据https://juejin.im/post/5aae19aa6fb9a028d4445d1a

2019-07-18 00:01:14 277

原创 Rails ActiveRecord 更新数据不更新updated_at的问题

如果 更新时 更新的字段没有发生变化 ,则updated_at不会变化,除非record.touch

2019-07-17 17:13:28 407

原创 Rails 5 更新数据不更新updated_at字段

Rails 5 updating a record without updating timestampshttps://blog.bigbinary.com/2016/05/09/rails-5-allows-updating-without-updating-timestamps.htmlinfo.jd = info.jd.gsub('责', '职责')info.save...

2019-07-15 17:05:29 344

原创 查看 Rails Console 命令历史记录

puts Readline::HISTORY.to_a

2019-07-15 11:00:56 396

原创 count(distinct)对比 group by

https://blog.csdn.net/bitcarmanlee/article/details/51280949

2019-07-11 23:23:28 507

原创 Charles 抓包

https://www.jianshu.com/p/5539599c7a25抓取Android 9.0系统时 出现https访问无法抓包unknown的问题,即使是装了证书,网上的配置方法太过繁琐,干脆使用IOS手机抓包。 ...

2019-07-11 19:06:40 87

原创 ORDER BY 使用CASE WHEN 排序

https://www.cnblogs.com/178mz/p/6428958.html

2019-07-11 19:00:13 629

原创 Ubuntu 发邮件

参考https://blog.csdn.net/mier9042/article/details/83656358安装mailutils和heirloom-mailxapt-get install mailutilsapt-get install heirloom-mailx配置vi /etc/s-nail.rc在文件最后添加以下配置注意第二行 smtp...

2019-07-06 22:34:12 618

原创 grep find使用-文件查找

find ./ -type f -name "*.txt" | xargs grep "对外"

2019-07-05 15:42:14 99

原创 ruby脚本 使用goaccess和request-log-analyzer定时分析nginx log和rails log生成报告

参考:http://siwei.me/blog/posts/analyze-your-rails-loghttp://siwei.me/blog/posts/analyze-nginx-log-using-goaccess安装好goaccess和request-log-analyzer后:date = Time.now.strftime('%Y%m%d')yesterday...

2019-07-05 13:08:28 257

原创 Nginx 阻断异常爬虫

# 阻断异常爬虫if ($http_user_agent ~* (Scrapy|HttpClient|linkfluence|Bytespider|system\.ini)) { return 403;}

2019-07-04 19:18:17 283

原创 服务器查看进程打开的文件数以及系统的限制数

https://my.oschina.net/dabird/blog/837784

2019-07-04 12:51:59 792

原创 Rails 大CSV文件字段修改

# 修改原文件中Email列字段,并保存为新csv文件write_parameters = { write_headers: true, headers: ["Id","Score","Text","Ip Address","Email","External Id","Response Date","Survey Source URL","Metric Type","Tags"]...

2019-07-03 13:51:02 112

原创 cat 显示文件指定行数内容

cat -n export20190702-4-ng8cew.csv| tail -n +1|head -n 10 # 第一行到第十行内容

2019-07-03 11:28:17 4118

原创 网站登录增加nginx 用户名密码校验

apt install apache2-utilshtpasswd -c -d /etc/nginx/pass_file username后输入两次密码# 然后nginx配置文件增加:auth_basic "登录认证";auth_basic_user_file /etc/nginx/pass_file;nginx -t # ok则nginx -s reloa...

2019-07-02 19:11:14 314 1

原创 ruby脚本监控puma内存重启策略

puts "== start checking..."main_process_command = "ps aux --sort rss |grep tcp://0.0.0.0:8888"main_process_result = `#{main_process_command}`main_process_lines = main_process_result.spli...

2019-07-01 12:19:17 258

ADT-20.0.0.ZIP

嗯 ,不错 !熬到ADT20.0.0 android开发必备!

2012-07-18

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除