mysqldump -u <user> -p<password> dbname --ignore-table=dbname.table > dump.sql
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
<meta name="apple-mobile-web-app-title" content="iPhoneでホーム保存するときのタイトルを記入" /> |
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
# setting phpMyAdmin ver 3.5.8 at CentOS. | |
# Rootユーザへ変更 | |
sudo su - | |
Password: (パスワード入力) | |
# ダウンロード素材置き場へ移動 | |
cd /usr/local/src/ |
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
# svnでは編集中だったけど、元の最新リビジョンに戻したい場合、 | |
# 一度削除してsvn updateでファイルを復活させてる場面をよく見かけました。 | |
# gitでは以下のようにします。 | |
# ファイル指定し最新リビジョンに戻したい場合 | |
git checkout (ファイル名) | |
# 全て元したい場合 | |
git checkout . |
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
git svn clone -s --prefix=svn/ <svnリポジトリURL> | |
git remote add <リモート名> <gitリポジトリURL> | |
git push <リモート名> <ブランチ名> |
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
ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" |
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 "This is test mail." | mail hoge@example.com |
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
# 以下随時蓄積 | |
# リモートのorigin/developをlocalのdevelopブランチへチェックアウトする | |
git checkout -b develop origin/develop | |
# 特定のファイルの編集内容を取り消す。Commitされているファイルの状態に戻す。 | |
git checkout <filepath> | |
# commit一覧表示 | |
git log |
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
# rootユーザへ変更 | |
sudo su - | |
Password: (パスワード入力) | |
# munin, munin-node インストール | |
yum install --enablerepo=epel munin munin-node | |
# muninのhtpasswd設定 | |
htpasswd -c /etc/munin/munin-htpasswd (BASIC認証ID入力) | |
New password: (BASIC認証PW入力) |
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
# インターフェースチェック | |
networksetup -listnetworkserviceorder | |
# ipv6 OFF設定 | |
networksetup -setv6off "USB Ethernet" | |
networksetup -setv6off "Wi-Fi" |