Skip to content

Instantly share code, notes, and snippets.

"----------------------------------------
set nocompatible
filetype off
filetype plugin indent off
if has('vim_starting')
set runtimepath+=$HOME/vimfiles/neobundle.vim
call neobundle#rc('C:/users/kog/vimfiles')
endif
@minitau
minitau / which.cmd
Created January 11, 2010 15:45
which_on_windows
@echo off
ruby -S -x "%0.cmd" %*
goto end
#!ruby -Ks
paths = ENV['PATH'].split(';')
pathexts = ENV['PATHEXT'].split(';')
cmd, = ARGV.shift
re = Regexp.union(*pathexts.map{|ext| Regexp.new("^#{cmd}#{ext}$", Regexp::IGNORECASE)})
[Setup]
Lang=default
Dir=c:\opt\bzr
Group=Bazaar
NoIcons=0
SetupType=typical
Components=main,explorer,doc,doc\en,doc\dev,plugins,plugins\launchpad,plugins\netrc,plugins\qbzr,plugins\bzrtools,plugins\rebase,plugins\svn,plugins\upload,plugins\xmloutput
Tasks=desktopicon
@minitau
minitau / bzr.rb
Created September 13, 2009 05:41
bzr for hiki. put on hiki/repos/bzr.rb, adust in initialize()
# Copyright (C) 2009, Koga Atsushi <kog{@}ceres.dti.ne.jp>
# You can distribute this under GPL.
require 'hiki/repos/default'
module Hiki
class HikifarmReposBzr < HikifarmReposBase
def initialize(root, data_root)
super
ENV['BZR_HOME'] = @data_root
@minitau
minitau / deploy.rb
Created April 19, 2009 10:03
deploy for shinjiko
set :application, "shinjiko"
set :deploy_to, "/var/rails/#{application}"
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
set :use_sudo, false
set :scm_verbose, true
set :rails_env, "production"
set :user, "rails"
@minitau
minitau / deploy.rb
Created April 12, 2009 12:25
tracks with passenger
#############################################################
# This file is designed as a starting point to use
# capistrano to deploy the trunk of tracks to a webhost
# where it is served using Phusion Passenger. For more
# info on getting started with Passenger, see
# http://www.modrails.com/
#############################################################
#############################################################