</>|正月| 二月| 三月| 四月| 五月| 六月| 七月| 八月| 九月| 十月| 冬月| 腊月| ---| ---| ---| ---| ---| ---| ---| ---| ---| ---| ---| ---| 青龙黄|子|寅|辰|午|申|戍|子|寅|辰|午|申|戍| 明堂黄|丑|卯|巳|未|酉|亥|丑|卯|巳|未|酉|亥| 天刑黑|寅|辰|午|申|戍|子|寅|辰|午|申|戍|子| 朱雀黑|卯|巳|未|酉|亥|丑|卯|巳|未|酉|亥|丑| 金匮黄|辰|午|申|戍|子|寅|辰|午|申|戍|子|寅| 宝光黄|巳|未|酉|亥|丑|卯|巳|未|酉|亥|丑|卯| 白虎黑|午|申|戍|子|寅|辰|午|申|戍|子|寅|辰| 玉堂黄|未|酉|亥|丑|卯|巳|未|酉|亥|丑|卯|巳|
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
fileName=$1 | |
echo $fileName | |
EXIF=$(exif $fileName) | |
ss=$(echo $EXIF|grep "Date and Time (Origi") | |
OriginalDateStr=$(exif $fileName|grep "Date and Time (Origi") | |
if [ "xx$OriginalDateStr" != xx ] | |
then | |
OriginalDate=$(echo $OriginalDateStr | cut -d'|' -f2) | |
IFS=':' read -r -a DateArray <<< "$OriginalDate" |
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
#Handy functions for .bashrc loading. | |
# | |
# $ atoi 192.168.1.1 | |
# 3232235777 | |
# $ itoa 3232235777 | |
# 192.168.1.1 | |
function atoi |
LVM是 Logical Volume Manager(逻辑卷管理)的简写,它是Linux环境下对磁盘分区进行管理的一种机制。系统管理员可以通过它动态的扩展磁盘空间。
目前我们公司提供的标准服务器,好多硬盘大小只有500G。无法满足配管服务中软件仓库的存储需求,我们需要对多个磁盘进行合并。 LVM可以满足这种使用需求。
- 物理分区卷 :对应一个真正的物理磁盘分区,可以通过pvcreate命令创建。
- 虚拟分区组 :虚拟的分区,可以将多个物理分区卷加到一个逻辑组里,实现扩容的目的,可以用vgcreate创建。
- 逻辑分区卷 :逻辑分区,对应一个虚拟的分区组,可以用lvcreate命令创建。 这个逻辑卷可以像物理分区一样进行格式化。
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
http://djangobook.py3k.cn/2.0/chapter02/ | |
sudo yum install tops-django.x86_64 | |
sudo yum install tops-django-modules.x86_64 | |
如果需要额外设置python库路径,需要以下变量。 | |
PYTHONPATH=/home/tops/lib/python2.7/site-packages/ |
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
python tomcat 配置要点 | |
http://lekshmideepu.blogspot.jp/2013/03/configure-tomcat-7-to-run-python-cgi.html | |
1。 在tomcat/conf/web.xml中 | |
将<servlet>和<servlet-mapping>段落中的 <cgi>子段落的注释去掉。 | |
<servlet> | |
<servlet-name>cgi</servlet-name> | |
<servlet-class>org.apache.catalina.servlets.CGIServlet</servlet-class> | |
<init-param> |