ITeye博客

流水账

orcl_zhang · 共 173 篇文章

如何维修身体(转载)

转自: http://www.douban.com/note/475362913/ 灵魂是自由的,肉身是沉重的,灵魂来到肉身,是为了体验物质世界的无限可能。这是直接的结论,论证过程太长,不说了。 在物质世界,保护肉身是第一重要的事情,否则没得玩。 精神和肉身相互影响。 保护肉身第一种重要的事情,就是精神充沛平静,“精神内守,邪不可干”和“一呼为牛,一呼为马”。 4.1 精神充沛平静,就是内心没有纠结。内心没有纠结,就是所有和你有关的事情你都想通了,没有疑惑,知道怎么做会有什么后果,想得到什么就按照相应的方式去做。没有负面情绪。注意,怕出现负面情绪,本身就是负面情绪。 4.2 要做到上一条,要…

2015-01-07 21:09 · 评论(0)

Git Pro

http://git-scm.com/book/zh

2014-01-08 09:45 · git · 评论(0)

扩展巴科斯范式与语法图

扩展巴科斯范式 http://zh.wikipedia.org/wiki/%E6%89%A9%E5%B1%95%E5%B7%B4%E7%A7%91%E6%96%AF%E8%8C%83%E5%BC%8F 语法图 http://dancewithnet.com/2008/05/28/syntax-diagrams/

2014-01-05 10:59 · 计算机基础 · 评论(0)

svn resolved

svn st | grep ! | cut -c 9- | while read line;do svn resolved $line;done

2013-06-12 16:21 · svn · 评论(0)

xargs

svn一次添加太多文件,网络不是很稳定,提交总是超时,所以每次提交40个文件。 svn st | grep -v ? | head -n 40 | cut -c 9- | xargs svn commit -m 'xx'

2013-06-12 15:20 · svn · 评论(0)

Shell遍历文件夹删除匹配文件

#!/bin/sh list_alldir(){ for file2 in `ls -a $1` do if [ x"$file2" != x"." -a x"$file2" != x".." ];then if [ -d "$1/$file2" ] && (echo $file2 | grep -qv '.svn');then list_alldir "$1/$file2" elif (echo $1/$file2 | egrep -q '(de|el|fr|it)\.yml$');then echo "$1/$file2" rm $1/$file2 fi fi done } list_a…

2013-06-11 17:28 · Shell · 评论(0)

photo move

#!/bin/bash COLOR_PHOTO_PATH="/var/www/rails/webapp/public/data/images/colors/" CHIP_COLOR_PATH="/mnt/chip/colors" cd $COLOR_PHOTO_PATH ls | grep -E 'front|back' | while read line;do cp $line $CHIP_COLOR_PATH done cd "/mnt/chip/" tar czvfP color_photo.tar.gz $COLOR_PHOTO_PATH

2013-06-11 17:25 · Shell · 评论(0)

Ruby 搭建环境

http://kidlet.sinaapp.com/blog/archives/185.html http://kidlet.sinaapp.com/blog/archives/205.html 因为想装RVM 所以要对上述程序进行删除,其中 Ruby 和 RubyGem 均是采用从官方下载源代码进行编译安装的 结果发现 官方提供的 Makefile 文件并没有提供 uninstall功能, 而当初我在configure的时候也并没有指定 prefix参数 所以都是采用默认路径安装的。 首先我们先卸载 通过 Gem 安装的东西。 通过 gem list 可以看到安装了哪些, 其中当然包括了r…

2013-06-01 11:17 · ruby · 评论(0)

启LINUX防火墙后,FTP PASV不能正常登录问题

转载:http://www.cnblogs.com/redhatlinux/archive/2012/04/03/2431453.html linux服务器开启防火墙,常规设置在防火墙配置文件中添加21端口, FTP服务器通过port能够访问,pasv不能访问。而客户端一般是采用pasv方式连接。解决方法如下: 首先要了解概念; FTP支持两种模式,一种方式叫做Standard (也就是 PORT方式,主动方式),一种是 Passive (也就是PASV,被动方式)。 Standard模式 FTP的客户端发送 PORT 命令到FTP服务器。Passive模式FTP的客户端发送 PASV命令到…

2013-05-31 15:23 · linux · 评论(0)

CentOS 5.5下FTP安装及配置(转载)

转载自http://www.blogjava.net/Alpha/archive/2012/02/02/369246.html CentOS 5.5下FTP安装及配置 一、FTP的安装 1、检测是否安装了FTP : rpm -q vsftpd vsftpd-2.0.5-16.el5_5.1 否则显示:# package vsftpd is not installed 查看ftp运行状态 service vsftpd status 2、如果没安装FTP,运行yum install vsftpd命令进行安装 如果无法下载,需要设置好yum 如下 cd /etc/yum.repos.d mv Ce…

2013-05-22 11:32 · linux · 评论(0)

工作记录(待续)

1,增加一个Sql远程登录用户 SELECT DISTINCT CONCAT('User: ''',user,'''@''',host,''';') AS query FROM mysql.user; GRANT select ON endysis.* TO eshop@localhost IDENTIFIED BY 'abc'; GRANT select ON endysis.* TO eshop@"%" IDENTIFIED BY 'abc'; 2,rails_sql_views https://github.com/activewarehouse/rails_sql_views cre…

2013-03-14 17:00 · mysql · 评论(0)

How to fix wicd 1.7.0+ds1-5 Connection Failed: Bad Password on Ubuntu 10.10 (Mav

http://pc-freak.net/blog/how-to-fix-wicd-1-7-0ds1-5-connection-failed-bad-password-on-ubuntu-10-10-maverick-merkaaat/ I’ve been struggling with fixing a nasty error with wicd network manager for about 2 hours. The exact error message I faced was: Connection Failed: Bad Password The issue occured af…

2012-11-04 11:44 · linux · 评论(0)

Mark

sudo mount -t ext3 /dev/sdb1 /mnt/usbhd/

2012-08-02 09:49 · linux · 评论(0)

Enlarge tex memory in OSX

Enlarge expand tex latex memory in OSX Mac. Get an error like this? Here is how much of TeX's memory you used... 3000001 words of memory out of 3000000 Add the following lines to the file /usr/local/texlive/2011/texmf.cnf main_memory=250000000 extra_mem_top=50000000 extra_mem_bot=50000000 save_size…

2012-04-28 11:49 · Latex · 评论(0)

Latex中文

导言部分 \usepackage{CJK} \usepackage[ greek,english]{babel} \usepackage[utf8x]{inputenc} \newcommand{\zht}[1]{\begin{CJK}{UTF8}{bsmi}#1\end{CJK}} \newcommand{\zhs}[1]{\begin{CJK}{UTF8}{gbsn}#1\end{CJK}} \zht{我} \zhs{我}

2012-04-06 16:19 · Latex · 评论(0)