##ActiveRecord树形结构gems插件
- https://github.com/amerine/acts_as_tree
- https://github.com/stefankroes/ancestry
- https://github.com/mceachen/closure_tree 基于acts_as_tree实现不过使用了不同的算法结构,速度更快
##ActiveRecord树形结构gems插件
##Phonegap log debug Add 'Web Console' filter in LogCat, the key is by Log Tag should be Web Console
##Show Scrollbar for Panel View
layout: {
type: 'vbox',
align: 'start',
#Phonegap Plugins
###一些不错的chrome插件
Debian下启动postgresql服务
/usr/lib/postgresql/8.4/bin/pg_ctl -D /usr/local/pgsql/data -l logfile start
登录数据库
psql -U dbuser -d exampledb -h 127.0.0.1 -p 5432
使用homebrew安装后使用下面用户登录
sudo rm /usr/local/mysql | |
sudo rm -rf /usr/local/mysql* | |
sudo rm -rf /Library/StartupItems/MySQLCOM | |
sudo rm -rf /Library/PreferencePanes/My* | |
edit /etc/hostconfig and remove the line MYSQLCOM=-YES- | |
rm -rf ~/Library/PreferencePanes/My* | |
sudo rm -rf /Library/Receipts/mysql* | |
sudo rm -rf /Library/Receipts/MySQL* | |
sudo rm -rf /private/var/db/receipts/*mysql* |
brew ls | xargs brew rm | |
brew prune | |
brew cleanup | |
brew ls --unbrewed | xargs -I {} rm -rf /usr/local/{} |
class Configuration | |
attr_accessor :username, :password | |
def initialize | |
yield self | |
end | |
end | |
c = Configuration.new do |config| |
通过ssh传输文件
scp -rp /path/filename username@remoteIP:/path
#将本地文件拷贝到服务器上#
scp -rp username@remoteIP:/path/filename /path
#将远程文件从服务器下载到本地#
tar cvzf - /path/ | ssh username@remoteip "cd /some/path/; cat -> path.tar.gz"
#压缩传输#
tar cvzf - /path/ | ssh username@remoteip "cd /some/path/; tar xvzf -"
#压缩传输一个目录并解压#
rsync -avh /path/to/file/or/dir user@host:/path/to/dir/or/file
rsync -avh user@host:/path/to/file/or/dir /path/to/file/or/dir