This file contains hidden or 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
function FindProxyForURL(url, host) { | |
var tunnel = 'PROXY 127.0.0.1:8580; DIRECT;'; | |
var direct = 'DIRECT;'; | |
if (isPlainHostName(host) || (host === '127.0.0.1') || (host === 'localhost')) { | |
return direct; | |
}; | |
var whiteList = { | |
'cn' : 1, |
This file contains hidden or 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
# Generated by mksrcinfo v8 | |
# Wed May 25 13:25:08 UTC 2016 | |
pkgbase = gdcm | |
pkgdesc = a C++ library for DICOM medical files | |
pkgver = 2.6.3 | |
pkgrel = 4 | |
url = http://gdcm.sourceforge.net | |
arch = i686 | |
arch = x86_64 | |
license = BSD |
This file contains hidden or 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
[http] | |
proxy = http://127.0.0.1:8087 | |
sslVerify = false #注意一定要添加这一行用以解决“ SSL certificate problem: unable to get local issuer certificate” | |
[https] | |
proxy = http://127.0.0.1:8087 |
This file contains hidden or 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
import hashlib | |
import binascii | |
def md5(s): | |
m = hashlib.md5() | |
m.update(s) | |
print(m.hexdigest()) | |
print(binascii.hexlify(m.digest())) |
This file contains hidden or 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
--- r8168-8.042/src/r8168_n.c.orig 2016-08-22 14:22:48.694631079 +0800 | |
+++ r8168-8.042/src/r8168_n.c 2016-08-22 14:24:53.279449184 +0800 | |
@@ -4320,7 +4320,11 @@ | |
features &= ~NETIF_F_ALL_TSO; | |
if (dev->mtu > ETH_DATA_LEN) { | |
features &= ~NETIF_F_ALL_TSO; | |
+#if LINUX_VERSION_CODE < KERNEL_VERSION(4,5,0) | |
features &= ~NETIF_F_ALL_CSUM; | |
+#else | |
+ features &= ~NETIF_F_CSUM_MASK; |
This file contains hidden or 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 python | |
import re | |
from urllib.request import urlopen | |
url = 'https://its.pku.edu.cn/oper/liebiao.jsp' | |
with urlopen(url) as response: | |
the_page = response.read().decode('gbk') | |
loc1 = the_page.find('netmask') |
This file contains hidden or 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
表格受密码保护时,我们修改数据Excel弹出“您试图更改的单元格或图表受保护,因而是只读的。 | |
若要修改受保护单元格或图表,请先使用‘撤消工作表保护’命令(在‘审阅’选项卡的‘更改’组中)来取消保护。 | |
可能会提示输入密码。这时候我们可以用VBA宏代码破解法来破解表格保护密码: | |
第一步:打开该文件,先解除默认的“宏禁用”状态,方法是点击工具栏下的“选项”状态按钮, | |
打开“Microsoft Office安全选项”窗口,选择其中的“启用此内容”,“确定” | |
再切换到“视图”选项卡,点击“宏”→“录制宏”,出现“录制新宏”窗口,在“宏名”定义一个名称为: | |
PasswordBreaker,点击“确定”退出; | |
第二步:再点击“宏”→“查看宏”,选择“宏名”下的“PasswordBreaker”并点击“编辑”, | |
打开“Microsoft Visual Basic”编辑器,用如下内容替换右侧窗口中的所有代码: |
This file contains hidden or 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
setInterval(function() { | |
var childIframeArr = document.getElementsByTagName('iframe'); | |
var newDocument = childIframeArr[0].contentWindow.document; | |
var del = newDocument.getElementsByClassName("del del_btn author_display"); | |
if (del.length > 0) { | |
del[0].click(); | |
setTimeout(function() { | |
var del_yes = document.getElementsByClassName("qz_dialog_layer_btn qz_dialog_layer_sub"); | |
if (del_yes.length > 0) { | |
del_yes[0].click(); |
This file contains hidden or 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
{ | |
"createBy": "http://liujiacai.net/gooreplacer/", | |
"version": "3.9", | |
"createAt": "Mon Nov 12 2018 12:22:14 GMT+0800 (China Standard Time)", | |
"redirect-rules": [ | |
{ | |
"src": "cdnjs.cloudflare.com", | |
"kind": "wildcard", | |
"dst": "cdnjs.loli.net", | |
"enable": true |
This file contains hidden or 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 bash | |
command -v mediainfo >/dev/null 2>&1 || { echo >&2 "mediainfo 命令不存在,请先安装 mediainfo。"; exit 1; } | |
command -v ffmpeg >/dev/null 2>&1 || { echo >&2 "ffmpeg 命令不存在,请先安装 ffmpeg。"; exit 1; } | |
out_size=24 | |
length=$(mediainfo --Inform="Video;%Duration%" "$1") | |
bitrate_all=$(echo "${out_size}*8192/(${length}/1000)" | bc) | |
bitrate_audio_orig=$(mediainfo --Inform="Audio;%BitRate%" "$1") |