巽's 部落格

云自無心水自流


  • Home

  • Archives

munin

Posted on 2019-03-20
munin + nginx搭建服务器性能检测工具 参考: https://github.com/jnstq/munin-nginx-ubuntu https://www.cnblogs.com/rond/p/3777248.html https://serverfault.com/questions ...
Read more »

mongodb学习

Posted on 2019-03-19
### mongo命令行长查询可能导致后面的查询卡死,需要找到查询id,并杀掉 http://yangcongchufang.com/kill-mongo-ops.html
Read more »

内网穿透工具

Posted on 2019-03-14
ngrok ref: https://www.jianshu.com/p/5c9d77d7a8f9 https://www.nexmo.com/blog/2017/07/04/local-development-nexmo-ngrok-tunnel-dr/ frpref: https://gith ...
Read more »

cookie操作工具

Posted on 2019-03-13
在写爬虫时不免需要分析请求cookie,需要排查必要鉴权键值。这里介绍个Chrome插件 -> EditThisCookie 可以通过block每队键值,找到关键比如itunes connect的cookie,myacinfo即为鉴权键值 p.s.通过插件新增myacinfo,已设双重验证 ...
Read more »

MemoryError问题

Posted on 2019-03-06
问题由于跑脚本的GCE VM instance低配的g1-small,内存只有1.7GB,定时任务总是由于MemoryError被Kill掉 Error: 方案 添加虚拟内存 参考 Linux下如何添加虚拟内存 fdisk -l和df -Th命令来查看硬盘信息和挂载信息,来确定分区的大小 ...
Read more »

requests上传图片

Posted on 2019-02-11
前言 最近遇到一需求,需要程序上传图片,以前没接触过,故记之。 代码 通过浏览器开发者工具查看对应请求,如下图: 需要使用第三方库 => requests_toolbelt 附言 之前尝试使用requests, files参数,但总是报422 (‘{“err ...
Read more »

awesome_login_scripts

Posted on 2019-01-31
Twitter Mopub Metamarkets Google Admob Chartboost Facebook Yahoo Flurry Apple iTunes Connect Applovin Qimai translator
Read more »

csv的坑

Posted on 2018-11-29
问题 之前写过一个获取公司github上各项目仓库使用外链情况的脚本,每条信息以append方式写入csv文件,再上传BigQuery。脚本是在Mac上开发的,一切正常,后来迁移至Windows PC发现表格中多了很多的空行。 代码 解决方案 通过参考 https://www.crifan.c ...
Read more »

Mac虚拟环境下使用wxpython

Posted on 2018-11-07
问题 Mac下Python虚拟环境运行wxpython脚本,会报以下错误,无法运行脚本 解决方案 virtualenv/bin文件夹下创建sh文件(pythonw.sh),内容为 sh脚本中,PYTHON为本机python位置 Pycharm中配置如下 Pip wxPython ...
Read more »

google_spreadsheet_tips

Posted on 2018-11-01
Tips when export BigQuery SQL result to Google Spreadsheet (adunit hyperlink as one field in it), find all hyperlinks don’t work on newly auto created ...
Read more »
12

Schun Lee

13 posts
© 2019 Schun Lee
Powered by Hexo
|
Theme — NexT.Gemini v5.1.4