2014年10月4日

Cool tool: Linux字符画figlet

摘要: 例如echo "Hi Reboot" | figlet _ _ _ ____ _ _ | | | (_) | _ \ ___| |__ ___ ___ | |_ | |_| | | | |_) / _ \ '_ \ / _ \ / _ ... 阅读全文

posted @ 2014-10-04 15:31 51reboot 阅读(409) 评论(0) 推荐(0)

TypeKit ,use online fonts

摘要: TypeKit ,use online fonts 相信做UI的同学们经常会碰到字体的取舍问题为了页面的兼容性经常要写像下面的 如果想用比较美观的不常见的字体只能图形化 今天我无意间发现了 typekit.com 只需在head里面加上如下代码 呵呵 wp插件? 当然有啦! 有兴趣的可以去try一下... 阅读全文

posted @ 2014-10-04 15:30 51reboot 阅读(310) 评论(0) 推荐(0)

Simple Python Dictionary :)

摘要: 摘自 http://github.com/panweizeng/home/blob/master/code/python/dict/dict.py 支持简单的Ch to En 和En to Ch我把它放在 /usr/bin/dict 1234567891011$ dict 白痴单词:白痴 音标: b... 阅读全文

posted @ 2014-10-04 15:28 51reboot 阅读(161) 评论(0) 推荐(0)

sshfs is cool,also LUFS & FUSE & AVFS

摘要: 曾经在windows下用winscp用得很爽一直想linux下有没有如此好用的东东 用过一段时间dolphin的fish://但兼容性不是很好 例如我 wine出来的npp就不认这种路径 偶然发现sshfs这一神器继而揪出LUFS FUSE AVFS LUFS is the Linux Userla... 阅读全文

posted @ 2014-10-04 15:27 51reboot 阅读(255) 评论(0) 推荐(0)

用python快速通过浏览器分享文件

摘要: cd /file/dir && python -m SimpleHTTPServer 8080#用浏览器访问8080端口 over! 阅读全文

posted @ 2014-10-04 15:25 51reboot 阅读(196) 评论(0) 推荐(0)

python time 转换&运算tips

摘要: 我们有几个以类似 2010.11.03.23.59 形式表示的字符串时间 想要进行一些运算 下面是一种简单的方法 点到为止 首先当然是import time 1time_str = "2010.11.03.23.59" #定义一个format模板format = "%Y.%m.%d.%H.%M" #... 阅读全文

posted @ 2014-10-04 15:24 51reboot 阅读(229) 评论(0) 推荐(0)

Web.py session用户认证

摘要: 调试一个用session来认证用户的程序 大概是这个样子 基本上可以当作webpy session认证的示例程序了#!/usr/bin/env python#coding=utf-8import webimport timeurls = ( '/', 'index', '/xml', '... 阅读全文

posted @ 2014-10-04 15:22 51reboot 阅读(462) 评论(0) 推荐(0)

Reboot运维开发Python-02

摘要: 阅读全文

posted @ 2014-10-04 15:21 51reboot 阅读(1043) 评论(0) 推荐(0)

Reboot运维开发Python-01

摘要: 阅读全文

posted @ 2014-10-04 01:00 51reboot 阅读(322) 评论(0) 推荐(0)

简单的内存池实现gko_alloc

摘要: 在用gpreftools优化gko_pool的时候我发现一个问题,malloc竟然成了性能瓶颈 由于在每个连接建立的时候gko_pool默认会为读写各分配2KB的buf备用,这个是比较固定的 每个连接的的生命周期会伴随着4KB大小的内存malloc & free 正好可以写个只能分配固定大小内存的“... 阅读全文

posted @ 2014-10-04 00:59 51reboot 阅读(281) 评论(0) 推荐(0)

导航