Skip to content

Instantly share code, notes, and snippets.

View moreta's full-sized avatar

JungJoo Seo moreta

  • Brakio
  • Japan
View GitHub Profile
class CreatePdmRevisions < ActiveRecord::Migration
def self.up
create_table :pdm_revisions do |t|
t.column :commit_message, :string
t.column :attachment, :string
t.column :created_by, :string
t.column :created_date, :datetime
t.column :document_type, :string
t.column :pdm_document_id, :int
end
@moreta
moreta / sssh
Created February 9, 2012 16:39
sssh(ssh自動ログイン)
#!/bin/sh
# 実行例1:sssh を実行すると ~/bin/server_list の一覧からserver選択して自動ssh接続
# 実行例2:sssh $server を実行すると ssh $ssh_user@$server を実行する
ssh_user="ssh user"
ssh_pass="ssh password"
ssh_login(){
if [ $# -ne 1 ]; then