Skip to content

Instantly share code, notes, and snippets.

@nearsyh
nearsyh / install_libGL.sh
Last active August 29, 2015 14:03
Fix "Fail to load libGL.so" for android emulator
# the android sdk requires 32bits library
# only for fedora
sudo yum install mesa-libGL-devel mesa-libGL-devel.i686
@nearsyh
nearsyh / screencapture.sh
Created December 1, 2013 19:16
Capture screen of android device
#! /bin/sh
adb pull /dev/graphics/fb0 fb0
dd bs=1920 count=800 if=fb0 of=fb0b
ffmpeg -vframes 1 -vcodec rawvideo -f rawvideo -pix_fmt rgb32 -s 480x800 -i fb0b -f image2 -vcodec png $1
@nearsyh
nearsyh / FontConf.xml
Created June 5, 2013 15:12
Part of font conf file. This can modify the font english part to Ubuntu when using WenQuanYi.
<match target="pattern">
<test name="family" compare="contains">
<string>WenQuanYi</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>Ubuntu Bold</string>
</edit>
</match>