本身的solution笔记本

How to give a Linux user sudo access //给Linux 用户提供 sudo 权

  1. open you terminal and run visudo ,then editor it//运行终端,而后运行 visudo,将会进入一个文本编辑状态,在里面新加以下一行html

    yourusername   ALL=(ALL) ALL
  2. If you want permit to run only some commands, you need to list them in the line://若是你还想更具体的指定该用户权限范围能够做以下修改java

    yourusername    ALL=(ALL) /bin/kill, /bin/ps

#How to delete all .svn file in you project //如何删除项目文件里的全部.svn

find . -type d -name ".svn"|xargs rm -rf
/*  ----- 或者 ----- */
find . -type d -iname ".svn" -exec rm -rf {} \;

How to fix “containing working copy admin area is missing” in SVN? [[from stackoverflow]]

According to this: http://www.devcha.com/2008/03/svn-directory-svn-containing-working.htmlnode

Check-out the folder "blabla" to a different location and then copy its .svn folder back into the original "blabla".

Nodejs + Nginx

A good solution from stackoverflownginx

更改国外VPS的时区为国内

以前用了一个简单的方法,date输出的时间是+8时区,但是用java获得的仍是系统本身的。后来从网上找到一个办法。 来源shell

# 安装 ntpdate 和 ntp
apt-get install ntpdate ntp -y

# 删除本地时间 /etc/localtime
rm -rf /etc/localtime

# 把香港时间复制成 localtime
cp /usr/share/zoneinfo/Asia/Hong_Kong /etc/localtime

# 同步时间
ntpdate cn.pool.ntp.org

# 把命令加到开机启动
echo "/usr/sbin/ntpdate us.pool.ntp.org">>/etc/rc.local

# 运行下面的命令把时区改成+8(Asia > Hong_Kong)
dpkg-reconfigure tzdata

删除本地svn账号

rm ~/.subversion/auth/svn.simple/*
相关文章
相关标签/搜索