検索中
vi(vim)にて検索結果をハイライト表示している状態
検索解除
:nohで検索を解除できる。
|
1 2 3 4 |
$ gem update Updating installed gems ERROR: While executing gem .. (ArgumentError) invalid byte sequence in UTF-8 |
|
1 |
$ LANG=C.BINARY gem update |
|
1 |
$ LANG=C.BINARY gem install thread |
|
1 |
$ ssh-keygen -F xxx.xxx.xxx.xxx |
|
1 2 3 4 |
# Host xxx.xxx.xxx.xxx found: line 5 type RSA xxx.xxx.xxx.xxx ssh-rsa AAA6OhgkZa0L6XDnmHE0NaBprr0VHhSjQ4bEtj j/hVXLSQqMBkigKGI7AbcgAB3NzaC1yc2EAAAADAQABAAABAQC2ytDRUlU4fZB 6OmcwJuhaiZElYEYcDy7p1/MR5wqRPhk5T34yQrVlsb2utNWRHRTwG50kbrAkK |
|
1 |
$ ssh-keygen -R xxx.xxx.xxx.xxx |
|
1 2 3 |
# Host xxx.xxx.xxx.xxx found: line 5 type RSA /Users/Ichiro/.ssh/known_hosts updated. Original contents retained as /Users/Ichiro/.ssh/known_hosts.old |
Commandボタン ⌘ を押しながら、ドラッグ&ドロップする。
Optionボタン ⌥ を押しながら、ドラッグ&ドロップする。
Command ⌘ + c
Command ⌘ + v
|
1 2 |
clean: rm *.o |
"clean"という名前のファイルやディレクトリがなければ問題ない。しかし、(たまたま)"clean"という名前のファイルまたはディレクトリが存在すると rm *.o というコマンドは実行されない。
|
1 2 3 4 |
.PHONY: clean clean: rm *.o |
"clean"という名前のファイルやディレクトリの存在如何に関わらず、 $ make clean を実行すればmakeコマンドは期待の動作をする。
|
1 2 |
FOO_MODULE: $(MAKE) -C ./foo_dir |
以下の記述と等価
|
1 2 |
FOO_MODULE: cd ./foo_dir && $(MAKE) |
|
1 2 |
FOO_DEFINES = -DBAR_DEFINE export FOO_DEFINES |
または
|
1 |
export FOO_DEFINES = -DBAR_DEFINE |
環境変数を介して呼び出し先のMakefileのFOO_DEFINESに値が反映される。
|
1 |
git archive --format=tar.gz --prefix=FOO/ HEAD -o foo.tar.gz |
|
1 |
git archive --format=zip --prefix=BAR-1_4_0/ v1.4.0 -o bar.zip |
--prefix
.gitignoreなどアーカイブファイル(tar.gzやzip)から除外したいファイルの設定方法
⇒ .gitattributesにignore-exportを追記する
|
1 2 |
.gitignore export-ignore .gitattributes export-ignore |
デバッグ(D) => …のプロパティ => デバッグ
※リモートコンピューターのIPアドレスが変更されたときはここを変更
-I : 検索結果からバイナリを除外する
(exa.)
|
1 |
$ grep -I "pattern" |
Xcode6のコマンドラインにてブレイク中にオブジェクトを表示する。
|
1 |
(lldb) po foo_object |
|
1 |
(lldb) po [[bar view] recursiveDescription] |
出力例
|
1 2 3 4 5 6 7 |
<FooView: 0x1566b5020; baseClass = UICollectionViewCell; frame = (63.5 24; 112 56); animations = { backgroundColor=<CASpringAnimation: 0x17862d5c0>; }; layer = <CALayer: 0x17862d540>> | <UIView: 0x178197aa0; frame = (0 0; 112 56); gestureRecognizers = <NSArray: 0x178a48490>; layer = <CALayer: 0x17862d560>> | <UILabel: 0x1566b7810; frame = (0 0; 0 0); userInteractionEnabled = NO; layer = <_UILabelLayer: 0x17828c6c0>> | <UIView: 0x178197b70; frame = (0 0; 0 0); layer = <CALayer: 0x17862d620>> | | <UILabel: 0x1566b7970; frame = (0 0; 0 0); text = 'ABCabc'; autoresize = W+H; userInteractionEnabled = NO; layer = <_UILabelLayer: 0x17828c710>> | | <BarView: 0x178197c40; frame = (0 0; 0 0); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x178437860>> | | | <UIView: 0x178197d10; frame = (0 0; 0 0); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x17862d940>> |