国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| import os | |
| import sqlite3 | |
| import biplist | |
| import time | |
| import datetime | |
| # 支持High Sierra以上版本 低版本相关原理可以参考 https://github.com/ydkhatri/MacForensics/blob/master/macNotifications.py | |
| # dbname = '/private/var/folders/v0/46qvxfw92jgdtzrhhm201j2c0000gp/0/com.apple.notificationcenter/db2/db' | |
| dbname = '/Users/msir/work/db.db' | 
| -- Script for DEVONthink 3 | |
| -- Run OCRmyPDF on PDFs without OCR | |
| -- Requires https://github.com/jbarlow83/OCRmyPDF to be installed e.g. with brew | |
| on performSmartRule(theRecords) | |
| tell application id "DNtp" | |
| set strExportPath to "PATH=/opt/homebrew/bin:$PATH " | |
| set intRecordsCount to count of theRecords | |
| show progress indicator "Adding OCR to PDF..." steps intRecordsCount | |
| repeat with theRecord in theRecords | 
国内从 Docker Hub 拉取镜像有时会遇到困难,此时可以配置镜像加速器。
Dockerized 实践 https://github.com/y0ngb1n/dockerized
| In Visual Studio Code press Ctrl-K Ctrl-S to go to the keyboard bindings editor. | |
| Two windows open up - the default and the user keyboard bindings files. | |
| In the user keyboard bindings on the right, enter the followin text: | |
| // Place your key bindings in this file to overwrite the defaults | |
| [ | |
| { "key": "ctrl+tab", "command": "workbench.action.nextEditor" }, | |
| { "key": "ctrl+shift+tab", "command": "workbench.action.previousEditor" }, | |
| { "key": "ctrl+pageup", "command": "workbench.action.openPreviousRecentlyUsedEditorInGroup" }, |