#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
#参考资料
###下载单个文件,默认将输出打印到标准输出中(STDOUT)中
curl http://www.centos.org
| #! /bin/sh | |
| # ================================================================== | |
| # ______ __ _____ | |
| # /_ __/___ ____ ___ _________ _/ /_ /__ / | |
| # / / / __ \/ __ `__ \/ ___/ __ `/ __/ / / | |
| # / / / /_/ / / / / / / /__/ /_/ / /_ / / | |
| #/_/ \____/_/ /_/ /_/\___/\__,_/\__/ /_/ | |
| # Multi-instance Apache Tomcat installation with a focus | |
| # on best-practices as defined by Apache, SpringSource, and MuleSoft |
| ## Download latest CentOS 7 x86_64 minimal iso image | |
| ## Good readings | |
| # https://labs.vmware.com/vmtj/methodology-for-performance-analysis-of-vmware-vsphere-under-tier-1-applications | |
| # https://labs.vmware.com/vmtj/virtualizing-latency-sensitive-applications-where-does-the-overhead-come-from | |
| ## Create typical CentOS VM | |
| # compatible with 'ESXi 6.0 and later' | |
| # set 'Guest OS Family' to 'Linux' | |
| # set 'Guest OS Version' to 'CentOS 4/5/6/7 (64 bit)' |
| ModemManager-glib-1.1.0-6.git20130913.el7.x86_64 | |
| NetworkManager-0.9.9.1-13.git20140326.4dba720.el7.x86_64 | |
| NetworkManager-glib-0.9.9.1-13.git20140326.4dba720.el7.x86_64 | |
| NetworkManager-tui-0.9.9.1-13.git20140326.4dba720.el7.x86_64 | |
| acl-2.2.51-12.el7.x86_64 | |
| aic94xx-firmware-30-6.el7.noarch | |
| alsa-firmware-1.0.27-2.el7.noarch | |
| alsa-lib-1.0.27.2-3.el7.x86_64 | |
| alsa-tools-firmware-1.0.27-4.el7.x86_64 | |
| audit-2.3.3-4.el7.x86_64 |
| CELERY=`ps -A -o pid,rss,command | grep celeryd | grep -v grep | awk '{total+=$2}END{printf("%d", total/1024)}'` | |
| GUNICORN=`ps -A -o pid,rss,command | grep gunicorn | grep -v grep | awk '{total+=$2}END{printf("%d", total/1024)}'` | |
| REDIS=`ps -A -o pid,rss,command | grep redis | grep -v grep | awk '{total+=$2}END{printf("%d", total)}'` | |
| NGINX=`ps -A -o pid,rss,command | grep nginx | grep -v grep | awk '{total+=$2}END{printf("%d", total/1024)}'` | |
| OTHER=`ps -A -o pid,rss,command | grep -v nginx | grep -v celeryd | grep -v gunicorn | grep -v redis | grep -v grep | awk '{total+=$2}END{printf("%d", total/1024)}'` | |
| websites=`ps -A -o user,pid,rss,command | grep gunicorn | egrep -o "[a-z_]+\.py$" | sort | uniq | perl -wpe 's|\.py$||;' | xargs` | |
| printf "%-10s %3s MB\n" "Celery:" $CELERY | |
| printf "%-10s %3s MB\n" "Gunicorn:" $GUNICORN | |
| printf "%-10s %3s MB\n" "Nginx:" $NGINX | |
| printf "%-10s %3s KB\n" "Redis:" $REDIS |
| # coding:utf-8 | |
| import re | |
| import requests | |
| session = requests.Session() | |
| # 领取 X 铜币 | |
| # 每日登录奖励已领取 |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |
| #-*-coding=utf-8-*- | |
| import requests | |
| import re | |
| import time | |
| import random | |
| page=1 #max=79 | |
| home='http://91porn.com/video.php?page=%d&category=rf' | |
| cont_reg=re.compile('<a target=blank href="(http://91porn\.com/view_video\.php.*?)" title="') | |
| vid_reg=re.compile('http://91\.p9p\.co/ev\.php\?VID=(.*?)<') |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE | |
| Version 2, December 2004 | |
| Copyright (C) 2011 YOUR_NAME_HERE <YOUR_URL_HERE> | |
| Everyone is permitted to copy and distribute verbatim or modified | |
| copies of this license document, and changing it is allowed as long | |
| as the name is changed. | |
| DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE |