#!/bin/bashlocal_ip=`/sbin/ifconfig|grep‘inetaddr:‘|grep-Ev‘127.0.0.1‘|cut-d:-f2|awk‘{print$1}‘|head-n1`#installepelreporpm-Uvhhttp://apt.sw.be/redhat/el6/en/x86_64/rpmforge/RPMS/rpmforge-release-0.5.3-1.el6.rf.x86_64.rpm#installrequiresoftwareyum-yinstallp..
分类:
其他好文 时间:
2015-03-20 22:17:16
阅读次数:
213
Problem Description
George took sticks of the same length and cut them randomly until all parts became at most 50 units long. Now he wants to return sticks to the original state, but he forgot how many sticks he had originally and how long they were origin...
分类:
其他好文 时间:
2015-03-20 11:05:11
阅读次数:
129
题意:不同国家的人站在一起,同一个国家的人相邻站,给你一个数组,表示 这个位置属于的国家有几个人,0可以是任何数字,问你能不能确定这个数组(只有一个解)解题思路:搜索解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #l...
分类:
其他好文 时间:
2015-03-18 12:10:34
阅读次数:
191
在打开git bash时,每次都是在C:\Uer路径下,每次都需要先用cd命令转换到自己需要工作的路径(cd /f/dss)。修改打开git bash 时的默认的路径就可以不用每次都使用cd命令转换到需要管理的目录。
修改默认路径方法:右击Git Bash图标--->选择Short Cut标题栏--->修改Start in为想要管理的目录。...
分类:
其他好文 时间:
2015-03-16 17:54:51
阅读次数:
105
Problem Description
Cowl is good at solving math problems. One day a friend asked him such a question: You are given a cube whose edge length is N, it is cut by the planes that was paralleled to its ...
分类:
其他好文 时间:
2015-03-14 11:02:15
阅读次数:
171
Problem Description
Cowl is good at solving math problems. One day a friend asked him such a question: You are given a cube whose edge length is N, it is cut by the planes that was paralleled to its side planes into N * N * N unit cubes. Two unit cubes may...
分类:
其他好文 时间:
2015-03-12 15:08:38
阅读次数:
216
日志切割#!/bin/bash
#cutnginxlogs
nginx_sbin="/usr/local/openresty/nginx/sbin/nginx"
log_files_path="/usr/local/openresty/nginx/logs"
cut_log_files_dir="/data/logs"
logfilename_array=(www.bbs.com)
date=`date+%Y-%m-%d-d"1daysago"`
suffix=".log.gz"
ProjectNam..
分类:
数据库 时间:
2015-03-10 19:44:32
阅读次数:
458
题意:大概是求前n个数的最大公倍数。解题思路:筛法+质因子分解,敲玩就去睡觉了,没想到没优化被cha了。。。解题代码: 1 // BEGIN CUT HERE 2 /* 3 4 */ 5 // END CUT HERE 6 #line 7 "ThePermutationGame.cpp...
分类:
其他好文 时间:
2015-03-10 08:58:27
阅读次数:
387
一、菜单命令的实现 textbox: 属性: text:文本 selectedtext:获取或设置选中文本 canundo:是否能够撤销 方法: undo:撤销 clearundo:清空撤销缓冲区 cut:剪切 copy:复制 Paste:粘贴 SelectAl...
textbox: 属性: text:文本 selectedtext:获取或设置选中文本 canundo:是否能够撤销方法: undo:撤销 clearundo:清空撤销缓冲区 cut:剪切 copy:复制Paste:粘贴 SelectAll:全选对话框: showdialog();显示对话框,...