Skip to content

Instantly share code, notes, and snippets.

View jfcherng's full-sized avatar
🦀
Yes, that should work.

Jack Cherng jfcherng

🦀
Yes, that should work.
View GitHub Profile
@jfcherng
jfcherng / ChtStroke.php
Last active December 15, 2020 08:26 — forked from blackbing/big5_stroke.tab
中文筆劃排序(只適用繁體中文) for PHP 7.2
<?php
/**
* Author: blackbing@gmail.com
* Desc: 為了解決中文筆劃排序的問題(只適用繁體中文)
* php 可以直接執行 cht_strokesort.
*/
final class ChtStroke
{
const BIG5_HB_MIN = 0x81; // 高位元組最小值
@jfcherng
jfcherng / Python3.7-Build.txt
Last active January 1, 2022 18:12 — forked from nesffer/Python3.5-Build.txt
Python 3.7 Build on Ubuntu 16.04
Python build finished successfully!
The necessary bits to build these optional modules were not found:
_bz2 _curses _curses_panel
_dbm _gdbm _lzma
_sqlite3 _ssl _tkinter
readline zlib _uuid
To find the necessary bits, look in setup.py in detect_modules() for the module's name.
sudo apt install libbz2-dev libncurses5-dev libgdbm-dev liblzma-dev sqlite3 libsqlite3-dev openssl libssl-dev tcl8.6-dev tk8.6-dev libreadline-dev zlib1g-dev uuid-dev
@jfcherng
jfcherng / git-auto-sign-commits.sh
Created July 25, 2018 11:37 — forked from mort3za/git-auto-sign-commits.sh
Auto sign your git commits
# generate a new pgp key: (better to use gpg2 instead of gpg)
gpg --gen-key
# maybe you need some random work in your OS to generate a key. so run this command: `find ./* /home/username -type d | xargs grep some_random_string > /dev/null`
# check current keys:
gpg --list-secret-keys --keyid-format LONG
# export private key in gpg:
gpg --export-secret-key -a "your_username"