Skip to content

Instantly share code, notes, and snippets.

View zmx's full-sized avatar

Zhong, Ming-Xun zmx

View GitHub Profile
@Superbil
Superbil / _uninstall.sh
Last active April 11, 2024 03:40
HiPKILocalSignServer macOS 1.3.4.7
#!/usr/bin/env bash
## Use sudo to run this script
rm -rf ~/Library/HiPKILocalSignServer/
rm -rf ~/Lib/libHicos_p11v1.dylib
rm -rf ~/bin/checkHIPKILocalServer.sh
rm -rf ~/bin/stopHIPKILocalServer.sh
@wancw
wancw / 0 - Readme.md
Last active July 4, 2023 09:34
移除 macOS 健保卡元件

檔案說明

  • removeNHIICC.sh : 移除健保卡元件與相關設定,須以 root (sudo) 權限執行。
  • postinstall.sh : 官方「MAC 元件移除安裝檔」的 script 內容(2020)
#!/bin/bash
set -e
CONTENTS=$(tesseract -c language_model_penalty_non_dict_word=0.8 --tessdata-dir /usr/local/share/tessdata/ "$1" stdout -l eng | xml esc)
hex=$((cat <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
@tanyuan
tanyuan / smart-caps-lock.md
Last active March 26, 2025 00:15
Smart Caps Lock: Remap Caps Lock to Control AND Escape

Smart Caps Lock: Remap to Control AND Escape (Linux, Mac, Windows)

Caps Lock 變成智慧的 Control 以及 Escape

  • 單獨輕按一下就是 Escape
  • 若按下時同時按著其他鍵,就會是 Control

這應該是 Vim 和 Emacs 的最佳解了!(Emacs? Bash 的快捷鍵就是 Emacs 系列的)

  • Send Escape if you tap Caps Lock alone.
@sammcj
sammcj / request_pacemaker_glue.md
Last active May 23, 2016 07:30
Request for pacemaker / cluster-glue packages

RHEL/CentOS/Fedora 7 Pacemaker Package was built without 'legacy' plugin support

'Legacy' pacemaker plugins provide useful, well tested resource providers for linux high availability / the open cluster framework (OCF), most of them are still very widely used / relied upon and are a potentially blocker for people wanting to build modern linux clusters based on RHEL/CentOS 7 and beyond.

In a perfect world RHEL/Fedora would simply build the pacemaker package with the --with stonithd flag and reinstate the cluster-glue package that was present in 6, However I know how hard it is to get those kind of changes made after a release (and probably for good reason).

  • There is only one difference when building the pacemaker package that enables this that requires no additional packages or code.
  • There are three parts to this request - they are neither complex or fraught with dependency nightmares.
  1. Provide the package pacemaker with legacy-plugins enabled when the RPM is generated.
@dequis
dequis / patch.py
Last active December 19, 2017 19:01
MSN ApplicationId binary patcher for pidgin/bitlbee/etc - OBSOLETE now that pidgin/bitlbee have the correct fix - READ THE COMMENTS!
#!/usr/bin/env python
"""
MSN ApplicationId patcher for pidgin/bitlbee/whatever
(because you're too lazy to rebuild the whole thing.)
Usage examples:
python patch.py /usr/sbin/bitlbee
python patch.py /usr/lib/purple-2/libmsn.so
@ilake
ilake / gist:3338917
Created August 13, 2012 09:56
[翻譯] 圖形計算機的故事
作者: iincho (..) 看板: Soft_Job
標題: [翻譯] 圖形計算機的故事
時間: Tue Mar 4 12:04:50 2008
Copyright (c) 2004 Ron Avitzur.
============================================================
本文譯自 http://www.pacifict.com/Story/
已獲得作者授權翻譯並同意於 PTT 發布