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
$(function() { | |
var flg = false; | |
$(".button").on( "click", function() { | |
if ( flg ) { | |
if ( senf_flag ) { | |
return false; | |
} | |
senf_flag = true; | |
$(this).attr("disabled", "disabled"); |
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
# 配列 | |
arr = ["a","b","c"] | |
# 配列の個数 | |
print len(arr) # 3 |
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
// rootユーザへ切り替え | |
# sudo su - | |
Password:(rootユーザのパスワード入力) | |
// CSR用ディレクトリ作成 | |
# mkdir /etc/httpd/conf/ssl.csr/ | |
// CSR用ディレクトリに移動します。 | |
# cd /etc/httpd/conf/ssl.csr |
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 |