Skip to content

Instantly share code, notes, and snippets.

@xiaoysh8
xiaoysh8 / node npm update
Last active August 27, 2019 06:03
node npm update
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
@xiaoysh8
xiaoysh8 / laravel generater
Last active November 12, 2019 08:44
laravel generater
php artisan infyom:api_scaffold --tableName=messages --fromTable --skip=migration,views,menu Message
@xiaoysh8
xiaoysh8 / linux cook book
Created February 1, 2019 09:08
linux cook book
#linux cook book
/** find app pid */
pgrep gedit
pgrep supervisor
847
cat /proc/847/environ | tr '\0' '\n'
@xiaoysh8
xiaoysh8 / linux play
Created January 22, 2019 08:22
linux play
/** 端口查看 删除进程 */
ps aut | grep **
netstat -anp | grep
lsof -i:80
kill -9 PID
@xiaoysh8
xiaoysh8 / linux rsync
Created January 18, 2019 03:03
linux rsync
rsync -av --exclude /home/52php/data/a --exclude /home/52php/data/b --exclude /home/52php/data/c /home/52php/data/* /bak
@xiaoysh8
xiaoysh8 / redis browser
Created September 18, 2018 07:35
redis browser
npm install -g redis-commander
redis-commander
@xiaoysh8
xiaoysh8 / centos staff
Last active September 6, 2018 01:24
centos staff
//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
@xiaoysh8
xiaoysh8 / linux tree
Created August 24, 2018 03:41
linux tree
tree -a -L 1
@xiaoysh8
xiaoysh8 / linux user add
Created August 24, 2018 01:49
linux user add
useradd -g www -G admin -s /bin/bash -d /home/repos -m repos
useradd -g www -s /sbin/nologin -d /www/repos -M repos
@xiaoysh8
xiaoysh8 / powershell install
Created August 17, 2018 08:31
powershell install
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”)