#F

ssh.sh_for_ubuntu1404

#!/bin/bashsed-i's/PermitRootLoginwithout-password/PermitRootLoginyes/g'/etc/ssh/sshd_configsed-i's/#PasswordAuthenticationyes/PasswordAuthenticationyes/g'/etc/...
代码星球 代码星球·2020-04-03

ssh.sh_for_ubuntu1604

#!/bin/bashsed-i's/PermitRootLoginprohibit-password/PermitRootLoginyes/g'/etc/ssh/sshd_configsed-i's/#PasswordAuthenticationyes/PasswordAuthenticationyes/g'/etc...
代码星球 代码星球·2020-04-03

ssh.sh_for_centos

#!/bin/bashsed-i's/#PermitRootLoginyes/PermitRootLoginyes/g'/etc/ssh/sshd_configsed-i's/#UseDNSyes/UseDNSno/g'/etc/ssh/sshd_configsed-i's/GSSAPIAuthenticationye...
代码星球 代码星球·2020-04-03

disable-network-config

network:{config:disabled} ...
代码星球 代码星球·2020-04-03

dpkg.cfg

 ...
代码星球 代码星球·2020-04-03

cloud.cfg_for_ubuntu

user:defaultdisable_root:falsepreserve_hostname:falsecloud_init_modules:-bootcmd-resizefs-set_hostname#-update_hostname-update_etc_hosts-ca-certs-rsyslog-sshclo...
代码星球 代码星球·2020-04-03

cloud.cfg_for_centos

users:-defaultdisable_root:0ssh_pwauth:1locale_configfile:/etc/sysconfig/i18nmount_default_fields:[~,~,'auto','defaults,nofail','0','2']resize_rootfs_tmp:/devss...
代码星球 代码星球·2020-04-03

python /usr/bin/python^M: bad interpreter: No such file

今天在WingIDE下写了个脚本,传到服务器执行后提示:-bash:/usr/bin/autocrorder:/usr/bin/python^M:badinterpreter:Nosuchfileordirectory分析:这是不同系统编码格式引起的:在windows系统中编辑的.sh.py文件可能有不可见字符,所以在...

neutron floating ip 限速

查看浮动ip的id[root@10e131e69e14oz]#openstackfloatingipshow36.111.0.197+---------------------+--------------------------------------+|Field|Value|+------------------...
代码星球 代码星球·2020-04-03

heat creating first stack

可以用自带的模板生成一个实例,实例包含一些软件,比如WordPress博客系统等[root@armstrong~(keystone_demo)]#openstackstackcreate-thttp://git.openstack.org/cgit/openstack/heat-templates/plain/hot/...
代码星球 代码星球·2020-04-03

求水洼(dfs)

在余队长众多的农场中,有这样一片N*M大小的田地,它在下雨后积起了水。 在他的田地中,'W'代表积水,'.'代表土地,一片相互连接的积水叫做“水WA”。(每个格子被认为和相邻的8个格子相连) 现在农场工作人员传回来了田地的航拍图,余队长让你帮他确定有多少个“水WA...
代码星球 代码星球·2020-04-03

Before an Exam

题目:http://codeforces.com/problemset/problem/4/B题解:有d组minmax值以及一个sum值,现在要求d个介于min和max之间的数,让其和为sum。此题可以先从sum中减去所有的min,然后对剩下的值进行处理,对其分配时不能超过每一对max-min的值,如果能全部分完,则满...
代码星球 代码星球·2020-04-03

Shortest path of the king1

题目:http://codeforces.com/problemset/problem/3/A题解:由题可得,求最短路程,那么国王走斜方向最近,而且只有四种方向,选择了就不能再变化#include<cstdio>#include<iostream>usingnamespacestd;intmai...

Factory

Oneindustrialfactoryisreformingworkingplan.Thedirectorsuggestedtosetamythicaldetailproductionnorm.Ifatthebeginningofthedaytherewerexdetailsinthefactorystorage,t...
代码星球 代码星球·2020-04-03

layui从子iframe打开父iframe的tab选项卡

数据表格字段:{field:'novelId',title:'小说ID',width:100,templet:'<div><ahref="javascript:;"_href="/contentManage/content-chapters.html"novelName="{{d.name}}"onc...
首页上一页...14341435143614371438...下一页尾页