https://github.com/feelinglucky/php-readability/
http://code.fivefilters.org/php-readability
提取正文算法readability PHP实现
发布时间:July 29, 2014 // 分类:PHP // No Comments
Firefox下JS修改about:config配置代理服务器
发布时间:July 28, 2014 // 分类:Firefox // No Comments
var prefs = Components.classes["@mozilla.org/preferences-service;1"]
.getService(Components.interfaces.nsIPrefService);
prefs = prefs.getBranch("network.proxy.");
prefs.setIntPref("type", '1');
prefs.setIntPref("http_port", '3128');
prefs.setCharPref('http', '192.168.1.1')
prefs.setBoolPref('socks_remote_dns', 'true')
//socks将http修改为socks
更多参数:https://developer.mozilla.org/en-US/Add-ons/Code_snippets/Preferences#nsISupportsString
Python处理同义词
发布时间:July 23, 2014 // 分类:Python // No Comments
下载WordNet词库:
wget http://wordnetcode.princeton.edu/3.0/WNprolog-3.0.tar.gz
安装Python模块Whoosh解析词库:
yum -y install python-pip
pip install whoosh
直接加载词库文件并解析:
from whoosh.lang.wordnet import Thesaurus
t = Thesaurus.from_filename("wn_s.pl")
print t.synonyms("hail")
使用索引,生成索引:
from whoosh.filedb.filestore import FileStorage
t = Thesaurus.from_filename("wn_s.pl")
fs = FileStorage("index")
t.to_storage(fs)
通过索引解析:
from whoosh.filedb.filestore import FileStorage
from whoosh.lang.wordnet import Thesaurus
fs = FileStorage("index")
t = Thesaurus.from_storage(fs)
print t.synonyms("hail")
记将域名从Godaddy转到Maddogdomains
发布时间:July 23, 2014 // 分类: // No Comments
1.Godaddy处解锁域名
2.Godaddy处Email Authorization code
3.Maddogdomains处申请转移相应域名并付款
4.Maddogdomains发送邮件附Transaction ID和Security Code
5.登录Maddogdomains账户Pending Transfers添加Transaction ID和Security Code及Godaddy的Authorization code
6.收到Godaddy的域名转移提醒邮件,无操作
7.登录Godaddy Pending Transfers Out立即同意转出
8.此时Godaddy帐户已无转出的域名,Maddogdomains刷新即可看到转入的域名,整个过程历时10分钟。
分类
- Apache (13)
- Nginx (45)
- PHP (86)
- IIS (8)
- Mail (17)
- DNS (16)
- Cacti (14)
- Squid (5)
- Nagios (4)
- Puppet (7)
- CentOS (13)
- Iptables (23)
- RADIUS (3)
- OpenWrt (41)
- DD-WRT (1)
- VMware (9)
- 网站程序 (2)
- 备份存储 (11)
- 常用软件 (20)
- 日记分析 (10)
- Linux基础 (18)
- 欧诺代理 (0)
- Linux服务 (18)
- 系统监控 (4)
- 流量监控 (7)
- 虚拟化 (28)
- 伪静态 (2)
- LVM (3)
- Shell (18)
- 高可用 (2)
- 数据库 (16)
- FreeBSD (3)
- 网络安全 (25)
- Windows (35)
- 网络工具 (22)
- 控制面板 (3)
- 系统调优 (10)
- Cisco (3)
- VPN (5)
- ROS (20)
- Vim (14)
- KMS (4)
- PXE (2)
- Mac (1)
- Git (1)
- PE (1)
- LNS (2)
- Xshell (7)
- Firefox (13)
- Cygwin (4)
- OpenSSL (9)
- Sandboxie (3)
- StrokesPlus (1)
- AutoHotKey (4)
- Total Commander (3)
- WordPress (3)
- iMacros (6)
- Typecho (2)
- Ollydbg (1)
- Photoshop (1)
- 正则 (3)
- Debian (3)
- Python (8)
- NoSQL (6)
- 消息队列 (4)
- JS (7)
- Tmux (3)
- GO (7)
- HHVM (2)
- 算法 (1)
- Docker (2)
- PT (15)
- N1 (16)
- K2P (6)
- LUKS (4)
最新文章
- sftpgo为ftp/webdav添加支持软链接symlink目录和文件patch
- sftpgo为ftp/webdav/sftp添加匿名anonymous访问
- 使用avahi配置mdns/dns-sd网络发现samba/ftp
- OpenWrt/PandoraBox多网段转发udp广播包
- rclone加密备份目录文件
- rsync/rclone对比目录及同步
- samba/smb文件共享显示短文件名
- OpenWrt/PandoraBox多网段中继转发mDNS Reflector
- openresty/nginx lua动态更新stream upstream/tcp udp端口转发服务器
- openwrt/PandoraBox使用dnsmasq替换odhcpd提供SLAAC分配ip及禁用ipv6 dns
最近回复
- 海运: ups不知有没选项可设置此参数,不过你可以在另外一台电脑上安装nut客户端自动关机。
- kgami: 想请教一下,设置了的电脑自动关机之后,几秒后UPS怎么也跟着关机了,导致另外一台电脑没关机就断...
- 海运: 写的很详细了啊,/etc/nut/hosts.conf用以nut-cgi连接nut服务器参数,...
- ryan: 请问下nginx配置好了,怎么和这个nut链接呢?最后可视化管理这块能给个详细一点的教程么?谢谢。
- 1: /etc/config/fstab配置文件 https://openwrt.org/zh/do...
- 听雨看雪: 找了好久,终于找到UP主,给出的正确解决方案,太感谢了,困扰大半年的问题,重装了N道PVE系统...
- zr: 大佬,这个bash-completion是从哪个源搞到的
- 姚生: 要要下载
- 阿东: 我在编译树莓派的时候也遇到同样的问题,后来发现是make menuconfig 的时候忘了带环...
- crowjin: 你确定这能过滤??不是所有请求都返回空地址::?