git init --bare --shared=true foo.git
cd foo.git
git --bare svn init -s file:///path/to/svn/repo
git --bare svn fetch
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
" Language: Ruby (rspec) | |
" Author: pasela | |
" License: The MIT License | |
" ctrlp-funky-rspec provides filters for RSpec. It only provides 'describe' | |
" block by default. You can enable more blocks by options. | |
" | |
" | |
" g:ctrlp_funky_rspec_examples (default: 0) | |
" |
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
#!/usr/bin/env ruby | |
# encoding: utf-8 | |
# Ohai Plugin Benchmark | |
# ===================== | |
# | |
# Usage: ohai_bench.rb [option] [loop_count] | |
# | |
# Options: | |
# -d PLUGIN_DIR Ohai plugin path |
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
class Foo | |
CONST = 'foo' | |
def put_const | |
puts [ | |
self.class.name, # (1) | |
CONST, # (2) | |
self.class::CONST # (3) | |
].join(' ') | |
end |
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
# encoding: utf-8 | |
require 'pathname' | |
# Set filename if progname was omitted. | |
class Logger | |
alias_method :org_add, :add | |
def add(severity, message = nil, progname = nil, &block) | |
if message.nil? && !block_given? | |
message = progname |
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
sudo yum install \ | |
zlib-devel \ | |
openssl-devel \ | |
readline-devel \ | |
iconv-devel \ | |
libffi-devel |
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
# encoding: utf-8 | |
# Convert .minttyrc color settings to escape sequences. | |
# | |
# USAGE: | |
# ruby export-mintty-color.rb [minttyrc_file] | |
# | |
# minttyrc_file target rc file(default is ~/.minttyrc) | |
COLOR_SETTINGS = { |
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
# | |
# nginx configuration example for Symfony2 | |
# | |
server { | |
listen 80; | |
server_name symfony2-example; | |
root /var/www/sf2/web; | |
access_log /var/log/nginx/sf2.access.log; | |
error_log /var/log/nginx/sf2.error.log; |
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
set disablesites=mail.google.com,reader.livedoor.com,github.com,bitbucket.org,trello.com,www.blogger.com/blogger.g,stackedit.io | |
set enable_vrome_key=<C-z> | |
" set autocomplete_prev=<C-n> | |
" set autocomplete_next=<C-p> | |
set hintkeys=jlkhfsdagwerui | |
set useletters=1 | |
unmap <M-d> | |
unmap <M-f> | |
unmap do |
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
#!/bin/bash | |
# | |
# List tags with commit date. | |
# | |
for tag in $(git tag) | |
do | |
ldate=$(git log -1 --pretty=format:%cd --date=local $tag) | |
date=$(date +"%F %T" -d "$ldate") | |
echo -e "$tag\t$date" |