Skip to content

Instantly share code, notes, and snippets.

View anthonywong's full-sized avatar
🏠
Working from home

Anthony Wong anthonywong

🏠
Working from home
View GitHub Profile
$ git log --pretty=format:"%an <%ae>" --abbrev-commit v3.0..HEAD --author=canonical|sort|uniq -c|sort -nr
212 David Henningsson <[email protected]>
185 Ming Lei <[email protected]>
125 Maarten Lankhorst <[email protected]>
88 Seth Forshee <[email protected]>
64 Tim Gardner <[email protected]>
62 John Johansen <[email protected]>
58 Colin Ian King <[email protected]>
50 Hui Wang <[email protected]>
@anthonywong
anthonywong / .bashrc
Last active September 14, 2016 13:57
my bashrc
# ~/.bashrc: executed by bash(1) for non-login shells.
# see /usr/share/doc/bash/examples/startup-files (in the package bash-doc)
# for examples
# If not running interactively, don't do anything
[ -z "$PS1" ] && return
# don't put duplicate lines or lines starting with space in the history.
# See bash(1) for more options
HISTCONTROL=ignorespace
@anthonywong
anthonywong / 10-latin.conf
Last active March 22, 2017 12:50
Latin 字體 fontconfig 設定檔
<fontconfig>
<match target="pattern">
<test name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Serif</string>
</edit>
</match>
@anthonywong
anthonywong / 20-noto-cjk.conf
Last active September 18, 2017 22:47
思源/Noto CJK fonconfig 設定檔
<fontconfig>
<match target="pattern">
<test name="lang">
<string>zh-tw</string>
</test>
<test name="family">
<string>sans-serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Noto Sans T Chinese</string>
#!/bin/sh
pkill -x fcitx-qimpanel
pkill -x fcitx
sleep 1
cd ~/.config
t=$(mktemp -d) || exit
mv fcitx fcitx-qimpanel SogouPY SogouPY.users $t
echo "Config files moved to " $t