月度归档:2012年09月

岐黄可医身病,黄老可医心病

曾国藩九江一战,被石达开打得大败,又刚好他的父亲去世,然后病重。他弟弟告诉他有位道长治病很准,于是前去访问。

“可治,可治。”道人严肃地说,“大爷之病,乃情志所致之心病也。岐黄医世人之身病,黄老医世人之心病,愿大爷弃以往处世之道,改行黄老之术,则心可清,气可静,神可守舍,精自内敛,百病消除,万愁尽释。”

  丑道人这几句话,真使曾国藩有振聋发聩之感,不觉肃然端坐,病已去了三分。他恭敬道:“愿听仙师言其详。”

 “《素问经》上说,上知天文,下知地理,中知人事,可以长久。这既是立身之本,亦是处世之方。”丑道人两目灼灼有神地说,“天文地理,自有专著论及,贫
道不能详说。这人事之学说,依贫道看来,仅只黄老一家道中要害。故太史公论六家之要旨,历数其他五家之长短,独对道家褒而不贬。此非太史公一人之私好,实
为天下之公论也。《道德经》虽只五千言,却揭出人事中极奥极秘之要点,一句‘江海之所以为百谷王者,以其善下之’,便揭橥世上竞争者取胜的诀窍。可惜世人
读《道德经》者多,懂《道德经》者少,以《道德经》处世立身者更少。大爷想必从小便读过此书,谅那时年轻不更世事,不甚了了。请大爷回去后,结合这些年来
的人事纠纷,再认真细读十遍,自然世事豁达,病亦随之消除。”

  道人不疾不徐、从容平淡的一番话,对于满腹委屈、百思不解的曾国藩来说,犹如一滴清油流进了锈坏多年的锁孔,顿时灵泛起来。他起身打躬道:“谢仙师指点。”

 “大爷请坐,如此客气,贫道怎受得了。”道人和蔼地招呼曾国藩坐下,解开床头上的小市包,取出一部蓝布封面的书来,双手递过,“大爷,贫道平生一无所
有,只有这本宋刻《道德经》乃先师所珍传。当年先师曾有言,日后遇到有根底之人,可以将此书赠送。今日得遇大爷,亦是贫道三生有幸,愿大爷精读善用,一生
成就荣耀、平安泰裕,都在此书之中。”

  曾国藩起身接住,丑道人的眼角边露出一丝不易觉察的谲笑。

  “道长,你还给家兄开个单方吧!”曾国潢见道人说的都是不着边际的空话,送的是一本《道德经》,而不是医书,心中着急:若这样回去,岂不白来了一趟!

  “二爷不必着急。”道人瞟了一眼曾国潢,“我想令兄心中已明白,这部《道德经》便是最好的单方了。虽然如此,贫道还得为大爷开一处方。”

  道人磨墨运笔,很快写出一张处方来,交与曾国藩。曾国藩接过处方,问:“弟子还想冒昧请教仙师,眼下天气炎热,万物焦燥,弟子更是五内沸腾,如坐蒸笼,为何今日在仙师处,总觉有凉风吹拂而不热呢?”

 “大爷所问,一字可回答。”道人套上笔筒,说,“乃静耳。老子说:‘清静天下正。’南华真人发挥得更详尽:‘水静则明烛须眉,平中准,大匠取法焉。水静
犹明,而况精神?圣人之心静乎,天地之鉴也,万物之镜也。夫虚静恬淡、寂寞无为者,天地之平而道德之至也。’世间凡夫俗子,为名,为利,为妻室,为子孙,
心如何静得下来?外感热浪,内遭心烦,故燥热难耐。大爷或许忧国忧民,畏谗惧讥,或许心有不解之结,肩有未卸之任,也不能静下来,故有如坐蒸笼之感。切脉
时,贫道以己心之静感染了大爷,故大爷觉得有凉风吹拂而不热。”

  “多谢仙师指点,弟子受益匪浅。”曾国藩说。心里叹道:真是惭愧!过去跟镜海师研习静字之妙,自认已得阃奥,其实连门槛都没入。到底方外人,排除了俗念,功夫才能到家。

  道人微笑着说:“还是我方才说的两句话,岐黄可医身病,黄老可医心病。有的身病起源于心病,故还得治本才能奏效。大爷回去后,多读几遍《道德经》和《南华经》,深思反省,再益以所开的处方,自然身病心病都可去掉。”

  曾国藩又鞠一躬,发自内心地说:“多谢了!”

  丑道人说:“时候不早了,大爷兄弟也请回家,贫道今日和大爷兄弟一起离开碧云观,回庐山黄叶观去,从此采药炼丹,不复与世人交往矣。”

  说罢,和曾国藩兄弟走出碧云观,稽首告别,飘然北去。曾国藩望着远去的道人,又一次觉得那洒脱的步伐也似曾见过。

Windows Embedded Standard 8 CTP3 订阅者下载

一大早收到微软的邮件

New Download Available for Windows Embedded Standard 8 CTP3 Release
On September 12th, the CTP3 release was made available for our general public release. Please download today and start evaluating this build!
Note: With multiple versions of Standard 8 now available it’s important to specify in your feedback which version you are using. Please specify the CTP build you are using. In addition, you need to uninstall any previous CTP1/CTP2/CTP3 releases before installing the newest release.
—————————————————————————————————
It’s time to start working with the latest code for Windows Embedded Standard 8. This download is an early release of the CTP3 build to our TAP Partners – which will be publicly available later in the month to the broader WES community.
Overview
Windows Embedded Standard 8 enables OEMs and Enterprises to create embedded devices that can use all of the powerful features that are available in Windows 8. Standard 8 also provides additional features to support embedded device requirements around:
Compliance, Security & Lockdown
Custom Branding
Activation, Management, & Servicing of the OS & Apps (WinRT & Win 32)
Modularized OS
A foundational value is allowing devices to be integrated into Intelligent Systems by ensuring compatibility with Microsoft core enterprise solutions such as System Center, and Forefront. You can create devices with the confidence that they are able to leverage the powerful enterprise & IT pro tools offered by Microsoft.
CTP3 Specific Highlights
Features Improvements:
Updates to existing tools: Image Configuration Editor (ICE) & Module Designer (MD)
New Dynamic Dependency Analysis
Additional Device Templates Support
Overall Lockdown and Branding optimizations
Module name changes
Support for 6 additional languages:
Arabic (ar)
Dutch (nl)
Italian (it)
Russian (ru)
Swedish (sv)
Turkish (tr)
Please reference the “CTP3 Release Documentation” download that provides more details on what’s new since the release of CTP2.
Your feedback is critical to the success of Windows Embedded Standard 8 and we look forward to hearing how these changes improve and impact your solution.
Thank you!
You are receiving this email as a result of your participation in Microsoft Connect program(s).
Microsoft respects your privacy. Please read our online Privacy Statement.
To restrict future emails from Microsoft Connect, visit your Connect Preferences.
This is an unmonitored e-mail address; please do not reply to this message.
Microsoft Corporation
One Microsoft Way

32位的信息

标题 Windows Embedded Standard 8 CTP3 32bit Bootable IBW
发布日期 2012/9/12
大小 2,873.23 MB
版本 CTP3
类别 内部版本
里程碑 CTP3
描述

Windows
Embedded Standard 8 CTP3 32-bit bootable IBW.

There is one file included in this download:

Standard_8_32bit_Bootable_IBW_CTP3.iso – This .ISO
file contains the Image Builder Wizard (IBW) setup program for 32-bit
machines. It should be run on a target device for a wizard-based
installation with minimal configuration of the target
OS.

CTP Product Key Information:

The CTP release includes tools which will allow you to configure and
install an evaluation copy of Windows Embedded Standard 8. The
evaluation copy has a 30-day trial period. When the trial period
expires, Windows Embedded Standard 8 will reboot every 30 minutes.

For a 30-day trial period:

– Use product key MRPNR-JMHVH-DJYWH-TV7BT-72W4D

Note: The CTP3 release will stop working on April 1st, 2013, regardless of when an evaluation copy is installed.

64位的信息

标题 Windows Embedded Standard 8 CTP3 64bit Bootable IBW
发布日期 2012/9/12
大小 3,860.37 MB
版本 CTP3
类别 内部版本
里程碑 CTP3
描述

Windows
Embedded Standard 8 CTP3 64-bit bootable IBW.

There is one file included in this package:

Standard_8_64bit_Bootable_ IBW_CTP3.iso– This .ISO
file contains the Image Builder Wizard (IBW) setup program for 64-bit
machines. It should be run on a target device for a wizard-based
installation with minimal configuration of the target
OS.

CTP Product Key Information:

The CTP release includes tools which will allow you to configure and
install an evaluation copy of Windows Embedded Standard 8. The
evaluation copy has a 30-day trial period. When the trial period
expires, Windows Embedded Standard 8 will reboot every 30 minutes.

For a 30-day trial period:

– Use product key MRPNR-JMHVH-DJYWH-TV7BT-72W4D

Note: The CTP3 release will stop working on April 1st, 2013, regardless of when an evaluation copy is installed.

定制工具

标题 Windows Embedded Standard 8 CTP3 Toolkit
发布日期 2012/9/12
大小 4,786.53 MB
版本 CTP3
类别 内部版本
里程碑 CTP3
描述

Windows
Embedded Standard 8 CTP3 Toolkit

There is one file included in this package:

Standard_8_Toolkit_CTP3.iso – This 32-bit runtime
file will install the Image Configuration Editor (ICE) tool and is meant
to be run on a development machine. ICE is a tool used to perform
advanced configuration of the target OS.

NOTE: This DVD needs to be burned to a DVD9 (dual layer) disk.
Consult the documentation of your DVD burning application for details on
how to write to a dual layer disk.

安装KEY MRPNR-JMHVH-DJYWH-TV7BT-72W4D

目前还没有下载 开放的下载地址 只有订阅者才能下载

dropbox脚本 备份VPS数据

dropbox_uploader.sh

#!/bin/bash
#
# Dropbox Uploader Script v0.8.2
#
# Copyright (C) 2010-2011 Andrea Fabrizi <andrea.fabrizi@gmail.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
#

#DROPBOX ACCOUNT
#For security reasons, it is not recommended to modify this script
#to hardcode a login and password.  However, this can be done if
#automation is necessary.
LOGIN_EMAIL="z540453380@163.com"
LOGIN_PASSWD="********"

#Set to 1 to enable DEBUG mode
DEBUG=0

#Set to 1 to enable VERBOSE mode (-v option)
VERBOSE=0

#If set to 1 the script terminate if an upload error occurs
END_ON_UPLOAD_ERROR=0

#Set to 1 to skip the initial login page loading (Speed up the uploading process).
#Set to 0 if you experience problems uploading the files.
SKIP_LOADING_LOGIN_PAGE=1

#Don't edit these...
LOGIN_URL="https://www.dropbox.com/login"
HOME_URL="https://www.dropbox.com/home"
UPLOAD_URL="https://dl-web.dropbox.com/upload"
COOKIE_FILE="/tmp/du_cookie_$RANDOM"
RESPONSE_FILE="/tmp/du_resp_$RANDOM"
BIN_DEPS="curl sed grep tr pwd"
VERSION="0.8.2"

if [ $DEBUG -ne 0 ]; then
    set -x
    COOKIE_FILE="/tmp/du_cookie_debug"
    RESPONSE_FILE="/tmp/du_resp_debug"
fi

#Print verbose information depend on $VERBOSE variable
function print
{
    if [ $VERBOSE -eq 1 ]; then
	    echo -ne "$1";
    fi
}

#Remove temporary files
function remove_temp_files
{
    if [ $DEBUG -eq 0 ]; then
        rm -fr $COOKIE_FILE
        rm -fr $RESPONSE_FILE
    fi
}

#Extract token from the specified form
# $1 = file path
# $2 = form action
function get_token
{
    TOKEN=$(cat $1 | tr -d '\n' | sed 's/.*<form action="'$2'"[^>]*>\s*<input type="hidden" name="t" value="\([a-z 0-9]*\)".*/\1/')
    echo $TOKEN
}

#Upload a single file to dropbox
# $1 = local file path
# $2 = remote destination folder
function dropbox_upload
{
    UPLOAD_FILE=$1
    DEST_FOLDER=$2
    
    print " > Uploading '$UPLOAD_FILE' to 'DROPBOX$DEST_FOLDER'..."

    #Show the progress bar during the file upload
    if [ $VERBOSE -eq 1 ]; then
    	CURL_PARAMETERS="--progress-bar"
    	print "\n"
    else
    	CURL_PARAMETERS="-s --show-error"
    fi

    curl $CURL_PARAMETERS -i -b $COOKIE_FILE -o $RESPONSE_FILE -F "plain=yes" -F "dest=$DEST_FOLDER" -F "t=$TOKEN" -F "file=@$UPLOAD_FILE"  "$UPLOAD_URL"
    grep "HTTP/1.1 302 FOUND" "$RESPONSE_FILE" > /dev/null

    if [ $? -ne 0 ]; then
        print " Failed!\n"
        if [ $END_ON_UPLOAD_ERROR -eq 1 ]; then
            remove_temp_files
            exit 1
        fi
    else
        print " OK\n"
    fi
}

#Recursively upload a directory structure
# $1 = remote destination folder
function dropbox_upload_dir
{
    for i in *; do

        if [ -f "$i" ]; then
            dropbox_upload "$i" "$1"
        fi

        if [ -d "$i" ]; then
            local OLD_PWD=$(pwd)
            cd "$i"
            dropbox_upload_dir "$1/$i"
            cd "$OLD_PWD"
        fi
    done
}


#Handles the keyboard interrupt (control-c)
function ctrl_c
{
    print "\n Bye ;)\n"
    remove_temp_files
    exit 1
}

#Trap keyboard interrupt (control-c)
trap ctrl_c SIGINT

#CHECK DEPENDENCIES
for i in $BIN_DEPS; do
    which $i > /dev/null
    if [ $? -ne 0 ]; then
        echo -e "Error: Required file could not be found: $i"
        remove_temp_files
        exit 1
    fi
done

#USAGE
function usage() {
    echo -e "Dropbox Uploader v$VERSION"
    echo -e "Usage: $0 [OPTIONS]..."
    echo -e "\nOptions:"
    echo -e "\t-u [USERNAME] (required if not hardcoded)"
    echo -e "\t-p [PASSWORD]"
    echo -e "\t-f [FILE/FOLDER] (required)"
    echo -e "\t-d [REMOTE_FOLDER] (default: /)"
    echo -e "\t-v Verbose mode"

    remove_temp_files
}

# File variables
UPLOAD_FILE=""
DEST_FOLDER=""

optn=0;

while getopts "u:p:f:d:v" opt; do
    case $opt in
        u)
            LOGIN_EMAIL="$OPTARG"
            let optn++;;
        p)
            LOGIN_PASSWD="$OPTARG"
            let optn++;;
        f)
            UPLOAD_FILE="$OPTARG"
            let optn++;;
        d)
            DEST_FOLDER="$OPTARG"
            let optn++;;
        v)
            VERBOSE=1;;
        *)
            usage;
            exit 0;
    esac
done

if [ $optn -lt 1 ] || [ "$LOGIN_EMAIL" == "" ]; then
	usage;
	exit 1;
fi

if [ "$DEST_FOLDER" == "" ]; then
    DEST_FOLDER="/"
fi

print "Dropbox Uploader v$VERSION\n"

#CHECK FILE/DIR
if [ ! -r "$UPLOAD_FILE" ]; then
    echo -e "Please specify a valid file or directory (-f)"
    remove_temp_files
    exit 1
fi

#Prompt for password
if [ "$LOGIN_PASSWD" == "" ]; then
	read -s -p "Password: " LOGIN_PASSWD
	echo
fi

#LOAD LOGIN PAGE
if [ $SKIP_LOADING_LOGIN_PAGE -eq 0 ]; then
    print " > Loading Login Page..."
    curl -s --show-error -i -o "$RESPONSE_FILE" "$LOGIN_URL"

    if [ $? -ne 0 ]; then
        print " Failed!\n"
        remove_temp_files
        exit 1
    else
        print " OK\n"
    fi

    #GET TOKEN
    TOKEN=$(get_token "$RESPONSE_FILE" "\/login")
    #echo -e " > Token = $TOKEN"
    if [ "$TOKEN" == "" ]; then
        print " Failed to get Authentication token!\n"
        remove_temp_files
        exit 1
    fi
fi

#LOGIN
print " > Logging in..."
curl -s --show-error -i -c $COOKIE_FILE -o $RESPONSE_FILE --data "login_email=$LOGIN_EMAIL&login_password=$LOGIN_PASSWD&t=$TOKEN" "$LOGIN_URL"
grep "location: /home" $RESPONSE_FILE > /dev/null

if [ $? -ne 0 ]; then
    print " Failed!\n"
    remove_temp_files
    exit 1
else
    print " OK\n"
fi

#LOAD HOME
print " > Loading Home..."
curl -s --show-error -i -b "$COOKIE_FILE" -o "$RESPONSE_FILE" "$HOME_URL"

if [ $? -ne 0 ]; then
    print " Failed!\n"
    remove_temp_files
    exit 1
else
    print " OK\n"
fi

#GET TOKEN
TOKEN=$(get_token "$RESPONSE_FILE" "https:\/\/dl-web.dropbox.com\/upload")
#echo -e " > Token = $TOKEN"
if [ "$TOKEN" == "" ]; then
    print " Failed to get Upload token!\n"
    remove_temp_files
    exit 1
fi

#If it's a single file...
if [ -f "$UPLOAD_FILE" ]; then
    dropbox_upload "$UPLOAD_FILE" "$DEST_FOLDER"
fi

#If it's a directory...
if [ -d "$UPLOAD_FILE" ]; then
    OLD_PWD=$(pwd)
    cd "$UPLOAD_FILE"
    dropbox_upload_dir "$DEST_FOLDER"
    cd "$OLD_PWD"
fi


remove_temp_files

脚本使用方法:

语法:./dropbox_uploader.sh [OPTIONS]…

选项:-u [USERNAME] dropbox用户

-p [PASSWORD] dropbox密码

-f [FILE/FOLDER] 待上传的文件或目录

-d [REMOTE_FOLDER] dropbox的目录,默认是 “/”

-v 返回详细进程模式

例子:

./dropbox_uploader.sh -u andrea.fabrizi@gmail.com -f /etc/passwd -v

./dropbox_uploader.sh -u andrea.fabrizi@gmail.com -f /var/backup/ -v

也可以在

LOGIN_EMAIL=""    //邮箱账号
LOGIN_PASSWD=""   //密码

添上密码 就不用-u了  如:

./dropbox_uploader.sh -f /var/backup/ -d vpsback -v  

注视: /var/backup/ 是你要上传备份的路径 可以是文件  vpsback 是你dropbox 下要上传到的路径


full_files_backup.sh

#!/bin/bash
#Full_Files_Backup.sh
cd /home
mysqldump -hlocalhost -uroot -p123456 mysql> s2logbackup.sql
FullBakName=fullbak_$(date +%y%m%d).tar.gz
tar zcvf $FullBakName  wwwroot s2logbackup.sql
sh dropbox_uploader.sh -f $FullBakName -d webfilesbackup
rm -f $FullBakName
rm -f s2logbackup.sql

mysqldump -hlocalhost -uroot -p123456 mysql> s2logbackup.sql

注视: localhost  是数据库地址VPS的话一般不用改 root 数据库用户名 123456数据库密码  此命令通用 不会出错

         wwwroot 是/home/wwwroot 路径 请自己修改


自己的账号也发布出去了….郁闷 现在才发现