Skip to content

Instantly share code, notes, and snippets.

View y4code's full-sized avatar
😎
Being dalao

y4code y4code

😎
Being dalao
View GitHub Profile
@cascax
cascax / notification.py
Last active February 17, 2025 15:14
mac os获取通知中心通知
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'
@julienma
julienma / DT3 - Add OCR to PDF.scpt
Last active September 24, 2024 16:49
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
@y0ngb1n
y0ngb1n / docker-registry-mirrors.md
Last active May 12, 2025 01:53
国内的 Docker Hub 镜像加速器,由国内教育机构与各大云服务商提供的镜像加速服务 | Dockerized 实践 https://github.com/y0ngb1n/dockerized
@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" },