Quantcast
Channel: otarim » soya sauce
Browsing latest articles
Browse All 10 View Live

一些奇怪好用的软件

Undelete Plus – 误删文件恢复 color-hunter – 主体颜色提取工具 to be continued…

View Article



python学习笔记

# coding=utf-8 中文编码 type: 类型检测 ~~命名以字母开头?~~ ** 幂 整数相除返回截断整数 解决的办法是将除数和被除数任意之一加小数点,或是加小数点和零 * 乘法或者重复字符串或者数组 >>> 'str' * 3 strstrstr 函数 id(object) 返回唯一id (arr重新赋值,那么id不再一样)...

View Article

mac下使用launchctl定时任务

launchctl通过使用sh脚本,配合plist配置文件实现定时任务,先看一个例子: 首先创建sh文件,必须保证它是可执行的(权限),我这里假设是savehtml.sh: cd /Users/username/Desktop/my.me/speed/ /usr/local/bin/node savehtml.js...

View Article

mac下编译openssl以及python

最近学习python的模块,发现引用httplib的HTTPConnection方法时,报AttributeError: 'module' object has no attribute...

View Article

python Module学习笔记

urllib urllib.urlopen(url,type[get|post],proxy) info 返回http响应头 getcode 返回状态值 geturl 返回相应url urlretrieve(url,path,callback,type) callback(已下载数据块,数据块大小,文件总大小) urllib.quote(string[,...

View Article


python下Image模块的编译安装

昨天做瀑布流用了两个免费的占位符服务,发现经常有请求问题,用起来赶脚非常不爽,所以打算自己做一个本地图片占位符,想使用nodejs来实现,node是实现需要依赖canvas包,按照https://github.com/LearnBoost/node-canvas/wiki/Installation—OSX的方式一步步安装,发现在安装pkg-config的时候出错,按照http://blog.csdn...

View Article

mac下配置nginx环境

下载nginx二进制包,解压… 下载pcre,解压到nginx的根目录下 执行(最后一个参数在osx 10.7+以上的系统必须加上,用于忽略openssl缺失api造成的错误提示,否则无法成功编译) sudo ./configure --prefix=/usr/local/nginx --with-pcre="./pcre-8.34/" --with-http_ssl_module...

View Article

mac os下使用dnsmasq搭建本地缓存服务器

最近访问国内网站非常的慢..让我一度以为我家里网络出了问题,清了浏览器dns缓存,禁用各种插件,清了系统dns缓存,未果…想了一下,把google dns卸下来,立马就解决了问题.看来问题出在dns解析这一块.但是不用google dns或者openDNS的话又很难忍受国内运营商dns劫持的问题,而且不用google dns我平时访问国外网站又有点慢的,有问题找G娘....

View Article


curl以及wget

curl curl 查看网页源码 -o 保存文件 -L 重定向的话自动跳转 -i 显示 response headers + content -I 只显示 response headers -v 显示通信过程(端口连接 + response headers) --trace outputfile 保存详细通信信息 ?query=value 发送 get 请求...

View Article


五颜六色的iterm2

首先修改.bash_profile: vim ~/.bash_profile export CLICOLOR=1 export LSCOLORS=GxFxCxDxBxegedabagaced export PS1='\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$' 接着修改iterm2的report terminal...

View Article
Browsing latest articles
Browse All 10 View Live




Latest Images