shutdown命令 shutdown [选项] 时间 -c:取消前一个关机命令 -h:关机 -r:重启 [root@localhost ~]# date 2017年 06月 21日 星期三 15:48:33 CST [root@localhost ~]# shutdown -r 17:30 Shu ...
分类:
其他好文 时间:
2018-03-08 14:41:12
阅读次数:
195
#!/bin/sh # author hapday # date 2018-03-08 echo "以时间日期为名称基准备份 war 包。" date +%Y-%m-%d-%H-%M-%S cp artup-pms.war artup-pms.war_$(date +%Y-%m-%d-%H-%M-%... ...
分类:
系统相关 时间:
2018-03-08 13:55:42
阅读次数:
191
数据处理函数/单行处理函数 Lower 转换小写 upper 转换大写 substr 取子串(substr( 被截取的字符串, 起始下标, 截取的长度)) length 取长度 trim 去空格 35 / 103 str_to_date 将字符串转换成日期 date_format 格式化日期 for ...
分类:
数据库 时间:
2018-03-08 13:53:59
阅读次数:
247
"Good man never makes girls wait or breaks an appointment!" said the mandarin duck father. Softly touching his little ducks' head, he told them a stor ...
分类:
其他好文 时间:
2018-03-08 12:14:33
阅读次数:
171
获取UTC时间,但是设置了全局的TimeZone,导致后面的时间都是以此Zone为准: 用时差计算UTC时间: MySql数据库中的日期类型字段,对应java中的Date类应该使用java.sql.Date或者java.sql.Timestamp,都是继承了java.util.Date. 注:jav ...
分类:
其他好文 时间:
2018-03-08 12:06:32
阅读次数:
177
#!/bin/env?python#AUTHOR:karl#DATE:2017-10-31#VERSION:V1.0######################import timeimport osimport paramikoimport multiprocessingimport datetimeimport sysprivate_key = paramiko.RSAKey.fro
分类:
编程语言 时间:
2018-03-08 10:38:16
阅读次数:
533
#!/usr/bin/env python# -*- coding: UTF-8 -*-# 数值运算print(5 + 4) # 加法print(4.3 - 2) # 减法print(3 * 7) # 乘法print(2 / 4) # 除法,等到一个浮点数print(2 // 4) # 除法,得到一 ...
分类:
编程语言 时间:
2018-03-08 02:56:23
阅读次数:
199
grabs up to date useragent from "useragentstring.com" randomize with real world statistic via w3schools.com https://fake useragent.herokuapp.com/brows ...
分类:
其他好文 时间:
2018-03-08 02:33:00
阅读次数:
1400
(1)往es里面直接插入数据,es会自动建立索引,同时建立type以及对应的mapping (2)mapping中就自动定义了每个field的数据类型 (3)不同的数据类型(比如说text和date),可能有的是exact value,有的是full text (4)exact value,在建立倒 ...
分类:
移动开发 时间:
2018-03-08 00:12:01
阅读次数:
230
React生命周期 一、装载(初始化)过程(Mount) 组件第一次在DOM树渲染的过程 1)getDefaultProps() : ES5中设置默认的props(ES6中defaultProps设置组件的默认的属性)。 2)getInitialState() : ES5中初始化state,此时可以 ...
分类:
其他好文 时间:
2018-03-08 00:08:08
阅读次数:
162