git fsck --unreachable | grep commit | cut -d\ -f3 | xargs git log --merges --no-walk --grep=WIP
git cherry-pick -n -m1 <SHA-1>
This file contains hidden or 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
#To install ruby-debug on Ubuntu ruby-1.9.3 you need to download from http://rubyforge.org/frs/?group_id=8883 | |
linecache19-0.5.13.gem | |
ruby_core_source-0.1.5.gem | |
ruby-debug19-0.11.6.gem | |
ruby-debug-base19-0.11.26.gem | |
#Then in your console | |
export RVM_SRC=/your/path/to/ruby-1.9.3 |
This file contains hidden or 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
<?xml version="1.0"?> | |
<root> | |
<appdef> | |
<appname>GVim</appname> | |
<equal>org.vim.MacVim</equal> | |
</appdef> | |
<item> | |
<name>My GVim Hack</name> | |
<appendix>Change ESC to ESC + KANA</appendix> |
This file contains hidden or 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
ActiveRecordHelper | |
module ActiveRecordHelper | |
def flatten_conditions(conditions, op = "and") | |
return nil if conditions.empty? | |
ps = [] | |
condition = conditions.collect do |c| | |
next if c.size < 1 | |
ps += c[1..(c.size)] | |
"( #{c[0]} )" |
This file contains hidden or 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
git pull について | |
http://dxd8.com/archives/218/ | |
------ | |
O-Show 2011-04-08 05:20 | |
こんにちは。 | |
git config branch.ブランチ名.mergeoptions “–no-ff” | |
で常にファストフォワードではないマージを行うことについて一つ。 |
This file contains hidden or 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
select id, substr(subject, 1, 15), category_id, project_id, created_on from issues order by updated_on; | |
select issues.id, substr(subject, 1, 15), category_id, project_id, created_on | |
FROM `issues` INNER JOIN issue_statuses ist on ist.id = issues.status_id WHERE (1 = 1 | |
and (issues.assigned_to_id = 3 | |
and issues.start_date < '2013-02-11 00:00:00' | |
and ist.is_closed != 1)) | |
; |
This file contains hidden or 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
falcon スコープ | |
=============== | |
対象範囲 | |
--------------- | |
- 売上登録 | |
- 請求締 | |
- 請求登録 | |
- 入金登録 | |
- 原価登録 |
This file contains hidden or 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
<?php | |
/** ClassLoader | |
* | |
* Based on SplClassLoader by PHP Standards Working Grounp | |
* <http://groups.google.com/group/php-standards/web/final-proposal> | |
* | |
* @author Sotaro Karasawa <[email protected]> | |
* @date 2010-12-02 18:59:39 | |
*/ |
This file contains hidden or 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
$ sqlplus | |
SQL*Plus: Release 11.2.0.2.0 Production on Thu Apr 7 20:22:46 2011 | |
Copyright (c) 1982, 2010, Oracle. All rights reserved. | |
Enter user-name: <your username here> | |
Enter password: <your password here> | |
Connected to: |
This file contains hidden or 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
sed -n -e "/^\[/h; /priority *=/{ G; s/\n/ /; s/ity=/ity = /; p }" /etc/yum.repos.d/*.repo | sort -k3n |