watch-ENOSPC

Node.JS Error: ENOSPC (ENOSPC:Error No space left on device)

Run the below command:

1
echo fs.inotify.max_user_watches=524288 | sudo tee -a /etc/sysctl.conf && sudo sysctl -p

The system has a limit to how many files can be watched by a user. You can run out of watches pretty quickly if you have Grunt running with other programs like Dropbox. This command increases the maximum amount of watches a user can have.

referrer

mac-pow

pow is a zero-config Rack server for Mac OS X

install

curl get.pow.cx | sh

install log info:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
% Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
Dload Upload Total Spent Left Speed
100 9039 100 9039 0 0 3396 0 0:00:02 0:00:02 --:--:-- 3395
*** Installing Pow 0.5.0...
*** Installing local configuration files...
/Users/Navy/Library/LaunchAgents/cx.pow.powd.plist
*** Installing system configuration files as root...
Password:
/etc/resolver/dev
/Library/LaunchDaemons/cx.pow.firewall.plist
*** Starting the Pow server...
*** Performing self-test...
*** Installed

For troubleshooting instructions, please see the Pow wiki:
https://github.com/basecamp/pow/wiki/Troubleshooting

To uninstall Pow, `curl get.pow.cx/uninstall.sh | sh`

阅读全文 >

hexo-theme-landscape-swiftype

hexo站内搜索功能 —— swiftype

hexo 默认自带的搜索引擎是google,我们接下来是讲解如何用swiftype实现站内搜索

  1. swiftype官网注册一个账号,按步骤同步站点内容,然后复制代码,代码如下:
1
2
3
4
5
6
7
8
<script type="text/javascript">
(function(w,d,t,u,n,s,e){w['SwiftypeObject']=n;w[n]=w[n]||function(){
(w[n].q=w[n].q||[]).push(arguments);};s=d.createElement(t);
e=d.getElementsByTagName(t)[0];s.async=1;s.src=u;e.parentNode.insertBefore(s,e);
})(window,document,'script','//s.swiftypecdn.com/install/v2/st.js','_st');
_st('install','kWSKry9NQXF2ddPp_Lay','2.0.0');
</script>
//请更换自己的kWSKry9NQXF2ddPp_Lay

阅读全文 >

hexo-them-landscape

hexo-theme-landscape 0.0.1 版本文章分页显示的bug

上一页和下一页的bug显示如下:

1
« __('prev') __('next') »

解决方法(layout/_partial/archive.ejs):

阅读全文 >

粤ICP备18054847号-2
本站总访问量次 本站访客数人 本文总阅读量
{% if theme.baidu_push %} {% endif %}