- 博客(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
375
原创 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
1799
原创 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
241
原创 post routing
echo 1 > /proc/sys/net/ipv4/ip_forwardiptables - t net -A POSTROUTING -o eth0 -j MASQUERADE
2018-03-14 23:52:34
603
原创 skip check when first time ssh connection
# echo "StrictHostKeyChecking no" >> /etc/ssh/ssh_config
2018-03-14 22:50:19
228
原创 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
477
原创 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>...
2018-03-14 22:24:07
333
原创 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
712
原创 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
303
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人