hasen's tech life

Twitter: @hasen

Vagrant

Vagrant packageで作業を短縮する

# 年末年始,ぼけっとコマンドラインのヘルプを読んでいると便利なものを見つけた. # 毎回`yum update`などしているので,その時間がもったいない.予めboxにしておく. # 公開までしなくても,自分のよく使う便利なところで止めて,box化しておけばよかっ…

VirtualBoxが入っていなかったので,インストールした.

# VirtualBoxが入っていなかったので,インストールした. $ vg up > ... (中略) > If you believe you already have a provider available, make sure it > is properly installed and configured. You can see more details about > why a particular prov…

Homesteadを使用した時のメモ.

# Homesteadを使用する.使ったことがなかった. # 作業環境の作成とHomesteadのインストール $ mkdir /PATH/TO/WORKDIR && !$ $ git clone https://github.com/laravel/homestead.git ./ $ composer update $ ./homestead make $ bash init.sh # 試しにLara…

Vagrantで"/sbin/mount.vboxsf: mounting failed with the error: No such device"というエラーが出たので対応した.

# Vagrantで"/sbin/mount.vboxsf: mounting failed with the error: No such device"というエラーが出たので対応した. $ vagrant up $ vagrant ssh $ sudo yum install -y kernel-devel $ uname -r > 2.6.32-504.el6.x86_64 $ echo $KERN_DIR > $ export KE…

Bookmark (2015-12-22)

・Lravel 5.2 is released! https://laravel-news.com/2015/12/laravel-5-2-is-released/ ・スケールアウト可能なSQLエンジンのベンチマークテスト:Presto vs Spark SQL vs Hive on Tez http://recruit.gmo.jp/engineer/jisedai/blog/presto_spark_hive/ ・…

Bookmark (2015-10-04)

・GitHub Universe http://ikeike443.hatenablog.com/entry/2015/10/04/132432 ・pure JS WiFi QR Code Generator - WiFi設定用のQRコードを生成 http://goo.gl/Jqffzq ・React Native Playground - React NativeアプリをWeb上でシミュレート http://goo.gl/…

CentOS6にajentiを入れてた.

# CentOS6にajentiを入れてた. # cronの設定ができたり,ネットワークの様子が見れる便利なGUI. # 参考: ajenti $ mkdir test_ajenti $ cd test_ajenti $ vi Vagrantfile $ vi provision.sh $ vagrant up# https://localhost:8000でアクセス(httpsなので注…

Vagrantでgnuplotを試した.

# Vagrantでgnuplotを試した. # 参考: gnuplot # 参考: Graphing ApacheBench Results Using GnuPlot $ mkdir test_gnuplot $ cd test_gnuplot $ vi Vagrantfile $ vi provision.sh $ vagrant up $ open benchmark.png あまりいいかんじのグラフではないけ…

mod_small_lightが試せるVagrantfileを作った.

# mod_small_lightが試せるVagrantfileを作った. # mod_small_lightは動的に縮尺を変更して,画像のサムネイルが作れるApacheモジュール. # 最初はCookpad社のtofuを使おうかと思っていたのだけれど,OSSになっていないみたいだったので.# 参考: yamac/sma…

RedPenをインストールした.

# RedPenをインストールした. # 自然言語で書かれた文書のチェックができる. 参考: RedPen $ vagrant box add centos65 https://github.com/2creatives/vagrant-centos/releases/download/v6.5.3/centos65-x86_64-20140116.box $ mkdir test_redpen && cd …

pecoをインストールする.

$ which peco > pecoが入ってなかった... # OSXでbrewコマンドが使える場合. $ brew update $ brew install peco $ which peco > /usr/local/bin/peco # CentOSの場合(Vagrantで試してみる) $ mkdir test_peco $ cd test_peco $ vagrant init centos65 $…

Bookmark (2015-04-23)

・Dnsmasqでお手軽ご家庭DNSサーバーを作ろう http://www.infiniteloop.co.jp/blog/2015/04/how_to_use_dnsmasq/ ・Packer in Atlas:Vagrant Boxとマシンイメージの構築自動化(参考訳) http://pocketstudio.jp/log3/2015/04/18/packer_in_atlas_translate…

Vagrant上で,/etc/init.d/network restartでエラーが出たので,使っていないimageを停止した.

Vagrant上で,/etc/init.d/network restartでエラーが出たので,使っていないimageを停止した. # error $ sudo /etc/init.d/network restart > Bringing up interface eth1: Determining if ip address 192.168.33.10 is already in use for device eth1...…

Bookmark (2015-04-06)

・最強の野球オープンデータ「Retrosheet」をPython+Vagrant+Ansibleで誰でも使えるようにしました http://shinyorke.hatenablog.com/entry/2015/04/06/190243 ・Web広告配信における多腕バンディット問題、Mortal Multi-Armed Bandits Problemとアルゴリズ…

Bookmark (2015-03-23)

・MicrosemiがVitesse買収――懸念される「MIPS対ARM」の構図 (1/2)<) http://eetimes.jp/ee/articles/1503/23/news065.html ・Vagrant で drone オープンソース版を試す(1)〜 terraform のコードを CI してインフラ CI 入門 〜 http://inokara.hateblo.jp/e…

Vagrantでプロビジョニングした時のメモです.

Vagrantでプロビジョニングした時のメモです. 参考: Vagrant日本語ドキュメント $ vi bootstrap.sh ++ #!/bin/bash ++ ++ sudo yum update -y $ vi Vagrantfile ++ config.vm.provision :shell, :path => "bootstrap.sh" $ vagrant up # 既に'vagrant up'済…

OSX(Yosemite)にSeagullを入れてみた.

OSX(Yosemite)にSeagullを入れてみた.Seagullを使うと,コンテナやイメージの状態をブラウザで確認できるらしい. $ vagrant init BOX_NAME $ vi Vagrantfile -- # config.vm.network "private_network", ip: "192.168.33.10"++ config.vm.network "private…

Bookmark (2015-02-04)

・Linuxカーネルに関する技術ドキュメント「Linux internals」の第2部が公開される http://www.softantenna.com/wp/unix/linux-internals-part2/ ・Rails, Django, Laravel 開発サーバをダブルクリックで起動する vagrant-layout プラグインというのを作った…

Bookmark (2014-11-18)

・vagrant-googleを日本で一番詳しく解説http://technica.speee.jp/2460・MySQLユーザーのためのMySQLプロトコル入門 #4http://labs.gree.jp/blog/2014/11/11542/・ElasticsearchとKibanaではじめる検索&アナリティクス https://speakerdeck.com/…/elastics…

CentOS6.5のVagrant立ち上げから,ブラウザで確認するまでのコマンド

最近は,Dockerを使っていて,久しぶりにVagrantを触った.CentOS6.5のVagrantの立ち上げから,ブラウザで確認するまでのコマンド.# boxを探す.$ ls ~/.vagrant.d/boxes> centos65# boxを使って初期化.$ vagrant init centos65# ブラウザから確認できるよ…