摘要: Sub Main crt.Sleep 10000 Dim cnt For cnt = 0 To 1000000 crt.screen.Send "admin-status down" & Chr(10) crt.Sleep 600000 crt.screen.Send "admin-status u 阅读全文
posted @ 2018-10-06 13:07 科学小怪癖 阅读(155) 评论(0) 推荐(0) 编辑
摘要: Sub Main Dim cnt Dim delay delay = 10000 For cnt = 0 To 80 crt.screen.Send "interface optical-receiver 0 " & chr(13) crt.Sleep delay crt.screen.Send " 阅读全文
posted @ 2018-10-06 13:04 科学小怪癖 阅读(216) 评论(0) 推荐(0) 编辑
摘要: Sub Main Dim cnt Dim delay Dim time Dim atttime atttime = 20 delay = 3000 time = 50 cnt_time=3 crt.screen.Send " " & chr(13) crt.screen.WaitForString" 阅读全文
posted @ 2018-10-06 13:03 科学小怪癖 阅读(186) 评论(0) 推荐(0) 编辑
摘要: 1、python 安装 web-based installer 是需要通过联网完成安装 executable installer 是可执行文件(*.exe)方式安装 embeddable zip file 嵌入式版本,可以集成到其它应用 2、pycharm 激活按照 https://www.cnbl 阅读全文
posted @ 2019-09-30 22:13 科学小怪癖 阅读(207) 评论(0) 推荐(0) 编辑
摘要: 以太网的地址为48位,由ieee统一分配给网卡制造商,每个网卡的地址都必须是全球唯一的。共6个字节的长度 字节 5 4 3 2 1 0 位 47。。40 39。。32 31。。24 23。。16 15。。8 7。。0 例子 08 00 09 A0 4A B1 我们需要注意的是以太网地址的第32位是组播地址的标志位: 位 47。。33 32 31。。24 23。。0 制造厂商标识 组播标志位 制造厂 阅读全文
posted @ 2019-09-26 10:16 科学小怪癖 阅读(2028) 评论(0) 推荐(0) 编辑
摘要: WIFI基本知识整理 这里对wifi的802.11协议中比较常见的知识做一个基本的总结和整理,便于后续的学习。因为无线网络中涉及术语很多,并且许多协议都是用英文描述,所以有些地方翻译出来会有歧义,这种情况就直接英文来描述了。 主要内容: 一、基本概述 二、实践基础 三、一些原理 四、补充 五、其它 阅读全文
posted @ 2019-09-23 09:49 科学小怪癖 阅读(1035) 评论(0) 推荐(0) 编辑
摘要: killall 命令 Linux系统中的killall命令用于杀死指定名字的进程(kill processes by name)。我们可以使用kill命令杀死指定进程PID的进程,如果要找到我们需要杀死的进程,我们还需要在之前使用ps等命令再配合grep来查找进程,而killall把这两个过程合二为 阅读全文
posted @ 2019-09-12 17:18 科学小怪癖 阅读(483) 评论(0) 推荐(0) 编辑
摘要: 可以占满cpu dd if=/dev/zero of=/dev/null 把空数据写进/dev/null据说是测试吞吐量time dd if=/dev/zero of=/dev/null bs=1M count=4024040240+0 records in40240+0 records out42 阅读全文
posted @ 2019-09-12 17:06 科学小怪癖 阅读(4143) 评论(0) 推荐(0) 编辑
摘要: 一、dd命令的解释 dd:用指定大小的块拷贝一个文件,并在拷贝的同时进行指定的转换。 注意:指定数字的地方若以下列字符结尾,则乘以相应的数字:b=512;c=1;k=1024;w=2 参数注释: 1. if=文件名:输入文件名,缺省为标准输入。即指定源文件。< if=input file > 2. 阅读全文
posted @ 2019-09-12 16:45 科学小怪癖 阅读(33069) 评论(0) 推荐(1) 编辑
摘要: win7 和win 2008 获取格式化日期的bat 命令 win7 和win 2008 获取格式化日期的bat 命令 windonws batch文件对于不同的操作系统格式存在差异,对于date 这个参数在Win7 和win server 2008就不一样: 1.windows 7 date /t 阅读全文
posted @ 2019-09-10 17:57 科学小怪癖 阅读(402) 评论(0) 推荐(0) 编辑
摘要: 1. 文件操作 vi FileName 打开文件 FileName,并将光标置于第一行首。 vi +n FileName 打开文件 FileName,并将光标置于第 n 行首。 vi + FileName 打开文件 FileName,并将光标置于最后一行。 vi + /pattern File 打开 阅读全文
posted @ 2019-08-27 11:42 科学小怪癖 阅读(10576) 评论(0) 推荐(1) 编辑
摘要: # -*- coding: utf-8 -*- import subprocess import re import time def check_online(ip_address): p = subprocess.Popen(["ping.exe", ip_address], stdin = subprocess.PIPE, stdout = subprocess.PI... 阅读全文
posted @ 2019-08-19 17:40 科学小怪癖 阅读(428) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: cp936 -*- import paramiko class SSHConnection(object): def __init__(self, host, port, username, password): self._host = host self._port = port self._username = username self._password = 阅读全文
posted @ 2019-08-19 17:39 科学小怪癖 阅读(527) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import binascii import re def split_1(data,split_sign): data2=[] for i in data: data3 = i.split(split_sign) for n in data3: n=n.strip() ... 阅读全文
posted @ 2019-08-19 17:36 科学小怪癖 阅读(1222) 评论(0) 推荐(0) 编辑
摘要: # -*- coding: utf-8 -*- import binascii def split_1(data,split_sign): data2=[] for i in data: data3 = i.split(split_sign) for n in data3: n=n.strip() data2.append(n) return data2 def com_data(data1,*v 阅读全文
posted @ 2019-08-19 17:33 科学小怪癖 阅读(510) 评论(0) 推荐(0) 编辑
摘要: import os def close_process( process_name): """Close a process by process name.""" if process_name[-4:].lower() != ".exe": process_name += ".exe" os.system("taskkill /f /im " + pr... 阅读全文
posted @ 2019-08-19 17:29 科学小怪癖 阅读(1504) 评论(0) 推荐(0) 编辑
摘要: 有关wifi网卡 的cmd 命令1、指定wifi ssidnetsh wlan connect name=${ssid} ssid=${ssid} interface="${wifi_pc_wangka_name}"2、查看网络连接netsh WLAN show interface3、网卡使能net 阅读全文
posted @ 2019-08-19 17:26 科学小怪癖 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 1、关闭串口 如果没有创建串口,关闭串口就会报错SerialLibrary.Close PortSerialLibrary.Delete All PortsRun Keyword And Ignore Error 可以用该命令来忽略错误2、添加串口 SerialLibrary.Add Port ${ 阅读全文
posted @ 2019-08-19 17:25 科学小怪癖 阅读(713) 评论(0) 推荐(0) 编辑
摘要: 1、robot 下运行 cmdOperatingSystem.Run${a} OperatingSystem.Run C:/Users/MC/Desktop/testbaidu/EOC_Test/power_off${power_port}.bat运行bat文件涉及的命令 如果需要路径 注意设置环境 阅读全文
posted @ 2019-08-19 17:24 科学小怪癖 阅读(1465) 评论(0) 推荐(0) 编辑
摘要: ssh 连接1、SSHLibrary.Close All Connections SSHLibrary.Open Connection 192.168.1.1 port=6700 sleep 2 SSHLibrary.Login root ${wg_md5_password} delay=2 sle 阅读全文
posted @ 2019-08-19 17:23 科学小怪癖 阅读(304) 评论(0) 推荐(0) 编辑
摘要: telnet 登录参数 [ host | alias=None | port=23 | timeout=None | newline=None | prompt=None | prompt_is_regexp=False | encoding=None | encoding_errors=None 阅读全文
posted @ 2019-08-19 17:23 科学小怪癖 阅读(661) 评论(0) 推荐(0) 编辑
摘要: web 元素1、关闭浏览器驱动在cmd 下操作taskkill /f /im bash.exe或者使用py脚本:import osdef close_process( process_name): """Close a process by process name.""" if process_n 阅读全文
posted @ 2019-08-19 17:22 科学小怪癖 阅读(338) 评论(0) 推荐(0) 编辑
摘要: 1、使用git 来运行 curl 安装 git 软件 链接:https://pan.baidu.com/s/1zB2NcOfwXTg90R5PRGHhZg 提取码:xxxx 111111 在windows上安装SpaceVim时,提示需要安装Git和curl, 安装了Git, 原本以为要通过ming 阅读全文
posted @ 2019-08-14 16:00 科学小怪癖 阅读(918) 评论(0) 推荐(0) 编辑
摘要: Git的Windows客户端,会自带一个叫MinGW的Linux命令行工具,可以执行简单的shell命令,与cygwin功能类似,仅此而已。 而在MinGW命令行窗口中,执行命令“mintty”既可以打开mintty窗口,再次可以使用ssh命令登录Linux服务器。 因为在Windows上开发Had 阅读全文
posted @ 2019-07-22 11:44 科学小怪癖 阅读(7012) 评论(0) 推荐(0) 编辑
摘要: 下载git Windows客户端 git客户端下载地址:https://git-scm.com/downloads 我这里下载的是Git-2.14.0-64-bit.exe版本 下载TortoiseGit TortoiseGit客户端下载地址:https://tortoisegit.org/down 阅读全文
posted @ 2019-07-22 11:39 科学小怪癖 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 【性能测试】利用IxChariot测试路由器吞吐量(wan to lan & lan to wan) 【写在前面】因项目原因,本人对路由器吞吐量测试进行了学习探索。在学习过程中,了解到IxChariot这一工具,而在实践中,也遇到一些问题,花了较多时间去尝试和摸索。在此本人将这次实践过程记录下来,希 阅读全文
posted @ 2019-07-12 14:22 科学小怪癖 阅读(1940) 评论(0) 推荐(0) 编辑
摘要: Huawei交换机配置Telnet登录一,交换机开启Telnet服务<Huawei>system-view #进入系统视图[Huawei]telnet server ? #查看有enable还是disable选项,选择对应的开启方式。[Huawei]telnet server enable #ena 阅读全文
posted @ 2019-07-11 15:56 科学小怪癖 阅读(9639) 评论(0) 推荐(0) 编辑
摘要: 【解析】 这个错误提示一般发生在将None赋给多个值时。 【案例】 定义了如下的函数 执行这段测试程序会报错:"TypeError: 'NoneType' object is not iterable" 这里是没有考虑到else的情况,在if条件不满足时,函数默认返回None。 调用时,将None赋 阅读全文
posted @ 2019-07-10 18:02 科学小怪癖 阅读(36408) 评论(0) 推荐(1) 编辑
摘要: 1、需要导入pyserial 的模块 Python2.7 脚本如下: 2、查看端扣列表 py2.7 #-*- coding: utf-8 -*-import sys;reload(sys);sys.setdefaultencoding("utf-8")import serial #导入模块impor 阅读全文
posted @ 2019-07-09 10:39 科学小怪癖 阅读(1442) 评论(0) 推荐(0) 编辑
摘要: 1、安装 pip install robotframework-seriallibrary https://pypi.org/project/robotframework-seriallibrary/ 2、导入改库 SerialLibrary 3、简单使用 注意 格式和 波特率 https://gi 阅读全文
posted @ 2019-07-09 10:35 科学小怪癖 阅读(1350) 评论(0) 推荐(0) 编辑
摘要: 之前写过一篇关于在Linux平台上编译android平台上VLC播放器源代码的文章,vlc这款播放器非常优秀而且是开源的,它的核心是开源视频编解码库ffmpeg。而且这款播放器还支持RTSP协议,这个主要是用开源的live555来实现的,live555这个库以后还需要认真研习。一:PC端(Windo 阅读全文
posted @ 2019-05-29 18:06 科学小怪癖 阅读(9682) 评论(0) 推荐(1) 编辑
摘要: 单击打开“网络和共享中心”。单击“设置新的连接或网络”。单击“手动连接到无线网络”,然后单击“下一步”。在“输入您要添加的无线网络的信息”页的“安全类型”下,选择 WEP。完成该页上的剩余操作,然后单击“下一步”。单击“更改连接设置”。单击“安全”选项卡,然后在“安全类型”下单击“共享”。单击“确定 阅读全文
posted @ 2019-05-27 16:51 科学小怪癖 阅读(460) 评论(0) 推荐(0) 编辑
摘要: 可以复制 抓包的的报文的 hex txt文档 粘贴到 anysend 继续发送 阅读全文
posted @ 2019-02-22 11:48 科学小怪癖 阅读(403) 评论(0) 推荐(0) 编辑