Skip to content

Instantly share code, notes, and snippets.

View yrchen's full-sized avatar

Xaver Y.R. Chen yrchen

View GitHub Profile
@yrchen
yrchen / gist:885365
Created March 24, 2011 16:29
Rex 24 張照片的圖片的 JSON 格式
https://picasaweb.google.com/dslrxx/COSCUPGNOMEAsia201002#5505088778911955762
https://lh3.googleusercontent.com/_GwqTLJzZA3g/TGYBE8QJOzI/AAAAAAAAZaI/oOVVWhIQSYc/s288/DSC_2420.JPG
height='192' width='288
DSC_2420.JPG
https://picasaweb.google.com/dslrxx/COSCUPGNOMEAsia201002#5505178878882129986
https://lh4.googleusercontent.com/_GwqTLJzZA3g/TGZTBczAqEI/AAAAAAAAZ_o/sf45POOImSI/s288/DSC_2521.JPG
height='192' width='288'
DSC_2521.JPG
# Prompt which indicates VCS info in Zsh
autoload -Uz vcs_info
zstyle ':vcs_info:*' actionformats \
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{3}|%F{1}%a%F{5}]%f '
zstyle ':vcs_info:*' formats \
'%F{5}(%f%s%F{5})%F{3}-%F{5}[%F{2}%b%F{5}]%f '
zstyle ':vcs_info:(sv[nk]|bzr):*' branchformat '%b%F{1}:%F{3}%r'
zstyle ':vcs_info:*' enable git cvs svn
######################################################################
# mako's zshrc file, v0.1
#
#
######################################################################
# next lets set some enviromental/shell pref stuff up
# setopt NOHUP
#setopt NOTIFY
#setopt NO_FLOW_CONTROL
export PATH="~/bin:/opt/local/bin:/opt/local/sbin:/usr/local/bin:/usr/local/sbin/:$PATH"
export EDITOR=nano
export LANG=en_US.UTF-8
UNAME=`uname`
if [[ $UNAME == "Darwin" ]]
then
export LSCOLORS="gxfxcxdxbxegedabagacad"
alias ls='ls -Gv'
elif [[ $UNAME == "Linux" ]]
@yrchen
yrchen / gist:916357
Created April 12, 2011 20:41
Remote Machine
$ cd git
$ mkdir somesite.git
$ cd somesite.git/
$ git init --bare
Initialized empty Git repository in /home/caius/git/somesite.git/
$ git --bare update-server-info
$ git config core.worktree /home/caius/vhosts/somesite.com/htdocs
$ git config core.bare false
$ git config receive.denycurrentbranch ignore
$ cat > hooks/post-receive
#!/bin/sh
#
# This hook does two things:
#
# 1. update the "info" files that allow the list of references to be
# queries over dumb transports such as http
#
# 2. if this repository looks like it is a non-bare repository, and
# the checked-out branch is pushed to, then update the working copy.
# This makes "push" function somewhat similarly to darcs and bzr.
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html lang="en" dir="ltr"><head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Sponsorship Form | COSCUP Sponsors Information Hub (Test Site)</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="shortcut icon" href="/sponsor/misc/favicon.ico" type="image/x-icon" />
<?php
// $Id$
/**
* Valid permissions for this module
* @return array An array of valid permissions for the coscup_sponsorship module
*/
function coscup_sponsorship_perm()
{
return array('access sponsorship content');
brew install mysql
brew install imagemagick
gem install rails
gem install rails -v=2.3.8
gem install mysql2
gem install mysql
gem install passenger
gem install nokogiri
gem install capistrano
Please install RDoc 2.4.2+ to generate documentation.
rake aborted!
undefined method `requirement' for #<Rails::GemDependency:0xb702f99c>
/usr/share/redmine/config/../vendor/rails/railties/lib/rails/gem_dependency.rb:81:in `add_load_paths'
/usr/share/redmine/config/../vendor/rails/railties/lib/initializer.rb:301:in `add_gem_load_paths'
/usr/share/redmine/config/../vendor/rails/railties/lib/initializer.rb:301:in `each'
/usr/share/redmine/config/../vendor/rails/railties/lib/initializer.rb:301:in `add_gem_load_paths'
/usr/share/redmine/config/../vendor/rails/railties/lib/initializer.rb:132:in `process'
/usr/share/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `send'
/usr/share/redmine/config/../vendor/rails/railties/lib/initializer.rb:113:in `run'