Skip to content

Instantly share code, notes, and snippets.

@Jeffer-Lin
Jeffer-Lin / ! FontForge Script .md
Created December 19, 2021 01:35 — forked from Kennyl/! FontForge Script .md
FontForge Script !!! Good for Epub, TTF reduce, Traditional Chinese adapt Simplified Chinese

Obsoleted please refer to here for New Scripts

Center All Chinese Punctuations

A simple word list test file, only one to one case, no one to many case

A Word list there is simple different from TC and SC, only one to one case, no one to many case

@Jeffer-Lin
Jeffer-Lin / usbreset.c
Created May 19, 2021 22:38
linux use command line to re-scan usb drive
/* usbreset -- reset a USB device */
/*
$ gcc usbreset.c -o usbreset
$ sudo mv usbreset /usr/local/bin/
$ lsusb
Bus 001 Device 004: ID .....
$ sudo usbreset /dev/bus/usb/001/004
*/
#include <stdio.h>
@Jeffer-Lin
Jeffer-Lin / debug-bash-scripts.md
Created May 2, 2021 20:46 — forked from Potherca/debug-bash-scripts.md
Sometimes you want to be able to debug a bash script. This gist gives an example of how to do this.

Introduction

Sometimes you want to be able to debug a bash script. Usually the -x option will suffice but sometimes something more sophisticated is needed.

In such instances using the DEBUG trap is often a good choice.

Attached to this gist is a example script to demonstrate how such a thing would work.