Upgrade all packages:
winget upgrade -u -r # 将所有可用的包更新为最新的应用程序(r),即使无法确定其当前版本(u)Ignore a package:
winget pin add --id Mozilla.Thunderbird --blocking| basedir="/usr" | |
| appdir="$basedir/bin" | |
| datadir="$basedir/share/LDCad" | |
| cfgdir="/etc" | |
| cfgfn="$cfgdir/LDCad.cfg" | |
| userdir="<userAppDataDir>/LDCad" | |
| scdir="$basedir/share/applications" | |
| scfn="$basedir/share/applications/LDCad.desktop" | |
| mimebasedir="$basedir/share/mime" | |
| mimedir="$mimebasedir/packages" |
| static function OnBeforeRequest(oSession: Session) { | |
| if(oSession.host.toLowerCase()=="cdn.cnbj1.fds.api.mi-img.com"){ | |
| oSession["ui-color"]="yellow"; | |
| oSession.host="192.168.1.100"; | |
| } | |
| if(oSession.host.toLowerCase()=="dxxsv.cyol.com"){ | |
| oSession["ui-color"]="yellow"; | |
| var str = oSession.url; | |
| if(str.search(/[0-9]*dxx[0-9]*\.mp4/i) > 0){ | |
| oSession["ui-color"]="purple"; |
| ############################################## | |
| ## Script to convert .doc or .docx to .pdf ## | |
| ## Written by Henry Ling ## | |
| ############################################## | |
| import os | |
| from time import strftime | |
| from win32com import client | |
| # Counts the number of files in the directory that can be converted |
| import os | |
| from time import strftime | |
| import time | |
| from win32com import client | |
| from tqdm import * | |
| # Counts the number of files in the directory that can be converted | |
| def n_files(directory): | |
| total = 0 |
VLC 定制界面的配置文件位于
%APPDATA%/vlc/vlc-qt-interface.ini~/.config/vlc/vlc-qt-interface.conf(仅支持 apt 安装的 VLC)用编辑器打开该配置文件,会看到如下格式:
[General]
geometry="..."| # coding:utf-8 | |
| import requests # 导入网页请求库 | |
| import re # 导入正则表达式库 | |
| import openpyxl | |
| from bs4 import BeautifulSoup # 导入网页解析库 | |
| name_pattern = r'姓名:(.*?)</td>' | |
| name_list = [] | |
| tongdian_pattern = '<font class="style8">通信电子线路</font>' | |
| tongyuan_pattern = '<font class="style8">通信原理(双语)</font>' |
待更新