https://www.zabbix.com/download
# hostname
hostnamectl set-hostname <host-name>| Sub 自动将Excel中的数据发送到PPT中() | |
| '1、declare variables | |
| Dim rng As Excel.Range | |
| Dim pp As PowerPoint.Application | |
| Dim pppres As PowerPoint.Presentation | |
| Dim ppslide As PowerPoint.Slide | |
| '2、Open PowerPoint and create new presentation |
| ''' | |
| Input: | |
| 192.168.0.1 | |
| 192.168.0.2 | |
| 192.168.0.3 | |
| Output: | |
| ['192.168.0.1','192.168.0.2','192.168.0.3'] | |
| ''' |
| ''' | |
| Input: | |
| 192.168.0.1 | |
| 192.168.0.2 | |
| 192.168.0.3 | |
| Output: | |
| 192.168.0.1,192.168.0.2,192.168.0.3, | |
| ''' |
| #!/bin/bash | |
| dir_new="/tmp/wangao/*/sites-enabled/" | |
| for link in $(find ./ -type l) | |
| do | |
| echo | |
| echo "Link is:" | |
| echo $link | |
| realpath=$(readlink -f $link) | |
| echo $dir |
| #!/bin/bash | |
| # chkconfig: 2345 90 60 | |
| ### BEGIN INIT INFO | |
| # Provides: rps | |
| # Required-Start: $local_fs $remote_fs $network $syslog | |
| # Required-Stop: $local_fs $remote_fs $network $syslog | |
| # Default-Start: 2 3 4 5 | |
| # Default-Stop: 0 1 6 | |
| # Short-Description: enable rps config for ubuntu | |
| # Description: enabele rps which is a kernel tweak for network performance |
https://www.zabbix.com/download
# hostname
hostnamectl set-hostname <host-name>| import os | |
| ini="""[global] | |
| index-url = https://pypi.doubanio.com/simple/ | |
| [install] | |
| trusted-host=pypi.doubanio.com | |
| """ | |
| pippath=os.environ["USERPROFILE"]+"\\pip\\" | |
| if not os.path.exists(pippath): |
| # -*- coding: utf-8 -*- | |
| #python 2.7 | |
| import urllib2,urllib,cookielib,json | |
| username = "" ###账号### | |
| password = "" ###密码### | |
| class sign(object): | |
| username = '' | |
| password = '' | |
| #登录显示页面 |
| # -*- coding: utf-8 -*- | |
| #python 2.7 | |
| #beautifulsoup4-4.3.2 | |
| #requests-2.3.0 | |
| #python setup.py install | |
| from bs4 import BeautifulSoup | |
| import requests | |
| username = '' ###账号### |