自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+

油墨豆腐

油墨豆腐

  • 博客(9)
  • 收藏
  • 关注

原创 convolution

tensor shape depend on both strides and padding type try strides in (1 1), (2 2), (3 3) and (4 4) combine with twice padding typeimport osimport numpy as npimport tensorflow as tfos.environ["CU...

2018-05-27 17:59:04 337

原创 django CONN_MAX_AGE

start django with runserver, create Thread every request, connections may in any thread, so maybe much mysql connections.

2018-03-25 01:45:36 1754

原创 pxe

---- name: yum install basic services yum: name: "{{ item }}" state: latest with_items: - xinetd - tftp-server - dhcp - httpd - syslinux- name: rewrite tftp config ...

2018-03-15 00:01:55 209

原创 post routing

echo 1 > /proc/sys/net/ipv4/ip_forwardiptables - t net -A POSTROUTING -o eth0 -j MASQUERADE

2018-03-14 23:52:34 573

原创 skip check when first time ssh connection

# echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config

2018-03-14 22:50:19 198

原创 Vmware Workstation create vm

# vmware-vdiskmanager -c -t 0 -s 40G -a scsi /home/vmware/vm1.vmdk# vmrun start /home/vmware/vm1.vmx nogui-t 0 is single, 1 is multiply with vmdk file/home/vmware/vm1.vmx.encoding = "UTF-8"c...

2018-03-14 22:35:48 445

原创 ESXi create vm

# vmkfstools -c 40G -a lsilogic /vmfs/volumes/datastorage/vm1.vmdk# vim-cmd solo/registervm /vmfs/volumes/datastorage/vm1.vmx# vim-cmd vmsvc/getallvms | grep vm1# vim-cmd vmsvc/power.on <vmid&gt...

2018-03-14 22:24:07 308

原创 ansible2 python api

import yamlfrom collections import namedtuplefrom ansible.parsing.dataloader import DataLoaderfrom ansible.vars.manager import VariableManagerfrom ansible.inventory.manager import InventoryManager...

2018-03-14 21:30:34 674

原创 centos7 kvm create vm

# virt-install \--network bridge:br0 \--name vm1 \--ram=4096 \--vcpus=2 \--disk path=/vm-images/vm1.img,size=40 \--graphics vnc \--location=https://mirrors.aliyun.com/centos/7.4.1708/os/x86_64/...

2018-03-14 21:20:38 286

空空如也

空空如也

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

TA关注的人

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