Skip to content

Instantly share code, notes, and snippets.

View yawnoc's full-sized avatar
🌧️
# 只有淡忘 從前話說要如何 #

Conway yawnoc

🌧️
# 只有淡忘 從前話說要如何 #
View GitHub Profile
@yawnoc
yawnoc / termux.properties
Last active April 6, 2020 08:37
Termux: disable phone vibration and add more keys to touch keyboard
bell-character = ignore
extra-keys = [[ \
'TAB', 'CTRL', 'ALT', '-', '/', \
'LEFT', 'DOWN', 'UP', 'RIGHT', \
'DEL', 'HOME', 'END' \
]]
@yawnoc
yawnoc / .nanorc
Last active May 29, 2020 05:22
Termux: nano configuration for a Windows-to-Linux convert
# $ nano --version
# GNU nano, version 4.9.1
# General settings
set autoindent
set morespace
set smooth
set smarthome
set tabsize 2
set tabstospaces
@yawnoc
yawnoc / pinebook-pro-firefox-audio.md
Last active June 5, 2020 05:24
Pinebook Pro: Firefox no audio fix

Pinebook Pro: Firefox no audio fix

In Firefox pre-installed with the factory OS (mrfixit2001's Debian build), audio does not work in most videos. See [thread by 8jef][8jef].

Test cases:

@yawnoc
yawnoc / fonts.conf
Last active June 21, 2020 16:38
Linux: configure preferred Chinese fonts
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<!--
~/.config/fontconfig/fonts.conf
The easiest way to set preferred Chinese fonts in Linux is through <prefer>.
There is no need to worry about lang (locale) matching etc.
For each family (serif, sans-serif, monospace) simply use <prefer>,
and include your corresponding default English font family first
(so that English does not get rendered in your preferred Chinese font)
and then put the preferred Chinese font second.
@yawnoc
yawnoc / .gitconfig
Last active August 14, 2020 04:45
Git aliases for fewer keystrokes in workflow
[alias]
a = add
aa = add --all
ch = checkout
chb = checkout -b
c = commit
cm = commit -m
d = diff
dw = diff --word-diff
dd = diff --word-diff-regex=.
@yawnoc
yawnoc / tumbling-polygon.wl
Created January 21, 2021 16:23
Animating a tumbling polygon
(* ::Package:: *)
(* ::Title:: *)
(*Animating a tumbling polygon*)
(*
See <https://mathematica.stackexchange.com/a/237847>.
Licensed under MIT No Attribution (MIT-0),
see <https://spdx.org/licenses/MIT-0.html>.
@yawnoc
yawnoc / licensee.md
Created May 8, 2021 08:21
Installing Licensee (Ruby Gem) on Debian

Installing Licensee (Ruby Gem) on Debian

  1. Add ~/.gem/ruby/2.5.0/bin to path

  2. Install dependencies:

    $ sudo apt install ruby2.5-dev
    $ sudo apt install zlib1g-dev cmake pkg-config
@yawnoc
yawnoc / cns.md
Last active August 29, 2021 07:21
CNS stroke data
@yawnoc
yawnoc / debian-bullseye-np50hj.md
Last active December 23, 2021 10:11
Installing Debian Bullseye on a Metabox Alpha-S NP50HJ

Installing Debian Bullseye on a Metabox Alpha-S NP50HJ

  • CPU: 11th Gen Intel® 8 Core™ i7-11800H
  • GPU: NVIDIA GeForce RTX 3050
  • Wireless: Intel AX201 Dual Band WIFI/BTv5.1

Get CD image (11.1.0 non-free)

  1. Download checksum and signature files:
@yawnoc
yawnoc / 4-tones.md
Last active January 2, 2022 09:57
Classical Chinese tone markers font test page

Classical Chinese tone markers font test page

四聲 (from 'CJK Symbols and Punctuation' block)

Code point Reference image Your browser Name
U+302A ![Level] 平〪 IDEOGRAPHIC LEVEL TONE MARK
U+302B ![Rising] 上〫 IDEOGRAPHIC RISING TONE MARK
U+302C ![Departing] 去〬 IDEOGRAPHIC DEPARTING TONE MARK