Skip to content

Instantly share code, notes, and snippets.

View y4code's full-sized avatar
😎
Being dalao

y4code y4code

😎
Being dalao
View GitHub Profile
@julienma
julienma / DT3 - Add OCR to PDF.scpt
Last active April 2, 2024 08:43
OCR PDFs in DEVONthink 3 with jbarlow83/OCRmyPDF
-- 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
@chrjorgensen
chrjorgensen / gist:722a7a79c43e7293b0373f984d9484c4
Created January 24, 2017 20:41
How to make Ctrl-Tab switch editors in Visual Studio Code
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" },