This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // client = new AjaxAuthClient({ | |
| // | |
| // }) | |
| // AjaxAuth.registerDialog(function(element){ | |
| // $(element) | |
| // .appendTo('body') | |
| // .addClass('center_model') | |
| // .width(400) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| yum install readline-devel | |
| rvm pkg install readline | |
| rvm reinstall 1.9.2 --with-readline-dir=$rvm_path/usr | |
| cd /var/www/neza/current | |
| bundle exec rails c production |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| echo export POW_TIMEOUT=10000 >> ~/.powconfig | |
| echo export POW_WORKERS=3 >> ~/.powconfig | |
| powpid=$(ps -eaf|grep pow |grep -v grep |awk '{print $2}') | |
| echo "kill $powpid" | |
| sudo kill $powpid |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export POW_TIMEOUT=10000 | |
| export POW_WORKERS=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export POW_TIMEOUT=10000 | |
| export POW_WORKERS=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export POW_TIMEOUT=10000 | |
| export POW_WORKERS=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export POW_TIMEOUT=10000 | |
| export POW_WORKERS=3 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wrapError = (onError, model, options) -> | |
| (resp) -> | |
| if onError? | |
| onError(model, resp, options); | |
| else | |
| model.trigger('error', model, resp, options) | |
| apply: (name = null, options = {}) -> | |
| name ||= @get('name') | |
| success = options.success |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| wrapError = (onError, model, options) -> | |
| (resp) -> | |
| if onError? | |
| onError(model, resp, options); | |
| else | |
| model.trigger('error', model, resp, options) | |
| apply: (name = null, options = {}) -> | |
| name ||= @get('name') | |
| success = options.success |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| ni hao a |