Windows 系统通常能很好的处理异常的“冷重启”(断电,关闭插线板的电源,或家里的小人儿手指随意按导致关机)。事实上,至今为止,最有效的修复Windows桌面问题的方法就是简单的重启系统。但是,Windows分区偶尔会显示系统需要进行驱动器一致性检测。不这么做的话,在几次重启后可能会引起文件系统状况恶化而使系统变得更糟。众所周知,Windows文件系统检查超级慢,而且经常不得不做好几次才能清理掉文件系统的“脏(dirty)”标志。
lmctfy (Let Me Contain That For you,发音是lem-kut-fee)是谷歌Google开发的容器栈,可以为Linux应用提供容器(container)。这些容器可以让一台机器上的不同应用使用相互隔离的资源,以独占的方式运行在同一台机器上。这些应用也可以拥有容器,因此能够创建和管理属于他们自己的子容器。
# For temporary downloaded files
# 临时下载文件
directory = ~/rTempDownloadFiles
# Directory to save and resume torrent sessions
# 保存和恢复torrent会话的目录
session = ~/rSession
# Other Tunables
# 其它可调参数
upload_rate = 30
download_rate = 200
peer_exchange = yes
# DHT enabled
# 开启DHT
dht = auto
# custom throttles
# 自定义阀门(译者注:流量限制)
throttle_up = low,10
throttle_down = low,10
throttle_up = med,20
throttle_down = med,20
# Watch a directory for new torrents, restart torrents that have been
# 监控目录中新的torrent, 重新启动torrent
# copied back and stop those that have been deleted.
# 复制并且阻止已经删除的.
schedule = watch_directory,0,10,load_start=~/rWatch/*.torrent
schedule = tied_directory,10,10,start_tied=
schedule = untied_directory,10,10,close_untied=
# Enable the default ratio group
# 启用默认比率组
ratio.enable=
# Change the limits, the defaults should be sufficient.
# 改变限制,默认应该足够
ratio.min.set=50
ratio.max.set=150
ratio.upload.set=20M
# Changing the command triggered when the ratio is reached.
# 当比值达到,改变命令触发
system.method.set = group.seeding.ratio.command, d.close=, d.erase=
# Move finished torrents to completed
# 移走完成的torrent
system.method.set_key = event.download.finished,rm_torrent,”execute=rm,$d.get_tied_to_file=”
system.method.set_key = event.download.finished,move_complete,”execute=mv,-u,$d.get_base_path=,~/rFullDownloadFiles/ ;d.set_directory=~/rFullDownloadFiles/”
$ git checkout -b releases-1.2 developSwitched to a new branch “release-1.2”$ ./bump-version.sh 1.2Files modified successfully. version bumped to 1.2.$ git commit -a -m “Bumped version number to 1.2”[release-1.2 74d9424] Bumped version number to 1.21 files changed. 1 insertions(+). 1 deletions(-)
$ git checkout -b hotfix-1.2.1 masterSwitched to a new branch “hotfix-1.2.1″$ ./bump-version.sh 1.2.1Files modified successfully, version bumped to 1.2.1.$ git commit -a -m “Bumped version number to 1.2.1″[hotfix-1.2.1 41e61bb] Bumped version number to 1.2.11 files changed, 1 insertions(+), 1 deletions(-)
不要忘了在创建热补丁分之后设定一个新的版本号!
然后,修复bug并使用一个或者多个单独的commit提交。
$ git commit -m “Fixed severe production problem”[hotfix-1.2.1 abbe5d6] Fixed severe production problem5 files changed, 32 insertions(+), 17 deletions(-)
# Default behavior for the release upgrader.
[DEFAULT]
# Default prompting behavior, valid options:
#
# never - Never check for a new release.
# normal - Check to see if a new release is available. If more than one new
# release is found, the release upgrader will attempt to upgrade to
# the release that immediately succeeds the currently-running
# release.
# lts- Check to see if a new LTS release is available. The upgrader
# will attempt to upgrade to the first LTS release available after
# the currently-running one. Note that this option should not be
# used if the currently-running release is not itself an LTS
# release, since in that case the upgrader won't be able to
# determine if a newer release is available.
Prompt=normal