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
| I used the following instructions to upgrade from Node.js version 0.10.6 to 0.10.21 on a Mac. | |
| Clear NPM's cache: | |
| sudo npm cache clean -f | |
| Install a little helper called 'n' | |
| sudo npm install -g n | |
| Install latest stable Node.js version |
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
| php artisan infyom:api_scaffold --tableName=messages --fromTable --skip=migration,views,menu Message |
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
| #linux cook book | |
| /** find app pid */ | |
| pgrep gedit | |
| pgrep supervisor | |
| 847 | |
| cat /proc/847/environ | tr '\0' '\n' |
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
| /** 端口查看 删除进程 */ | |
| ps aut | grep ** | |
| netstat -anp | grep | |
| lsof -i:80 | |
| kill -9 PID |
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
| rsync -av --exclude /home/52php/data/a --exclude /home/52php/data/b --exclude /home/52php/data/c /home/52php/data/* /bak |
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
| npm install -g redis-commander | |
| redis-commander |
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
| //centos open port | |
| firewall-cmd --zone=public --permanent --add-port=6222/udp | |
| //network test | |
| netcat -u -z -n -v host port | |
| -u udp | tcp | |
| -z scan port range | |
| -n skip dns | |
| -v verbose info | |
| -l listen port |
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
| tree -a -L 1 |
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
| useradd -g www -G admin -s /bin/bash -d /home/repos -m repos | |
| useradd -g www -s /sbin/nologin -d /www/repos -M repos |
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
| 0x80240037, | |
| 解决办法: | |
| 1、把IE11-Windows6.1-KB3008923-x64.msu的后缀名msu改为cab,然后解压,注意解压到一个新的文件夹中, | |
| 然后运行cmd(win键+R键) | |
| 输入:dism /online /add-package /packagepath:”X:\路径\文件名.cab | |
| (例如:我应该输入:dism /online /add-package /packagepath:”C:\ie\cab\IE11-Windows6.1-KB3008923-x64.cab”) |