`
垂直的微笑
  • 浏览: 45193 次
  • 性别: Icon_minigender_1
  • 来自: 上海
社区版块
存档分类
最新评论
文章列表

注册码收集

 
Object Browser9 注册码 NO:   SE16390000020505040KEY: OB-1D5425-7E482c-555FE8

Shell读取配置文件

1.读取文本文件 格式一如下:   [server] ip=127.0.0.1 passwd=pass  读取方法如下:   function GetKey(){ section=$(echo $1 | cut -d '.' -f 1) key=$(echo $1 | cut -d '.' -f 2) sed -n "/\[$section\]/,/\[.*\]/{ /^\[.*\]/d /^[ \t]*$/d /^$/d /^#.*$/d s/ ...
冒泡排序   Public Sub BubbleSort(ByRef foldArray() As String) Dim iOuter As Long Dim iInner As Long Dim iLBound As Long Dim iUBound As Long Dim iTemp As Long iLBound = LBound(lngArray) iUBound = UBound(lngArray) For iOuter = iLBound To iUBound - 1 Fo ...
#!/usr/bin/python #-*- coding: utf-8 -*- import pexpect import re import os import sys, getopt import threading import string from time import strftime,time,strptime,localtime,sleep hostlist='' module='' def get_logpath(date): global hostlist global module logpath='' ...

EXCEL技巧

 
定义名称 工作表=MID(GET.WORKBOOK(1),FIND("]",GET.WORKBOOK(1))+1,99)&T(NOW()) 单元格输入=MATCH("sheet名",工作表,) 可取得当前sheet编号   工作表名称=RIGHT(CELL("filename"),LEN(CELL("filename"))-FIND("]",CELL("filename"))) 单元格输入=工作表名称 可取得当前工作表名称   单元格输入=INDIRECT ...

差分抽取

#!/bin/bash function GetKey(){ section=$(echo $1 | cut -d '.' -f 1) key=$(echo $1 | cut -d '.' -f 2) sed -n "/\[$section\]/,/\[.*\]/{ /^\[.*\]/d /^[ \t]*$/d /^$/d /^#.*$/d s/^[ \t]*$key[ \t]*=[ \t]*\(.*\)[ \t]*/\1/p ...
由于上海服务器时间不统一可能造成发布警告及其他问题,使用以下方案尝试解决该问题 一.时间服务器的设定 1.选定172.26.166.114作为时间服务器,对NTP配置文件/etc/ntp.conf设定如下 # Permit time synchronization with our time source, but do not # permit the source to query or modify the service on this system. restrict default kod nomodify notrap nopeer no ...
《High Performance Web Sites 》網頁加速的14條黃金法則 1. 減少需要發出HTTP Request的數量 當你設計的網頁中包含的元件數量越多,Client需要對網站伺服器發出的HTTP Request也會增加,同時也會延長網頁處理的時間。 2. 採用Content Delivery Network服務 由Mirror Image、Akamai、SAVVIS等業者所提供的Content Delivery Network(CDN,內容遞送網路服務),可以供應強大的全球網路基礎架構,將網站以最有效的方式傳送給全球使用者,並自動幫網站選擇最佳路徑傳送資料,例如 ...
server {     listen 192.168.8.208:80;    server_name www.abc.com abc.com;    access_log off;    rewrite ^/download/(.*)/(.*)\.exe$ /download/$2.exe?key=$1 last;     location / {        root   /var/www/abc.com;        index  index.html index.htm index.php;          location /download {#        ...
-提高性能常用对策- 1.增加带宽 2.减少网页HTTP请求 3.动态内容缓存 4.使用数据缓存 5.动态内容静态化及页面预编译 6.数据流压缩 7.WEB服务器的选择 8.使用负载均衡 9.数据库优化 10.减少视觉等待   -高性能服务器- server Apache Nginx Lighttpd Proxy代理 非常好 非常好 一般 Rewriter 好 非常好 一般 Fcgi 不好 好 非常好 热部署 不支持 支持 不支持 系统压力 很大 很小 比较小 稳定性 好
        smb.conf 檔的設定 這個設定檔是 Samba 最重要的設定檔,因為它關係著 Samba Server 是否能正常運作或許多權限 上的設定。說明如下:   workgroup 語法:workgroup = <工作群組> 預設:workgroup = MYGROUP     netbios name 語法:netbios name = <伺服器名稱> 預設:無 設定 Samba Server 的名稱,如果不加入這行則使用 Linux 系統的的主機名稱〈hostname〉。     server string 語法 ...
1.自分紹介をしてください   私は**と申します。社長さま、他の先輩たち、始めましてよろしくお願い致します。   いま私は**会社で働いていますが、 三年ぐらいの 仕事履歴があります。三年の間に、 個人能力を向上するために 色々なプロジェクトの成功体験に通
  1.dirname命令可以取给定路径的目录部分(strip non-directory suffix from file name) # 跳转到脚本所在目录 cd $(dirname "$0") 另一个写法是:cd `dirname $0` 其中反引号··等同于$()。 2.输出到屏幕同时到文件 tree . | tee test.log 3.备份压缩 tar -czvf gzip格式压缩 tar -xzvf gzip格式解压 tar tvf 查看归档文件里包含哪些文件 c -> 创建 x->还原 z->gzip v ...

服务器相关配置

apacheとTomcatの連携 http://unixlife.jp/unixlife/java/tomcat2.jsp http://www.javaroad.jp/opensource/js_tomcat3.htm
SVN插件 http://subclipse.tigris.org/update_1.8.x   Poperties   Editor   国际化  http://propedit.sourceforge.jp/eclipse/updates/    jadclipse 反编译  http://jadclipse.sourceforge.net/update/   Code   Folding     加入多种代码折叠功能(比eclipse自带的更多)    <!--EndFragment-->   http://www.coffee-bytes.com/ser ...
Global site tag (gtag.js) - Google Analytics