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)
最新文章
- linux用tc给软件应用或ip做qos限制下载上传速度
- linux/ubuntu交叉静态编译mips tmux和dropbear/openssl/openssh/bash
- 使用squashfs-tools和binwalk修改路由/光猫固件rootfs文件
- 此内容被密码保护
- openwrt/immortalwrt编译内核模块并修改版本号
- 联通贝尔光猫G-140W-UG修改为桥接/管理员密码并开启telnet
- linux/openwrt清空iptables连接跟踪状态表conntrack
- debian11或pve编译安装最新版qbittorrent-nox
- x86运行arm64 docker
- 编译纯净版k2p padavan支持802.11 kvr固件
最近回复
- fengfeng: N1 armbian 能有编译下内核吗。。我要开启can 不懂怎么操作
- 1: 方法一ngtcp2要改下:./configure PKG_CONFIG_PATH=/usr/l...
- 海运: 关闭服务器
- 海风: override.battery.charge.low以及override.battery.r...
- koldjf: 不能过滤
- 杰迪武士: 此文甚好甚强巨,依照此文在树莓派2 + Rasbian上部署成功 感谢博主美文共赏
- 海运: ups不知有没选项可设置此参数,不过你可以在另外一台电脑上安装nut客户端自动关机。
- kgami: 想请教一下,设置了的电脑自动关机之后,几秒后UPS怎么也跟着关机了,导致另外一台电脑没关机就断...
- 海运: 写的很详细了啊,/etc/nut/hosts.conf用以nut-cgi连接nut服务器参数,...
- ryan: 请问下nginx配置好了,怎么和这个nut链接呢?最后可视化管理这块能给个详细一点的教程么?谢谢。