This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# | |
%define tengine_home %{_localstatedir}/cache/tengine | |
%define tengine_user tengine | |
%define tengine_group tengine | |
Summary: Web server originated by Taobao | |
Name: tengine | |
Version: 2.0.0 | |
Release: 0%{?dist} | |
Vendor: taobao inc. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#/bin/bash | |
######################################### | |
#Function: auto fdisk | |
#Usage: bash auto_fdisk.sh | |
#Author: Customer service department | |
#Company: Alibaba Cloud Computing | |
#Version: 2.0 | |
######################################### | |
count=0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[root@localhost ~]$ rpm -q qemu-kvm | |
qemu-kvm-1.6.2-1.fc20.x86_64 | |
[root@localhost ~]$ rpm -q libvirt-daemon | |
libvirt-daemon-1.1.3.4-4.fc20.x86_64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-- MySQL dump 10.13 Distrib 5.1.61, for redhat-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: dnsdata | |
-- ------------------------------------------------------ | |
-- Server version 5.1.61 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
; 找到其中 | |
disable_functions = | |
; 替换为 | |
disable_functions = fsockopen,pfsockopen,chgrp,chown,chroot,closelog,dl,exec,ini_alter,ini_restore,openlog,passthru,popen,popepassthru,posix_kill,proc_close,proc_get_status,proc_nice,proc_open,proc_terminate,putenv,readlink,scandir,shell_exec,stream_socket_server,symlink,sys_getloadavg,syslog,system,virtual |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote \ | |
-Dcom.sun.management.jmxremote.ssl=false \ | |
-Dcom.sun.management.jmxremote.authenticate=false" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<? | |
/** | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
* | |
* This program is distributed in the hope that it will be useful, | |
* but WITHOUT ANY WARRANTY; without even the implied warranty of | |
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
#coding:utf-8 | |
'''Compress js and css file. | |
usage: | |
compjscss.py dir | |
will compress all css/js in dir and save to dir_min/ | |
''' | |
import requests |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python | |
# -*- coding: utf-8 -*- | |
# (c) 2014, itxx00 <itxx00@gmail.com> | |
# | |
# This file is part of Ansible | |
# | |
# Ansible is free software: you can redistribute it and/or modify | |
# it under the terms of the GNU General Public License as published by | |
# the Free Software Foundation, either version 3 of the License, or |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
sync && sync | |
case $1 in | |
select) | |
echo 3 > /proc/sys/vm/drop_caches | |
mysqlslap --no-defaults --concurrency=50 --engine=innodb --auto-generate-sql --auto-generate-sql-add-autoincrement --auto-generate-sql-load-type=key --auto-generate-sql-write-number=100000 --number-of-queries=300000 | |
echo 3 > /proc/sys/vm/drop_caches | |
;; | |
insert) |
OlderNewer