本身的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/*
相關文章
相關標籤/搜索