Page4 of 42 1 2 3 4 5 6 42
3 01 2013

当前监听的端口

#bigCat.Linux(" Comment.isNotBlank ")

via [ubuntu] How do I open or close network ports - Ubuntu Forums.\r\n\r\n \r\n\r\nsudo netstat -ntlup\r\n\r\n绑定在127.0.0.1的端口,在外部机器是无法访问的\r\n\r\n干哦... weinre

2 01 2013

如何在 Ubuntu 上設定 node.js 的開發環境

#bigCat.Linux, JavaScript(" Comment.isBlank ")

via 如何在 Ubuntu 11.04 上設定 node.js 的開發環境 | DreamersLab.\r\n\r\n \r\n\r\n安裝 node.js\r\n\r\n# install git\r\n\r\n$ sudo apt-get install git\r\n\r\n# clone repo\r\n\r\n$ git clone git://github.com/creationix/nvm.git ~/.nvm\r\n\r\n# enable on terminal open\r\n\r\n$ echo ". ~/.nvm/nvm.sh" >> ~/.bashrc\r\n\r\n# reopen your terminal and do the following\r\n\r\n$ nvm install v0.8.16\r\n\r\n# set default node\r\n\r\n$ nvm alias default v0.8.16\r\n\r\n \r\n\r\n安裝 mongodb\r\n\r\n# switch to super user\r\n\r\n$ sudo su\r\n\r\n# add 10gen GPG key\r\n\r\n$ apt-key adv --keyserver keyserver.ubuntu.com --recv 7F0CEB10\r\n\r\n# add to source.list for using upstart to manage mongodb\r\n\r\n$ echo "deb http://downloads-distro.mongodb.org/repo/ubuntu-upstart dist 10gen" >> /etc/apt/sources.list\r\n\r\n# install\r\n\r\n$ apt-get update\r\n\r\n$ apt-get install mongodb-10gen\r\n\r\n$ exit

28 08 2012

.htaccess 判断域名做跳转

#bigCat.Linux, WordPress(" Comment.isBlank ")
RewriteCond %{HTTP_HOST} ooxx.me$ [NC]\r\nRewriteRule ^(.*)$ http://av.cm/$1 [L,R=301]

\r\n\r\n这样做了别名之后,就可以做转发了

16 07 2012

抓BOM

#bigCat.Linux(" Comment.isBlank ")

grep -r $'\xEF\xBB\xBF' .\r\n找到那个文件有BOM 改掉就好了\r\n\r\nvia chenyundong

15 07 2012

php whoami

#bigCat.Linux, PHP(" Comment.isBlank ")
<?php\r\necho "Output of the 'whoami' command:<br /><br />";\r\necho exec('/usr/bin/whoami');\r\n?>
Page4 of 42 1 2 3 4 5 6 42
Host: (miao) | Word: Press | Code: HTML5