- 博客(3)
- 收藏
- 关注
原创 使用requests下载文件并显示网速和下载进度
# -*- coding: utf-8 -*- import time import requests # 请求下载地址,以流式的。打开要下载的文件位置。 with requests.get('http://down.360safe.com/setup.exe', stream=True) as r, open('setup.exe', 'wb') as file: # 请求文件的大小...
2019-07-19 14:02:26 1722
原创 防止暴力SSH登陆IP公示&简单Python自动禁用脚本
简单的Python禁用IP处理 sudo python ssh_log.py # -*- coding: utf-8 -*- # 打开禁用IP文件 with open('/etc/hosts.deny') as f: # 获取每一条以禁用的IP并存入set集合去重 deny = set(f.read().split('\n')) # 打开SSH登陆日志 with ope...
2018-12-27 17:57:37 1311
原创 HBase java API mysplitpage 我的HBasejavaAPI翻页实现
运行环境: VMware Workstation Pro 12 CentSO6.5(VM虚拟机) hadoop-2.6.0 hbase-1.2.6 apache-tomcat-7.0.59 eclipse-jee-neon-3-win32-x86_64 1 vo包: Tableinfo类: package vo; public clas
2017-07-06 16:33:32 419
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人