上一页 1 2 3 4 5 6 7 8 ··· 27 下一页
摘要: 报错信息: Exception ignored in: <function BufferedFile.__del__ at 0xffff8810f280> Traceback (most recent call last): File "/home/test/.local/lib/python3.9 阅读全文
posted @ 2022-07-16 12:59 船长博客 阅读(1437) 评论(0) 推荐(0)
摘要: #!/usr/bin/env python2 # -*- coding:utf-8 -*- from telnetlib import Telnet import time host = '192.168.2.1' username = 'root' password = '12345678' fi 阅读全文
posted @ 2022-07-16 10:39 船长博客 阅读(592) 评论(0) 推荐(0)
摘要: pip install pexpect #!/usr/bin/env python import pexpect address = '192.168.2.1' userName = 'root' password = '12345678' cmd = 'telnet ' + address pro 阅读全文
posted @ 2022-07-16 09:59 船长博客 阅读(404) 评论(0) 推荐(0)
摘要: 安装paramiko:pip install paramiko或者使用国内豆瓣的源pip install paramiko -i https://pypi.douban.com/simple/ --trusted-host http://pypi.douban.com #!/usr/bin/env 阅读全文
posted @ 2022-07-16 08:36 船长博客 阅读(130) 评论(0) 推荐(0)
摘要: logger "this is a test log." logger -t test "this is a test log." logger -t test -s "this is a test log." 对应输出: Jun 30 15:28:59 (none) user.notice roo 阅读全文
posted @ 2022-06-30 18:48 船长博客 阅读(4241) 评论(0) 推荐(1)
摘要: tcpdump -i br-lan udp port 67 or port 68 -nnnn tcpdump -i eth0 port 67 or port 68 -e -n -vv 参考:https://unixhealthcheck.com/blog?id=433 阅读全文
posted @ 2022-06-28 16:14 船长博客 阅读(918) 评论(0) 推荐(0)
摘要: 一、在右侧边栏进行编辑或删除宏: 二、修改配置文件删除宏 在我的电脑里搜索MobaXterm.ini,我安装的V22.0版本目录是: C:\Users\jack\AppData\Roaming\MobaXterm 修改MobaXterm.ini里的[Macros]和[MacrosHotkeys]即可 阅读全文
posted @ 2022-06-28 10:28 船长博客 阅读(4468) 评论(0) 推荐(0)
摘要: 一、POST传送参数 使用curl命令传送字典: curl http://192.168.1.10:5000/upload -X POST -d '{"hello": "world"}' --header "Content-Type: application /json" 使用Python Flas 阅读全文
posted @ 2022-06-18 13:04 船长博客 阅读(1574) 评论(0) 推荐(0)
摘要: 1. 使用-d参数: 语法:curl -d @filename [URL] 示例: touch a.txt curl -d @a.txt https://reqbin.com/echo/post/json 返回信息: {"success":"true"} 2. 使用-F参数 语法:curl -F f 阅读全文
posted @ 2022-06-18 11:38 船长博客 阅读(16957) 评论(2) 推荐(4)
摘要: 使用curl post上传文件: touch abc.txt curl -F "file=@abc.txt" http://192.168.1.10:5000/upload 使用python flask接收文件: from flask import Flask, request app = Flas 阅读全文
posted @ 2022-06-18 11:37 船长博客 阅读(6644) 评论(0) 推荐(0)
摘要: window.open(url); 改为 window.open(url,"newpage");加了个name属性 基本语法: window.open(pageURL,name,parameters) 其中: pageURL 为子窗口路径 name 为子窗口句柄 parameters 为窗口参数(各 阅读全文
posted @ 2022-06-07 19:30 船长博客 阅读(1797) 评论(0) 推荐(0)
摘要: --network host所有容器和主机互通 docker run -it --privileged=true --network=host ubuntu:20.04 /bin/bash root@A1022:/# apt-get update Get:1 http://archive.ubunt 阅读全文
posted @ 2022-06-07 19:13 船长博客 阅读(746) 评论(0) 推荐(0)
摘要: HTML代码在线运行和预览网站:1:http://jsrun.net/Cj2Kp/edit 2:https://www.w3school.com.cn/tiy/t.asp?f=html5_audio 3:https://jsbin.com/?html,output 还是浏览器自带的js调试工具好用: 阅读全文
posted @ 2022-06-01 11:13 船长博客 阅读(867) 评论(0) 推荐(0)
摘要: function sleep(milliSeconds) { var startTime = new Date().getTime(); while (new Date().getTime() < startTime + milliSeconds) { //console.log(new Date( 阅读全文
posted @ 2022-06-01 11:00 船长博客 阅读(240) 评论(0) 推荐(0)
摘要: 先执行test1(),再执行test2: function test1() { return new Promise(resolve => { setTimeout(() => resolve("test1"), 2000); }); } function test2() { console.log 阅读全文
posted @ 2022-05-31 17:19 船长博客 阅读(1639) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 ··· 27 下一页
永远相信美好的事情即将发生!