Skip to content

Instantly share code, notes, and snippets.

# Title
Hi, my name is naoyes.
---
## Lists
* List1
* List2
@naoyes
naoyes / :
Created February 11, 2014 09:43
tar(1) でアーカイブ前の名前ではなく新たな名前のディレクトリで展開したいときのメモ ref: http://qiita.com/naoyes/items/a218a137b1a978ef59ce
$ mkdir after2 && tar xzvf dummy.tgz -C after2 --strip-components 2
before/one/two1
before/one/two/
before/one/two/three/
$ tree after2
after2
├── two
│   └── three
└── two1
@naoyes
naoyes / .bash_profile
Created January 31, 2014 16:42
VagrantでAmazon Web ServicesのVPCにAmazon Linuxのインスタンスを作成 ref: http://qiita.com/naoyes/items/cdc5f340d1e9a0ccc65c
+ export MYAPP_AWS_ACCESS_KEY_ID=yourawsaccesskeyid
+ export MYAPP_AWS_SECRET_KEY=yourawssecretkey
@naoyes
naoyes / create_db.sql.erb
Last active January 4, 2016 11:29
ChefでMySQL5.6をインストール ref: http://qiita.com/naoyes/items/a49637bfa4bc6a64b87b
GRANT ALL ON <%= @db_name %>.* TO '<%= @username %>'@'localhost' IDENTIFIED BY '<%= @password %>';
FLUSH PRIVILEGES;
jQuery.ajax({
type: 'GET',
url : '/hoge.json',
}).pipe(function(data){
return jQuery({
type: 'POST',
url : '/fuga'
})
}
).done(function(){