2015-04-01から1ヶ月間の記事一覧

linuxで再帰的にgrep

全てのファイルからhogehogeを検索 find . -name '*' | xargs grep hogehoge 全てのphpファイルからhogehogeを検索 find . -name '*.php' | xargs grep hogehoge

yumでCentOS6のphp5.3をphp5.4にアップグレード

php

php5.4があるyumリポジトリをインストール。 $ wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/epel-release-6-5.noarch.rpm $ wget http://dl.iuscommunity.org/pub/ius/stable/Redhat/6/x86_64/ius-release-1.0-11.ius.el6.noarch.rpm $…

phpunitをインストールして動作確認

phpunitと関連するパッケージをインストール。 $ sudo yum install php-xml php-pear php-phpunit-PHPUnit --enablerepo=epel 以下のコマンドが動作するかを確認。 $ phpunit 参考URLhttp://d.hatena.ne.jp/yk5656/20140122/1391124017

memcachedをCentOS-6.xにインストールしてphpから使用

memcached関連のパッケージは? $ yum list | grep memcached http://ftp.kddilabs.jp/Linux/packages/fedora/epel/6/x86_64/repodata/repomd.xml: [Errno -1] repomd.xml does not match metalink for epel Trying other mirror. libmemcached.i686 0.31-1.…

bitbucketの使い方

butbucketからローカルにリポジトリ取得。 $ git init $ git remote add origin https://ユーザID@bitbucket.org/ユーザID/リポジトリ名.git bitbucketアカウントのパスワードを聞かれるので入力。 $ git pull origin master Password for 'https://ryouichi…

sublime text 2の初期設定

sublime text 2をインストール。まずはvim化。Vintageパッケージを有効に。画面上部メニュー「Preferences > Settings - User」を選択。 // Vim モード "ignored_packages": [], // Vim のキーバインドを使用 "vintage_ctrl_keys": true, // 新規ファイルを…