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
import glob | |
import argparse | |
from wand.image import Image | |
import pdb | |
def convert2jpg(diag, pg=None): | |
with(Image(filename=diag,resolution=200)) as source: | |
images=source.sequence | |
pages=len(images) | |
if pg is not None: |
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
@"C:\Program Files\Git\usr\bin\perl" C:\yourpath\bin\ack.pl %* |
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
{ | |
"netId": "identity-net", | |
"chainCodeName": "CREvidence", | |
"oid": "", | |
"key": "_app_xyz12345678\\status" | |
} |
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
convert -verbose -density 150 -trim %* -quality 300 -flatten -sharpen 0x1.0 %*.jpg |
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
java -jar pdfbox-app-3.0.0-alpha2.jar merge -i=修改说明.pdf -i=对比.pdf -i=定稿.pdf -o=out.pdf |
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
for(var i=0;i<5;i++ ){ | |
fetch("https://byr.pt/mybonus.php?action=exchange", { | |
"headers": { | |
"accept": "text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.9", | |
"accept-language": "zh-CN,zh;q=0.9,en;q=0.8,ja;q=0.7,ru;q=0.6,zh-TW;q=0.5", | |
"cache-control": "max-age=0", | |
"content-type": "application/x-www-form-urlencoded", | |
"sec-ch-ua": "\" Not;A Brand\";v=\"99\", \"Google Chrome\";v=\"97\", \"Chromium\";v=\"97\"", | |
"sec-ch-ua-mobile": "?0", | |
"sec-ch-ua-platform": "\"Windows\"", |
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
ffmpeg -hwaccel cuvid -i meeting.mp4 -c:v h264_nvenc -crf 24 meeting_compressed.mp4 |
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
from docx import Document | |
import sys | |
from pathlib import Path | |
def dump(obj): | |
for attr in dir(obj): | |
print("obj.%s = %r" % (attr, getattr(obj, attr))) | |
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
from pathlib import Path | |
def checkAllPath(allFilePath): | |
for p in allFilePath: | |
# print(p) | |
if p.is_dir(): | |
continue | |
with open(p, "rb") as f: | |
content = f.read() |
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
ffmpeg -hwaccel cuvid -i in.MP4 -c:v h264_nvenc -c:a copy -crf 28 out.mp4 |
NewerOlder