
简介
该用户还未填写简介
擅长的技术栈
可提供的服务
暂无可提供的服务
有时候想知道import的模块的文件路径,看看脚本,可以通过以下方式来查看:Python 2.6.6 (r266:84292, Jul 23 2015, 15:22:56)[GCC 4.4.7 20120313 (Red Hat 4.4.7-11)] on linux2Type "help", "copyright", "credits" or "license" for more in
在docker容器中,安装好ssh:1)替换掉容器中的安装源为163源2)安装ssh服务apt-get updateapt-get install openssh-server3)添加目录,修改ssh配置文件mkdir -p /var/run/sshdvim /etc/pam.d/sshd找到 session required pam_loginu
在Push一个镜像到本地的registry时,报错:#docker push 192.168.163.131:5000/testThe push refers to a repository [192.168.163.131:5000/test]Get https://192.168.163.131:5000/v1/_ping: http: server gave HTTP respons
代码如下:#!/usr/bin/env pythonimport socketfrom time import sleepimport Queueimport threadingdef put_queue(q):with open('D:/vim/alllist','rb') as f:for line in f:#print 'Put %s to qu
python3.7.5环境打包打包前准备环境可能是由于版本原因,fpm打包时默认会从系统拿默认的python来打包,即使进行虚拟环境也一样。但是我们需要用python3。所以首先把系统默认的python改为3.7cp /usr/bin/python3.7 /usr/bin/pythoncp /usr/bin/pip3.7 /usr/bin/pip3.7因为打包virtualenv需要...
为方便用ipset 来管理防火墙,写了下面Ipset类来对Ip进行管理#!/usr/bin/env python# coding: utf-8import MySQLdbimport MySQLdb.cursorsimport subprocessimport loggingimport re,osimport xml.saxclass XMLHandler(xml.sa...
#!/usr/sbin/env pythonimport urllib2,jsonimport os,threadingdef action(ip):try:a=urllib2.urlopen("http://int.dpool.sina.com.cn/iplookup/iplookup.php?format=js&ip="+ip).read()
如题:#!/usr/bin/env python# encoding: utf-8import rewith open('a.txt', 'r') as f:dictResult = {}# Find the letters each linefor line in f.readlines():listMatch = re.finda
直接看代码#--encoding=utf-8from pyzabbix import ZabbixAPI###pyzabbixclass pyzabbixAPI(object):def __init__(self):self.prioritytostr = {'0':'ok','1':'信息','2':'警告','3':'严重'} #告警级别def login(self
wiki.js搭建官网[wiki.js:](https://docs.requarks.io/wiki/)目前这个wiki.js还存在一些bug,期待2.x版本正式发布!软件依赖wiki.js需要以下软件包:- git 2.7.4 or later is required- nodejs 6.11.1 or later is required.- mongodb 3.2 or ...







