Skip to content

Instantly share code, notes, and snippets.

kk
kk
kkk
@murachi1208
murachi1208 / Vagrantfile
Last active August 29, 2015 14:01
Vagrantfile サンプル
Vagrant.configure("2") do |config|
config.vm.box = "CentOS6.5"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.define :web1 do |web1|
web1.vm.network :forwarded_port, guest: 22, host: 2222, host_ip: "127.0.0.1", id: "ssh", auto_correct: true
end
config.vm.define :web2 do |web2|
web2.vm.network :forwarded_port, guest: 22, host: 2223, host_ip: "127.0.0.1", id: "ssh", auto_correct: true
@murachi1208
murachi1208 / Vagrantfile
Created May 24, 2014 00:58
vagrant share
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos65"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.provision "shell", inline: <<-EOT
yum -y update
yum install -y httpd
@murachi1208
murachi1208 / file3.txt
Last active August 29, 2015 14:01
Chocolatey + VirtualBox + Vagrant Shareを使ってみた(Windows) ref: http://qiita.com/murachi1208/items/841e020f6a261c646850
VAGRANTFILE_API_VERSION = "2"
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
config.vm.box = "centos65"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.network :forwarded_port, guest: 80, host: 8080
config.vm.provision "shell", inline: <<-EOT
yum -y update
yum install -y httpd
@murachi1208
murachi1208 / text
Last active August 29, 2015 14:01
Gistはじめてみました、そしてpukiwikiに ref: http://qiita.com/murachi1208/items/93090fae7d42e64a595e
<script src="https://gist.github.com/makotokw/231844.js"></script>
#gist(makotokw/231844);
とするだけ
@murachi1208
murachi1208 / text
Last active August 29, 2015 14:01
Chocolatey + Sublime Text3 + Markdownを使ってみた(Windows) ref: http://qiita.com/murachi1208/items/5009c0420bc23c491022
IME Support
ConvertToUTF8
@murachi1208
murachi1208 / file0.txt
Created May 28, 2014 16:30
Chocolatey update するとアプリが動かない?(windows) ref: http://qiita.com/murachi1208/items/c6e921402e866762e529
C:\> chocolatey update virtualbox
@murachi1208
murachi1208 / Vagrantfile
Last active August 29, 2015 14:02
Chocolatey + VirtualBox + Vagrant の簡単セットアップ (Windows) ref: http://qiita.com/murachi1208/items/5b429cb7cedf76164e67
Vagrant.configure("2") do |config|
config.vm.box = "CentOS6.5"
config.vm.box_url = "https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box"
config.vm.define :web1 do |web1|
web1.vm.network :forwarded_port, guest: 22, host: 2222, host_ip: "127.0.0.1", id: "ssh", auto_correct: true
end
config.vm.define :web2 do |web2|
web2.vm.network :forwarded_port, guest: 22, host: 2223, host_ip: "127.0.0.1", id: "ssh", auto_correct: true
@murachi1208
murachi1208 / file0.txt
Created May 31, 2014 12:55
Vagrant + GitHub(Pages) + Octopress でblogを作成(その1) ref: http://qiita.com/murachi1208/items/d36064fdba691d49bf66
Windows → Vagrant → CentOS → Octopress → jekyll → Github Pages
git config --global core.autocrlf false