什么是 Shell scriptsshell script (程序化脚本) :shell script 是针对 shell 所写的『脚本!』shell script 是利用 shell 的功能所写的一个『程序 (program)』,这个程序是使用纯文字档,将一些 shell 的语法与命令(含外部命....
分类:
其他好文 时间:
2014-09-20 08:48:36
阅读次数:
239
脚本代码如下:#!/bin/bash # Info : check mysql slave # Author : dingtm # CTime : 2011.03.21 # This script run by root DBDir=/elain/apps/mysql/bin/ DBSock=/el...
分类:
数据库 时间:
2014-09-19 19:15:56
阅读次数:
236
1.[图片]第1步:PhotoShop?2. [代码]第2步:index.html Coding A CSS3 & HTML5 Page Template | Script tutorials demo Yo...
分类:
Web程序 时间:
2014-09-19 16:57:35
阅读次数:
1073
Any shell script you run has access to (inherits) the environment variables accessible to its parent shell. In addition, any arguments you type after the script name on the shell command line are p...
分类:
其他好文 时间:
2014-09-19 15:49:26
阅读次数:
282
在sublime text中将TAB缩进直接转化为4个空格,可以按照如下方式操作:菜单栏: Preferences -> Settings – More -> Syntax Specific – User然后添加设置代码就可以了,文件保存在$Packages/User下{ "tab_size"...
分类:
其他好文 时间:
2014-09-19 15:22:05
阅读次数:
142
前端模块管理器简介作者: 阮一峰模块化结构已经成为网站开发的主流。制作网站的主要工作,不再是自己编写各种功能,而是如何将各种不同的模块组合在一起。浏览器本身并不提供模块管理的机制,为了调用各个模块,有时不得不在网页中,加入一大堆script标签。这样就使得网页体积臃肿,难以维护,还产生大量的HTTP...
分类:
其他好文 时间:
2014-09-19 13:46:25
阅读次数:
214
1. 区别 builtin command, external command,bash script。用builtin command(hash、type、command),而不是which命令(external command)查看某个命令是安装了(跟PATH变量相关):hash foo >/d...
分类:
其他好文 时间:
2014-09-19 13:39:35
阅读次数:
220
添加如下代码,其中startTime为<input >中id值 ?<script>//得到当前日期
formatterDate?=?function(date)?{
var?day?=?date.getDate()?>?9???date.getDate()?:?"0"?+?date.getDate();
var?month...
分类:
Web程序 时间:
2014-09-19 12:18:55
阅读次数:
241
雅虎给出了优化网站加载速度的34条法则(包括Yslow规则22条) 详细说明,下载转发 ponytail 的译文(来自帕兰映像)。1.Minimize HTTP Requests减少HTTP请求图片、css、script、flash等等这些都会增加http请求数,减少这些元素的数量就能减少响应时间。...
分类:
Web程序 时间:
2014-09-19 11:46:45
阅读次数:
229
在第8步配置PyCharm时,如果点击菜单的run,进入编辑配置Edit Configurations选项中,
Script:的部分,不应该指向python2.7位置,这里应该填写的是openerp-server的位置,否则后面启动pycharm就会报错,别说调试了。...
分类:
其他好文 时间:
2014-09-19 10:10:05
阅读次数:
662