按类别查询搜索结果
关于关键词 的检测结果,共 4162
chengxuyonghu | 2017-02-27 15:45:12 | 阅读(1010) | 评论(0)
python中字符串格式化有两种,一种是%,另一种是str中的format()功能。 %列举格式符  %s    字符串   %c    单个字符  %b    二进制整数  %d    十进制整数  %i    十进制整数...【阅读全文】
音乐就是天空 | 2017-02-21 02:25:34 | 阅读(1670) | 评论(0)
chengxuyonghu | 2017-02-19 13:44:48 | 阅读(700) | 评论(0)
# useradd -M -s /sbin/nologin mysql--2.安装需要的库,编译器--3.解压# cd mysql-5.6.35--4.编译安装# make # cp support-files/my-default.cnf /etc/my.cnf# chown -R mysql.mysql /usr/local/mysql/# /usr/local/mysql/scripts/mysql_install_db --ba...【阅读全文】
chengxuyonghu | 2017-02-16 11:29:33 | 阅读(1490) | 评论(0)
#!/usr/bin/pythonnum1 = input("Please input a number:")num2 = input("Please input a number:")print num1 + num2print num1 - num2print num1 * num2print num1 / num2print "%s + %s =  %s" % (num1, num2, num1 + num2)print "%s - %s =  %s" % (num1, num2, num1 - num2)print "%s * %s =  ...【阅读全文】
badb0y | 2017-02-15 14:07:36 | 阅读(1850) | 评论(2)
mkdir -p .orgx/cd !$git clone https://github.com/golang/net.gitgit clone https://github.com/golang/sys.gitgit clone https://github.com/golang/tools.git【阅读全文】
chengxuyonghu | 2017-02-09 18:25:02 | 阅读(600) | 评论(0)
python操作excel主要用到xlrd和xlwt这两个库,即xlrd是读excel,xlwt是写excel的库。可从这里下载https://pypi.python.org/pypi。下面分别记录python读和写excel.python读excel——xlrd这个过程有几个比较麻烦的问题,比如读取日期、读合并单元格内容。下面先看看基本的操作:首先读一个excel文件,有两...【阅读全文】
chengxuyonghu | 2017-02-08 10:44:30 | 阅读(3010) | 评论(0)
val rdd = df.toJSON.rdd2.如果要指定格式需要自定义函数如下:def formatItem(p:(StructField,Any)):String={  p match {    case (sf,a) =>      sf.dataType match {        case StringType => "\"" + sf.name + "\":\"" + a + "\""        case IntegerType => "\"" +...【阅读全文】
chengxuyonghu | 2017-01-24 14:21:27 | 阅读(520) | 评论(0)
#!/bin/bashfor i in `cat ./iplist.ini `do    echo $i    scp ./MonitorProcess.sh $i:/home/haoren/    ssh $i "(echo '*/5 * * * * /home/haoren/MonitorProcess.sh' ;crontab -l) |crontab"    echo "Synchronization is complete."do...【阅读全文】
【系统运维】 证据汇总清单
海峡 | 2017-01-22 11:31:19 | 阅读(880) | 评论(0)
         A002信息化规划的实施方案或阶段性报告     A004组织机构和相关职责说明,职责履行文件,如会议纪要、决议、决策等工作记录     A006组织架构及职责说明,相关职...【阅读全文】
【系统运维】 互联网保险审指南
海峡 | 2017-01-22 11:29:15 | 阅读(1170) | 评论(0)
备注:保险机构至少应每三年进行一次互联网保险审计。【阅读全文】
【系统运维】 外包与采购审指南
海峡 | 2017-01-22 11:28:39 | 阅读(1280) | 评论(0)
备注:保险机构至少应每三年进行一次外包与采购审计。【阅读全文】
【系统运维】 安全工具,个记号
badb0y | 2017-01-19 16:49:07 | 阅读(1080) | 评论(0)
https://github.com/We5ter/Scanners-Box/blob/master/README_CN.mdhttps://portswigger.net/burp/http://www.pkav.net/tool/fuzzer/index.htmhttp://sqlmap.org/【阅读全文】
【系统运维】 Ruby线程例子
expert1 | 2017-01-17 21:27:50 | 阅读(4770) | 评论(0)
    很久不写了,发一个最近的ruby多线程例子,没有线程同步问题,比较简单。require 'json'require 'rest-client'require 'thread'$contenct=[]def get_metricsget_json($content).select do |item|if /^opents...【阅读全文】
chengxuyonghu | 2017-01-12 17:33:23 | 阅读(450) | 评论(0)
第一种方法先以root用户登陆系统,修改配置文件:/etc/gdm/custom.conf,配置项说明如下图所示先以root用户登陆,执行以下命令:ln -sf /lib/systemd/system/multi-user.target /etc/systemd/system/default.target重新启动系统,默认进入命令行登陆方式使用root用户以命令行方式登陆系统后,执行s...【阅读全文】
steve78926 | 2017-01-02 01:01:26 | 阅读(10410) | 评论(0)
linux下利用sed 在某一行插入多行文本,批量操作【阅读全文】
zyhzycfj | 2016-12-23 15:07:01 | 阅读(420) | 评论(0)
感谢baidu,感谢网上其他人的分享。如果google不翻墙,会查找的更快。期间处理日常硬软件问题,自学自写python两个月。写了两三个版本,最后找到一个简化的。给自己点赞。 #取mem数值#elif checknum == 8 and len(re.findall('[0-9]',dd))>0:elif checknum == 8:# print ddif dd.find('Mem:')>=0:...【阅读全文】
【系统运维】 python式化时间
gyq0618 | 2016-12-16 11:31:06 | 阅读(2940) | 评论(0)
import datetimea = "2011-09-28 10:00:00"b = datetime.datetime.strptime(a,'%Y-%m-%d %H:%M:%S')print b2011-09-28 10:00:00使用datetime模块可以直接将字符串格式化成时间,time得先转换成strptime转换成时间数组,然后在使用strftime格式化需要个时间格式以下转载一篇文章:1.将字符串的时间转换为时间戳...【阅读全文】
【系统运维】 iOS 快速集成环
hbsxjs | 2016-12-12 21:22:59 | 阅读(1820) | 评论(0)
1、建议使用cocoapods导入环信SDKpod 'HyphenateSDK', :git => 'https://github.com/easemob/hyphenate-cocoapods.git'2、导入EaseUI,将EaseUI拖入工程中https://github.com/easemob/easeui_ios/tree/new_dev最坑的报错如下错误截图 修改错误原因是因为里面有.c文件,一般情况下出现“...【阅读全文】
hongwen0602 | 2016-12-07 10:47:08 | 阅读(2150) | 评论(0)
asd 1、将时间转换为时间戳select unix_timestamp('2009-10-26 10-06-07')如果参数为空,则处理为当前时间 2、将时间戳转换为时间select from_unixtime(1256540102)有些应用生成的时间戳是比这个多出三位,是毫秒表示,如果要转换,需要先将最后三位去掉(标准的10位...【阅读全文】
swenker | 2016-11-24 16:36:42 | 阅读(2750) | 评论(0)
awk输出单引号【阅读全文】