Windows命令行查看文件的MD5、SHA1、SHA256
certutil -hashfile D:\1.exe MD5certutil -hashfile D:\1.exe SHA1certutil -hashfile D:\1.exe SHA256
Child Process模块
目录 exec() execSync() execFile() spawn() fork() send() child_process模块用于新建子进程。子进程的运行结果储存在系统缓存之中(最大200KB),等到子进程运行结束以后,主进程再用回调函数读取子进程的运行结果。 1.exec()exec方法用于执行bash命令,它的参数是一个命令字符串。 12345678var exec = require('child\_process').exec;var ls = exec('ls -l', function (error, stdout, stderr) { if (error) { console.log(error.stack); console.log('Error code: ' + error.code); } console.log('Child Process STDOUT: ' + stdout);}); 上面代码的exe...
mousewheel滚轮事件
原生123456//Chrome 及 IEdocument.body.onmousewheel = function (event) { event = event window.event; var direction = event.wheelDelta && (event.wheelDelta > 0 ? "mouseup" : "mousedown"); console.log(direction);}; 12345// Firefoxdocument.body.addEventListener("DOMMouseScroll", function(event) { var direction= event.detail && (event.detail > 0 ? "mousedown" : "mouseup"); console.log(direction);...
CSS小箭头
12345678910active:after { content: ""; border-right: 6px solid #f0f3f4; border-top: 6px solid transparent; border-bottom: 8px solid transparent; position: absolute; top: 50%; margin-top: -7px; right: 0;}
centos遇到的一些问题
问题一问题:运行netstat -ntlp出现 -bash: netstat: command not found解决方法:yum install net-tools
CentOS7 关闭自带防火墙
systemctl stop firewalld.service #停止firewallsystemctl disable firewalld.service #禁止firewall开机启动firewall-cmd –state #查看默认防火墙状态(关闭后显示notrunning,开启后显示running)
更换CentOS7的yum源
第一步进入yum源配置目录并备份系统自带的yum源 12cd /etc/yum.repos.dsudo mv CentOS-Base.repo CentOS-Base.repo.bak 第二步下载需要替换的源 阿里云: 1sudo wget -O CentOS-Base.repo http://mirrors.aliyun.com/repo/Centos-7.repo 163网易: 1wget http://mirrors.163.com/.help/CentOS7-Base-163.repo 中科大: 1wget http://centos.ustc.edu.cn/CentOS-Base.repo sohu: 1wget http://mirrors.sohu.com/help/CentOS-Base-sohu.repo 第三步执行下边命令更新yum配置,使操作立即生效 12yum clean allyum makecache
查看VPS回程线路
BestTrace安装回程需要在VPS主机上运行路由追踪软件。 利用Linux自带的traceroute程序Ping出来的IP不会显示位置,这里我们可以下载由 ipip.net 官方开发BestTrace软件: https://cdn.ipip.net/17mon/besttrace4linux.zip备用地址:https://www.ucblog.net/wzfou/besttrace4linux.zip 下载安装traceroute,然后再下载BestTrace,软件不需要编译,直接就可以运行。 # CentOS系统: 1yum update && yum install traceroute -y # Debian/Ubuntu系统: 1apt-get update && apt-get install traceroute -y wget https://cdn.ipip.net/17mon/besttrace4linux.zip unzip besttrace4linux.zip -d /root/luyou/ cd lu...
VPS使用wget命令下载百度云文件
第一步使用Tampermonkey+油猴脚本获取百度云的真实下载链接 过程:1.打开需要下载文件的页面并获取文件的真实地址2.在vps上运行wget命令 1wget -c -O 文件名 "真实下载地址" 例如: 1wget -c -O S0055.rar "https://d.pcs.baidu.com/file/6dae535765bd0ae1c04ac4de92b6ef07?fid=1779383036-250528-128496541869862&time=1507683192&rt=sh&sign=FDTAERVY-DCb740ccc5511e5e8fedcff06b081203-mS%2FkihhenV281wTYg4SAJi6aoFk%3D&expires=8h&chkv=1&chkbd=0&chkpc=et&dp-logid=6572156775320341594&dp-callid=0&r=659046038" 3.等待下载完成4.使用ls命令就...
[转载]一键测试服务器到中国上传/下载速度
简介最近买了好几台 vps 在测试的时候,经常会遇到一些麻烦,我比较喜欢用 Speedtest 来测试到我本地的网速,每次去找节点有比较麻烦。之前从来没有写过脚本,也不熟悉那些脚本的命令,只会一些简单的经常能用到的管理命令,今天开始学了一天,差不多明白了一些,就拿来练手,就直接集成一个管理面板去测试到国内不同路线的速度,折腾了一下。 全面测速,添加一键全面测速功能,测试服务器到全国北方南方,电信,联通,移动的速度。 特点利用 Speedtest 测试你的国外主机到国内不同省市的速度。 集成了 Speedtest 提供的电信,联通,移动线路。 一键选择,一键测试。 开源地址https://github.com/oooldking/script 使用方法非常的简单,每行一条命令~~ 1wget https://raw.githubusercontent.com/oooldking/script/master/superspeed.sh chmod +x superspeed.sh ./superspeed.sh
