Skip to content

Instantly share code, notes, and snippets.

init

- (id)init
{
    self = [super init];
    if (self) {
        // Initialization code
    }
    return self;

}

さらのUbuntu(14.04 LTS)にruby+chef+knife-soloを入れる

sudo apt-get update
sudo apt-get install gcc
sudo apt-get install g++
sudo apt-get install make
sudo apt-get install build-essential
sudo apt-get install zlib1g-dev libssl-dev libreadline-dev libyaml-dev libxml2-dev libxslt-dev

cd /usr/src/

詳細はWiki

https://github.com/allending/Kiwi/wiki

はまったところ

  • 全てオブジェクトである必要がある。
  • intなどはtheValue()でラップする必要がある。
  • should receiveはテストするメソッド実行前に書いておく必要がある。
  • should equalなどの実行結果の確認はテストするメソッド実行後に書いておく必要がある。
@t-oginogin
t-oginogin / Vim.md
Last active December 15, 2015 10:08
@t-oginogin
t-oginogin / ssh.md
Last active December 15, 2015 23:39

複数のid_rsa(sshの鍵)をアクセスするサイトに応じて使い分ける

~/.ssh/configを作成する

Host github
  HostName github.com
  User xxxxx
  IdentityFile ~/.ssh/id_rsa_github

Host heroku

AWS上のUbuntu Server 12.04 LTSにAsteriskをインストール

まずコンンパイル環境準備

$ sudo apt-get update
$ sudo apt-get install gcc
$ sudo apt-get install build-essential
$ sudo apt-get install libxml2-dev
$ sudo apt-get install libssl-dev

$ sudo apt-get install ncurses-dev

Proxy設定

認証ありProxy経由で外部に接続する環境で苦労したので、設定したものをまとめておきます。

全般

.barshrcに設定を追加

export http_proxy=http://username:password@proxy.example.com:8080/

export https_proxy=https://username:password@proxy.example.com:8080/

JenkinsでRailsのテスト実行

ビルド手順の追加で”シェルの実行”

#!/bin/bash --login
source ~/.bashrc

rvm use 2.0.0

cd $WORKSPACE

GitLabとRedmine連携

(git@localhost:test/sample.gitを連携させる例)

1.GitLabのプロジェクトのメンバーにredmineユーザーをReporterとして追加  (GitLab上にredmineユーザーは作成済み)

2.ミラーリポジトリを作成

$ cd /home/redmine/git_repositories