Skip to content

Instantly share code, notes, and snippets.

View hided62's full-sized avatar

Hide_D hided62

View GitHub Profile
@hided62
hided62 / inserter.py
Last active April 14, 2025 05:43
Add Hidden Text Layer to PDF Using Paddle OCR(MinerU, magic-pdf) JSON
import pymupdf
import json
import argparse
def add_hidden_text_layer(ocr_json_path, pdf_input, pdf_output):
# Load OCR JSON data
with open(ocr_json_path, 'r', encoding='utf-8') as f:
ocr_data = json.load(f)
@hided62
hided62 / windows.vscode.remote.ssh.gpg.md
Created June 30, 2023 16:07
VSCode + gpg sign + ssh remote + Windows GPG client (Gpg4win)

VSCode + ssh remote + gpg sign + Windows GPG client (Gpg4win)

개요

  • Windows 환경에서
  • Visual Studio Code로
  • 리눅스에 SSH 원격으로 접속하여 개발하다
  • GPG 서명을 하고 싶지만
  • 원격 머신에 개인키를 두고 싶진 않고
  • 로컬에 보관중인 개인키로 서명하고 싶을 때

Forward GnuPG agent from macOS to Linux

On the remote machine

Run gpg once as your to create the directory structure

gpg --list-keys

For headless systemd based hosts

@hided62
hided62 / election2017.user.js
Last active May 9, 2017 14:23
[Greasemonkey] Korea 2017 Election Report Helper
// ==UserScript==
// @name 개표진행 대선 2017
// @namespace https://hided.net/
// @version 0.916
// @description 개표 진행 상황을 보여줍니다. (현재 개발중)
// @author HideD
// @require https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js
// @match http://info.nec.go.kr/electioninfo/electionInfo_report.xhtml
// @updateURL https://gist.github.com/hided62/b1c2b32670b228b041b9061e13c7d8c3/raw/election2017.user.js
// @grant none
@hided62
hided62 / election2016.user.js
Last active June 30, 2023 15:28
[Greasemonkey] Korea 2016 Election Report Helper
// ==UserScript==
// @name 개표진행 총선 2016
// @namespace https://hided.net/
// @version 0.90
// @description 개표 진행 상황을 보여줍니다. 각 투표구별 개별 개표율을 합산한 득표율을 보여줍니다.
// @author HideD
// @require https://ajax.googleapis.com/ajax/libs/jquery/2.2.2/jquery.min.js
// @match http://info.nec.go.kr/electioninfo/electionInfo_report.xhtml
// @updateURL https://hided.net/gs_script/election2016.user.js
// @grant none