Feb 3, 2013 - 前端    No Comments

2个应该加入base.sass的属性

/* 解决chrome 12像素字体大小限制 */
body
  -webkit-text-size-adjust: none

/* 解决link点击后周围一圈虚线的问题 */
a
  blr: expression(this.onFocus=this.close())
  blr: expression(this.onFocus=this.blur())  
a:focus
  -moz-outline-style: none
  outline: none
Dec 26, 2012 - linux    No Comments

CentOS install vsftpd

熟门熟路三部曲

$ yum -y install vsftpd
$ chkconfig vsftpd on
$ service vsftpd start

防火墙里开21端口

$ vi /etc/sysconfig/iptables

添加一行:

-A INPUT -m state --state NEW -m tcp -p tcp --dport 21 -j ACCEPT

重启iptables

$ service iptables restart

Read more »

Dec 11, 2012 - linux    2 Comments

Save CentOS permissions

$ chmod -R 777 /

如果你不小心输入了这条命令,并打了回车,那么请千万不要reboot你的机器。否则就认真照着下面一步一步做吧!

重启后,你会发现你的root账号不能登录了,ssh也连不上了,mysql自然也连不上了。一切工作都只能停下来了。还好,我们可以通过single模式进入root账号

1. 在系统启动时按e,选择要进入的内核

Read more »