会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
余文涛的烂笔记
好记性不如烂笔头
博客园
首页
新随笔
订阅
管理
上一页
1
···
3
4
5
6
7
8
9
10
11
···
14
下一页
2015年9月2日
youtube视频批量下载
摘要: youtube 下载视频脚本:得到下载列表:download_list 使用youtube-dl下载 附 youtube-dl 安装:
阅读全文
posted @ 2015-09-02 10:41 tommy.yu
阅读(2025)
评论(0)
推荐(0)
2015年8月27日
centos cluster 切换
摘要: clusvcadm -e IPService -m appserver1
阅读全文
posted @ 2015-08-27 13:10 tommy.yu
阅读(306)
评论(0)
推荐(0)
2015年8月13日
tornado 非阻塞方法
摘要: http://sebastiandahlgren.se/2014/06/27/running-a-method-as-a-background-thread-in-python/
阅读全文
posted @ 2015-08-13 16:42 tommy.yu
阅读(220)
评论(0)
推荐(0)
2015年8月5日
tornado + supervisor + nginx 的一点记录
摘要: 看了比较多的blog基本都是这个架构: supervisor app1 | app2 | .... | appn | nginx | redis 统一都交给supervisor来管理。总觉得哪里不对: 1) nginx作为supervisor的子进程,会有问题,它貌似会不断的去执行启动(导致大量的错
阅读全文
posted @ 2015-08-05 10:02 tommy.yu
阅读(467)
评论(0)
推荐(0)
2015年7月27日
supervisor的配置
摘要: 看了下文档,比较多。http://www.supervisord.org/ 抱着试试又不会怀孕的心态,trying,碰了几鼻子灰,记录如下, 方便大家 1. 安装 2. 注意看安装日志,有一个东东:echo_supervisord_conf 执行会发现,这个用于生成标准的配置文件(实际上,我直接略过
阅读全文
posted @ 2015-07-27 17:41 tommy.yu
阅读(342)
评论(0)
推荐(0)
2015年7月15日
python md5加密中文
摘要: 会失败,报告ascii码不能解码0x.... 原因是md5会自动将被加密的数据转成字节码,如果没有详细制定编码,则可能采用了其他编码(比如ascii), 因此要制定编码进行转码,如下: ref:http://bytes.com/topic/python/answers/842255-md5-hash
阅读全文
posted @ 2015-07-15 16:23 tommy.yu
阅读(1276)
评论(0)
推荐(0)
微信app支付,服务端对接
摘要: 首先,文档不给力,不吐槽了。 遇到的坑如下: 1. mch_id和appid没有关联关 系 这个没有花太久,参考了csdn某君的建议,直接邮件给相关技术团队(wepayTS@tencent.com)。 告知,其实对的mch_id是多少。 (帐号管理比较烂还是为了安全原因,总之无从查询这个对应关系,必
阅读全文
posted @ 2015-07-15 12:07 tommy.yu
阅读(908)
评论(0)
推荐(0)
2015年6月29日
git 忽略文件权限
摘要: 发现.git/config 中新增了一行: ref: http://blog.sina.com.cn/s/blog_630bf12f01011r83.html
阅读全文
posted @ 2015-06-29 09:26 tommy.yu
阅读(663)
评论(0)
推荐(0)
2015年6月12日
linux 终端全局代理设置
摘要: http://www.webupd8.org/2010/10/how-to-set-proxy-for-terminal-quick.html 即 取消代理:
阅读全文
posted @ 2015-06-12 16:51 tommy.yu
阅读(1564)
评论(0)
推荐(0)
centos 谷歌浏览器安装
摘要: 首先,这个是坑 http://www.tecmint.com/install-google-chrome-on-redhat-centos-fedora-linux/ 安装会报错,按照错误找到以下资源,验证ok:https://www.centos.org/forums/viewtopic.php?
阅读全文
posted @ 2015-06-12 16:31 tommy.yu
阅读(263)
评论(0)
推荐(0)
putty快速设置本地代理
摘要: sudo plink -D 127.0.0.1:8888 -l root -P 443 -pw xxx 104.xxx.xxx.xxx
阅读全文
posted @ 2015-06-12 15:45 tommy.yu
阅读(747)
评论(0)
推荐(0)
centos rpmforge repo
摘要: 在这里找到合适的rpm包:http://pkgs.repoforge.org/rpmforge-release/ 下载 安装 即可。 这样就可一直接使用rpmforge的repo进行快捷安装rpm包了。比如centos安装putty
阅读全文
posted @ 2015-06-12 09:03 tommy.yu
阅读(423)
评论(0)
推荐(0)
2015年6月11日
mysql 同步
摘要: http://dev.mysql.com/doc/refman/5.5/en/replication-howto.html http://blog.csdn.net/mycwq/article/details/17136001 http://stackoverflow.com/questions/7
阅读全文
posted @ 2015-06-11 21:23 tommy.yu
阅读(127)
评论(0)
推荐(0)
2015年6月8日
apscheduler 排程
摘要: https://apscheduler.readthedocs.org/en/v2.1.2/cronschedule.html dow注意,第一天是周一,不是周日。以下为以上参数的有效表达: 例子:
阅读全文
posted @ 2015-06-08 09:14 tommy.yu
阅读(430)
评论(0)
推荐(0)
2015年6月5日
gedit 格式化json
摘要: http://www.connorgarvey.com/blog/?p=264
阅读全文
posted @ 2015-06-05 10:39 tommy.yu
阅读(585)
评论(0)
推荐(0)
centos终端中mysql中文显示乱码的处理
摘要: http://stackoverflow.com/questions/3513773/change-mysql-default-character-set-to-utf-8-in-my-cnfhttps://dev.mysql.com/doc/refman/5.0/en/charset-configuration.html编辑 /etc/my.conf文件,增加以下内容 [client] def...
阅读全文
posted @ 2015-06-05 09:17 tommy.yu
阅读(308)
评论(0)
推荐(0)
2015年6月1日
centos 终端 字体颜色
摘要: 默认情况下,没有颜色。 https://www.centos.org/docs/2/rhl-gsg-en-7.2/ls-color.html git也默认没有颜色,破解如下: https://git-scm.com/book/tr/v2/Customizing-Git-Git-Configurati
阅读全文
posted @ 2015-06-01 10:19 tommy.yu
阅读(1130)
评论(0)
推荐(0)
git分支管理策略
摘要: http://www.ruanyifeng.com/blog/2012/07/git.html https://www.digitalocean.com/community/tutorials/how-to-use-git-branches
阅读全文
posted @ 2015-06-01 08:37 tommy.yu
阅读(153)
评论(0)
推荐(0)
2015年5月28日
[mysql]max_allowed_packet ,centos
摘要: 在通过脚本向mysql写入大量测试数据时,出现这个问题,记录下: https://dev.mysql.com/doc/refman/5.5/en/packet-too-large.html 修改/etc/my.cnf 文件,修改如下: 在[mysqld]下面添加: 重启mysqld服务即可。
阅读全文
posted @ 2015-05-28 20:00 tommy.yu
阅读(437)
评论(0)
推荐(0)
[mysql] Some non-transactional changed tables couldn't be rolled back
摘要: 使用peewee的事务时,碰到一个郁闷的问题,事务似乎无效! 于是简化了下模型,写了简单的测试代码,发现问题,如题所示。 找到解答: https://github.com/etianen/django-reversion/issues/362 https://dev.mysql.com/doc/re
阅读全文
posted @ 2015-05-28 19:15 tommy.yu
阅读(882)
评论(0)
推荐(0)
上一页
1
···
3
4
5
6
7
8
9
10
11
···
14
下一页