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 | |
# find_by_status_history.rb | |
# | |
# Redmineのチケットのうち、特定のステータスに設定されたことがある | |
# チケットを検索します。 | |
# | |
# 使い方: | |
# Redmineのインストールディレクトリで以下のように実行。 | |
# |
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 workdir to "~" | |
tell application "iTerm" | |
activate | |
set myterm to (make new terminal) | |
tell myterm | |
launch session "Default Session" | |
tell the last session | |
set name to "session 1" | |
write text "cd " & workdir |
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/osascript | |
# open new iTerm tab and change directory. | |
set current_dir to do shell script "pwd" | |
tell application "iTerm" | |
tell application "System Events" | |
tell process "iTerm" to keystroke "t" using command down | |
end tell | |
tell the current terminal | |
tell the last session | |
write text "cd " & current_dir |
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 | |
# issue_creations.rb | |
# | |
# Redmineのチケット作成の履歴を表示 | |
# | |
# 使い方: | |
# Redmineのインストールディレクトリで以下のように実行。 | |
# | |
# script/runner -e production issue_creations.rb |
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 | |
# issue_updates.rb | |
# | |
# Redmineのチケットに対する更新の一覧を日付順に表示します。 | |
# | |
# 使い方: | |
# Redmineのインストールディレクトリで以下のように実行。 | |
# | |
# cript/runner -e production issue_updates.rb |
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 | |
# issue_creations_report.rb | |
# | |
# Redmineのチケットの日ごとの作成数を表示 | |
# | |
# 使い方: | |
# Redmineのインストールディレクトリで以下のように実行。 | |
# | |
# script/runner -e production issue_creations_report.rb |
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 | |
# issue_updates_report.rb | |
# | |
# Redmineのチケットの日ごとの更新数を表示 | |
# | |
# 使い方: | |
# Redmineのインストールディレクトリで以下のように実行。 | |
# | |
# script/runner -e production issue_updates_report.rb |
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
module AddIssueValidation | |
def self.included(base) | |
base.class_eval do | |
validates_presence_of :category | |
validates_presence_of :due_date | |
validates_presence_of :fixed_version | |
end | |
end | |
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
find . -type d -exec touch {}/.gitkeep \; | |
git init | |
git add --all |
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
ruby -e 'require "webrick"; s = WEBrick::HTTPServer.new(:Port => 3000, :DocumentRoot => "./"); trap("INT") {s.shutdown} ; s.start' |
OlderNewer