java实现package sort;public class SwapSort { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated m...
分类:
其他好文 时间:
2014-10-02 18:15:13
阅读次数:
137
package sort;public class CheapSort { public static final int MAX=10; public static void main(String[] args){ int []a={0,16,7,3,2...
分类:
其他好文 时间:
2014-10-02 17:25:33
阅读次数:
181
java实现package sort;public class SelectSort { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated...
分类:
其他好文 时间:
2014-10-02 17:02:03
阅读次数:
196
java实现:package sort;public class InsertSort { public static void main(String[] args) { int[] arr={70,80,31,37,10,1,48,60,33,80};...
分类:
其他好文 时间:
2014-10-02 15:54:13
阅读次数:
183
$ cat prettify.sed s/,/,\r\n/gs/\[/\r\n\[\r\n/gs/\]/\r\n\]\r\n/gs/{/\r\n{\r\n/gs/}/\r\n}\r\n/g$ cat prettify.awk BEGIN{ depth = 0;}/\[/ { sp...
分类:
Web程序 时间:
2014-10-01 23:40:51
阅读次数:
255
冒泡 package com.bjsxt.sort.bubble; import java.util.Arrays; public class BubbleSort1 { /** * @param args */ public static void main(String[] args) { in...
分类:
其他好文 时间:
2014-10-01 20:54:42
阅读次数:
254
#!/bin/bash
/usr/local/bin/varnishstat-1>/tmp/varnish.$$
awk‘{
printf("%s:%s",$1,$2)
}‘/tmp/varnish.$$
rm-rf/tmp/varnish.$$Usage:Asrootsetupacronjob:*****/usr/local/varnish/bin/varnishstat-1>/tmp/varnishstatAddanuserparametertozabbix:UserParameter=..
分类:
其他好文 时间:
2014-10-01 01:30:20
阅读次数:
245
brief : the quick sort can divide into two steps, the first step is partition, the second step is conquer the subset.i) as the first step, array A[lef...
分类:
其他好文 时间:
2014-10-01 01:21:50
阅读次数:
209
默认mysql监控模版安装方法:vim/usr/local/etc/zabbix_agentd.confUserParameter=mysql.ping,mysqladminping|grep-caliveUserParameter=mysql.version,mysql-VUserParameter=mysql.status[*],echo"showglobalstatuswhereVariable_name=‘$1‘;"|mysql-N-uroot|awk‘{print$$2}‘Us..
分类:
数据库 时间:
2014-10-01 00:40:50
阅读次数:
274
zabbix_agentd.confUserParameter=custom.vfs.dev.read.ops[*],cat/proc/diskstats|grep$1|head-1|awk‘{print$$4}‘UserParameter=custom.vfs.dev.read.ms[*],cat/proc/diskstats|grep$1|head-1|awk‘{print$$7}‘UserParameter=custom.vfs.dev.write.ops[*],cat/proc/diskstats|g..
分类:
其他好文 时间:
2014-10-01 00:40:10
阅读次数:
452