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
$ cat /etc/redhat-release | |
CentOS Linux release 7.2.1511 (Core) |
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
# 英字は大文字にする必要があります | |
$ echo "obase=10;ibase=16;0000000000014E3D" | bc |
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
<link href="<CSSファイルのURL>" rel="stylesheet" type="text/css"> |
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
$ sudo yum install -y https://ginernet.com/downloads/MegaCli-8.07.14-1.noarch.rpm |
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
$ ./test.sh | |
+ ONE=1 | |
+ TWO=2 | |
+ echo 'command: test 1 -eq 2' | |
command: test 1 -eq 2 | |
+ test 1 -eq 2 |
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
$ npm update react-datetime |
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
# rbenv+ruby-buildでインストール | |
$ rbenv install 2.2.4 | |
# rbenv+ruby-buildでインストール(rubyのドキュメントをインストールしない) | |
$ CONFIGURE_OPTS="--disable-install-rdoc" rbenv install 2.2.4 | |
# rbenv+rubyをソースからビルド(rubyのドキュメントをインストールしない) | |
$ sh ruby_install.sh | |
# ruby_install.sh という名前のシェルを作ります。↓中身はこちら | |
================================================================== |
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
# LaunchAgentsにシンボリックリンクを張る | |
$ ln -sfv /usr/local/opt/mackerel-agent/*.plist ~/Library/LaunchAgents | |
# 設定ファイルを読み込む | |
$ launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mackerel-agent.plist | |
# jobを開始 | |
$ launchctl start homebrew.mxcl.mackerel-agent |
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
if [ -e 'ファイル名' ]; then | |
# ファイル/フォルダが存在していれば、ファイル/フォルダを削除するなど | |
rm ファイル名 | |
fi |
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
ALTER TABLE テーブル名 ADD INDEX インデックス名(カラム名); |
OlderNewer