From 30b176f0505686ca7ed191d0908fb1f5e25246db Mon Sep 17 00:00:00 2001 From: arrow_zhang Date: Tue, 9 Sep 2008 10:57:40 +0800 Subject: [PATCH] [UP/add] - add virtualbox script to conf net, - mutt use utf-8 - vimrc, todo, ion3, ge.. --- TODO | 4 +++- archlinux_conf/etc/ion3/cfg_statusbar.lua | 4 +++- archlinux_conf/home/.bin/shell/arrow-vbox-prepare | 20 ++++++++++++++++++++ archlinux_conf/home/.bin/shell/ge | 5 +++-- archlinux_conf/home/.muttrc | 7 ++++--- archlinux_conf/home/.vimrc | 1 + 6 files changed, 34 insertions(+), 7 deletions(-) create mode 100755 archlinux_conf/home/.bin/shell/arrow-vbox-prepare diff --git a/TODO b/TODO index fecfcca..790bdda 100644 --- a/TODO +++ b/TODO @@ -1,4 +1,6 @@ * TODO list +** top todo + #C1 09-06 post deploy ** everyday - mail list @@ -9,6 +11,7 @@ - code update # git pull linux-2.6(make && make install), # sync archlinux, buildroot, busybox, ion3, (qemu, uboot), + - English reading, remember it ** working *** sometimes maintain @@ -67,7 +70,6 @@ # fetchmail auto #x mutt use mouse #x ssh keygen, rebuild - # subscribe net mail-list *** netgear spec 1.6 implement 1.2/1.3/1.4 # something put into "tips" diff --git a/archlinux_conf/etc/ion3/cfg_statusbar.lua b/archlinux_conf/etc/ion3/cfg_statusbar.lua index 6efac77..f924d21 100644 --- a/archlinux_conf/etc/ion3/cfg_statusbar.lua +++ b/archlinux_conf/etc/ion3/cfg_statusbar.lua @@ -37,7 +37,9 @@ mod_statusbar.create{ -- windows and icons. -- -- [arrow.old] template="[ %date || load: %load ] %filler%systray", - template="[ %date | load:% %>load | mail:% %>mail_new/%>mail_total ] %filler%systray", + -- template="[ %date | load:% %>load | mail:% %>mail_new/%>mail_total 修为] %filler%systray", + -- template="[ %date | load:% %>load | mail:% %>mail_new/%>mail_total 修为 人生而静,其情难见; 感物而动,然后可辨]", + template="[ %date | load:% %>load | mail:% %>mail_new/%>mail_total 修为 静而难见; 感物可辨]", --template="[ %date || load:% %>load || mail:% %>mail_new/%>mail_total ] %filler%systray", --template="[ %date || load: %05load_1min || mail: %02mail_new/%02mail_total ] %filler%systray", } diff --git a/archlinux_conf/home/.bin/shell/arrow-vbox-prepare b/archlinux_conf/home/.bin/shell/arrow-vbox-prepare new file mode 100755 index 0000000..83bbe50 --- /dev/null +++ b/archlinux_conf/home/.bin/shell/arrow-vbox-prepare @@ -0,0 +1,20 @@ +#!/bin/bash + +export GUEST=tap1 +export HOST=eth0 + +modprobe tun +VBoxTunctl -t $GUEST -u $USER + +ifconfig $HOST 0 +ifconfig $HOST promisc +ifconfig $GUEST promisc + +ifconfig $HOST up +ifconfig $GUEST up + +brctl addbr br0 +brctl addif $HOST +brctl addif $GUEST +ip addr add 192.168.3.224 dev br0 +ip route add to default via 192.168.3.225 dev br0 diff --git a/archlinux_conf/home/.bin/shell/ge b/archlinux_conf/home/.bin/shell/ge index 201bb66..6419605 100755 --- a/archlinux_conf/home/.bin/shell/ge +++ b/archlinux_conf/home/.bin/shell/ge @@ -63,8 +63,9 @@ function arrow_openfile() if [ "$V_KEEP_QUIET" != "YES" ]; then echo -e "server open: ${CL_GREEN}$1${CL_END}" fi - "$V_EXEFILE" $GEO --servername "$V_SERVERNAME" "$V_REMOTE_TAB_SILENT" "$1" 2>/dev/null -# usleep 700 +# "$V_EXEFILE" $GEO --servername "$V_SERVERNAME" "$V_REMOTE_TAB_SILENT" "$1" 2>/dev/null + $V_EXEFILE $GEO --servername $V_SERVERNAME $V_REMOTE_TAB_SILENT "$1" +# usleep 600000 sleep 1 if [ "$V_NEED_WAIT" != "$V_SERVERNAME" ]; then sleep 2 diff --git a/archlinux_conf/home/.muttrc b/archlinux_conf/home/.muttrc index 0a01a59..f8560b8 100755 --- a/archlinux_conf/home/.muttrc +++ b/archlinux_conf/home/.muttrc @@ -19,7 +19,8 @@ set from="arrow.ebd@gmail.com" # alternates * arrowworld@gmail.com set pager_stop set charset="UTF-8" -set send_charset="us-ascii:utf-8" +# set send_charset="us-ascii:utf-8" +set send_charset="utf-8" set wait_key=yes set editor="vim" @@ -59,8 +60,8 @@ set pager_index_lines=6 # folder-hook . 'macro index d "~/.mutt/trash\r"' # folder-hook ~/.mutt/trash 'bind index d delete-message' -folder-hook . "ignore *; unignore from X-mailer date subject " -folder-hook sent.* "ignore *; unignore to date subject " +folder-hook . "ignore *; unignore from X-mailer date subject" +folder-hook sent.* "ignore *; unignore to date subject" hdr_order X-mailer from to date subject set maildir_trash=yes diff --git a/archlinux_conf/home/.vimrc b/archlinux_conf/home/.vimrc index 2ad3f35..cc8c547 100644 --- a/archlinux_conf/home/.vimrc +++ b/archlinux_conf/home/.vimrc @@ -131,3 +131,4 @@ set wildmode=list:full let g:vimwiki_home = "~/wiki/" set paste set backupcopy=auto,breakhardlink +let g:SessionMgr_AutoManage = 0 -- 2.11.4.GIT