This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* 加解密类 | |
* | |
* @author iyaozhen | |
* @date: 2016-11-12 | |
*/ | |
class Encrypter | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* get sys http proxy conf | |
* base from system PATH,and Windows get from Internet Settings | |
* | |
* @return array | |
*/ | |
function getHttpProxyConf() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
# https://cn.wordpress.org/plugins/cache-enabler/ | |
# rebuild cache according to sitemap.xml | |
import os | |
import requests | |
import xml.etree.ElementTree as ET | |
import time | |
import shutil |