自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(17)
  • 收藏
  • 关注

转载 pyvmomi

vSphere Web Service API:https://code.vmware.com/apis/358/vsphere/doc/index-all_types.html转载于:https://www.cnblogs.com/QQQmadNULL/p/10768904.html

2019-04-25 15:48:00 1055

转载 python datetime format

The following is a list of all the format codes that the C standard (1989 version) requires, and these work on all platforms with a standard C implementation. Note that the 1999 version of the C ...

2019-04-17 11:30:00 1137

转载 协议速率对比

来源:https://zh.wikipedia.org/wiki/SATASATA与其他规格的比较[编辑]参见:计算机设备带宽列表Name原始带宽传输速度排线最长长度电源链接的设备数量eSATA6Gbit/s600MB/s2m with eSATAHBA(1m with a passive adapter)否1...

2019-01-31 14:56:00 844

转载 MySQL

#mariadb远程UPDATE mysql.user SET authentication_string = PASSWORD('mypassword'), plugin = 'mysql_native_password' WHERE User = 'root' AND Host = '%';my.conf 设置bindip#mysql修改遗忘密码netstat -an...

2019-01-04 15:04:00 120

转载 Flask-Login一个账号单用户在线

原理flask-login使用的是客户端侧的session来存储用户的登录信息,在验证用户的登录状态时通过调用load_user(userid)用user的id来获得user对象,当通过id无法找到对应的user时即判定用户未登录。我们可以通过一个token来替换这个id,改写user的get_id()使其返回的是token,每次登录后更新user的token,load_user()...

2018-11-23 10:39:00 851

转载 DataTable按钮,排序,单元格颜色

function init_ceph_table(data, elementid) { var table = $('#' + elementid).DataTable( { data: data, columns: [ ...

2018-11-15 10:01:00 793

转载 python

转化时间戳time.strftime("%Y-%m-%d %H:%M:%S",time.localtime(int(data["starttime"])))多线程queueclass GetMemInfoThread(threading.Thread): def __init__(self, node_queue, result_queue, compute_l...

2018-11-02 12:40:00 62

转载 MegaCli64 raid对应关系

RAID Level : Primary-1, Secondary-0, RAID Level Qualifier-0 RAID 1RAID Level : Primary-0, Secondary-0, RAID Level Qualifier-0 RAID 0RAID Level : Primary-5, Secondary-0, RAID Level Q...

2018-10-15 14:20:00 498

转载 openstack server status

Servers contain a status attribute that indicates the current server state. You can filter on the server status when you complete a list servers request. The server status is returned in the resp...

2018-09-18 17:28:00 523

转载 js中使用JSON.parse转换json

注意json中的转义字符在parse中会报错t=t.replace(/(\r\n)|(\n)/g,"")转载于:https://www.cnblogs.com/QQQmadNULL/p/9578042.html

2018-09-03 13:44:00 323

转载 linux使用pyodbc和freetds连接sqlserver

安装unixODBC使用pyodbc需要Linux上安装unixODBC可使用yum或apt安装unixODBC-devel包编译安装:http://www.unixodbc.org/download.html安装成功验证#odbcinst -junixODBC 2.3.7DRIVERS............: /usr/local/etc/odbc...

2018-08-28 13:15:00 309

转载 linux command

#查看端口占用netstat -tunlp#启用rootpasswd -u rootpasswd root#允许rootssh登陆 sudo vi /etc/ssh/sshd_config 修改远程登录为yes#查看时区cat /etc/sysconfig/clockcat /etc/timezonetimedatectl | grep "time ...

2018-05-11 00:12:00 79

转载 Flask提供json api跨域访问,ajax接收json数据

ajax在判断请求成功时会判断返回的数据是否为json,需要将response的content-type设置为application/json,数据为标准的json格式jQuery版本<script src="https://cdn.bootcss.com/jquery/3.2.1/jquery.min.js"></script>flask代码示例...

2018-05-10 00:17:00 159

转载 shell自动打补丁

#!/bin/bash#todo:运行前设置主机间SSH信任,将要更新的主机的IP放在mip中#变量设置#待更新主机ip存放在mip文件中if [ ! -f mip ]thenecho "mip doesn't exist"exit 1fiip=$(cat mip|awk '{print $1}')#远程登陆用户user="root"...

2017-08-03 10:51:00 158

转载 json result

public JsonResult JsonData() { HttpContext.Response.AppendHeader("Access-Control-Allow-Origin", "*"); return Json(db.Weathers.ToList()); ...

2017-06-06 23:48:00 120

转载 c#sqlhelper

using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;using System.Data.SqlClient;using System.Data;using System.Configura...

2017-05-29 17:52:00 109

转载 Flask+腾讯云windows主机快速搭建微信公众号接口

0x00在腾讯云官网https://cloud.tencent.com注册认证后可以免费领取一个月的云主机使用,本例中选用的是windows server20120x01主要代码 first.py 提供简单重复会话 1 # -*- coding=utf-8 -*- 2 import time 3 from flask import Flask,request,...

2017-05-26 00:44:00 228

空空如也

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除