Skip to content

Instantly share code, notes, and snippets.

View tiye's full-sized avatar
💭
Make Cirru great again!

题叶 tiye

💭
Make Cirru great again!
View GitHub Profile
@tiye
tiye / readme.wl
Created September 13, 2012 06:23
willow is a tiny markup language
`bold` with `#`
`code` inline code with `\``
block with indent with 2 `space`
indent for more blocks
and more
outdent
link http://google.com
@tiye
tiye / .fonts.conf
Created September 14, 2012 02:39
the defaut fonts.conf dont work
<fontconfig>
<match target="pattern">
<test qual="any" name="family">
<string>serif</string>
</test>
<edit name="family" mode="prepend" binding="strong">
<string>DejaVu Serif</string>
<string>WenQuanYi Micro Hei</string>
</edit>
@tiye
tiye / bash_history.part
Created September 14, 2012 10:15
从安装到字体问题基本解决的 log, 检索 pacman 和 yaourt
5 pacman -S sudo
8 sudo pacman -S vim
12 sudo pacman -S xorg-server xorg-xint xorg-utils xorg-server-utils mesa
13 sudo pacman -S xorg-server xorg-xinit xorg-utils xorg-server-utils mesa
14 sudo pacman -S mesa-demos
15 pacman -Ss xf86-video
16 pacman -Ss xf86-video | less
17 pacman -Ss xf86-video | nou
18 pacman -Ss xf86-video | grep nou
19 sudo pacman -S xf86-video-nouveau
@tiye
tiye / default.custom.yaml
Created September 23, 2012 06:04
尝试了下 Rime 输入法
# Rime setting
patch:
"menu/page_size": 9
schema_list:
- schema: luna_pinyin
- schema: cangjie5
- schema: luna_pinyin_fluency
- schema: luna_pinyin_simp
- schema: double_pinyin_flypy
@tiye
tiye / getter.coffee
Created September 24, 2012 04:08
JS 可怕的 setter 和 getter
show = console.log
# guide from http://www.oschina.net/question/565065_59009
a = ->
@name = 'test'
@__defineGetter__ 'nick', ->
show 'reading name'
@name
@__defineSetter__ 'nick', (nick) ->
@tiye
tiye / pacman-Syu.sh
Created September 29, 2012 01:35
404 in `sudo pacman -Syu`
➤➤ sudo pacman -Syu
:: Synchronizing package databases...
Initializing download: http://mirrors.163.com/archlinux/core/os/i686/core.db
File size: 109270 bytes
Opening output file /var/lib/pacman/sync/core.db.part
Starting download
[ 0%] .......... .......... .......... .......... .......... [ 560.2KB/s]
[ 46%] ......
Connection 0 finished
@tiye
tiye / yaourt-S-loop
Created September 29, 2012 01:48
failed install loop
➤➤ uname -a
Linux up 3.5.3-1-ARCH #1 SMP PREEMPT Sun Aug 26 08:15:06 UTC 2012 i686 GNU/Linux
➤➤ yaourt -S loop
==> Downloading loop PKGBUILD from AUR...
x PKGBUILD
First Submitted: Wed, 30 May 2012 08:42:17 +0000
loop 1.0.8-2
@tiye
tiye / ++.bashrc
Created October 3, 2012 10:13
try to bookmark cd path
function g(){
c `/home/chen/code/cd-link/main.coffee $1 $2`
}
@tiye
tiye / Bird.moon
Created October 3, 2012 13:34
lua OO glance (in MoonScript)
Bird = CanFly: true
Bird.New = (self) ->
b = {}
setmetatable b, self
self.__index = self
b
Ostrich = Bird.New Bird
@tiye
tiye / bash.log
Created October 7, 2012 13:44
failed to install lein with proxy
➤➤ env | grep 8087
http_proxy=http://localhost:8087/
FTP_PROXY=http://localhost:8087/
ftp_proxy=http://localhost:8087/
all_proxy=socks://localhost:8087/
ALL_PROXY=socks://localhost:8087/
https_proxy=http://localhost:8087/
HTTPS_PROXY=http://localhost:8087/
HTTP_PROXY=http://localhost:8087/
➤➤ yaourt -S