Skip to content

Instantly share code, notes, and snippets.

@eyasuyuki
eyasuyuki / docker-compose.yml
Created May 15, 2015 03:58
Redis docker-compose.yml
redis:
image: redis
ports:
- "6379:6379"
expose:
- "6379"
@eyasuyuki
eyasuyuki / private.xml
Created May 19, 2015 01:44
Karabiner settings for Microsoft Remote Desktop with Dvorak key layout.
<?xml version="1.0"?>
<root>
<appdef>
<appname>MRD</appname>
<equal>com.microsoft.rdc.mac</equal>
</appdef>
<item>
<name>Fix Backquote and Tilde input</name>
<identifier>private.remotedesktopswapbackquote</identifier>
<only>MRD</only>
@eyasuyuki
eyasuyuki / docker-compose.yml
Created May 20, 2015 05:59
Druid docker-compose.yml
druid:
image: druid/cluster
ports:
- "3000:8082"
- "3001:8081"
expose:
- "8082"
- "8081"
@eyasuyuki
eyasuyuki / sample.yml
Last active June 15, 2020 15:41
Ansible playbook example before install Fluentd
- hosts: all
remote_user: eyasuyuki
sudo: yes
vars:
limits_conf: /etc/security/limits.conf
sysctl_conf: /etc/sysctl.conf
tasks:
- name: before install fluentd check ulimit
shell: grep "{{ item }}" {{ limits_conf }}
with_items:
@eyasuyuki
eyasuyuki / main.yml
Created July 10, 2015 12:06
Ansible homebrew setup script
# Brew Tap
- name: Brew Tap
shell: /usr/local/bin/brew tap {{ item }}
with_items: brew_tap
# Brew Update
- name: Brew Update
homebrew: update_homebrew=yes upgrade_all=yes
# Install Apps
@eyasuyuki
eyasuyuki / main.yml
Created July 10, 2015 12:07
Ansible homebrew vars
---
brew_tap:
- caskroom/cask
- caskroom/versions
- homebrew/binary
- homebrew/dupes
- homebrew/versions
brew_app:
- brew-cask
@eyasuyuki
eyasuyuki / hosts
Created July 23, 2015 00:07
Ansible Riak Cluster Task
[riak_cluster]
host_A
host_B
host_C
host_D
host_E
[riak_cluster:vars]
top_node=host_A
@eyasuyuki
eyasuyuki / cluster.yml
Created July 23, 2015 00:15
Ansible Riak Cluster
- hosts: riak_cluster:!riak_cluster[0]
remote_user: eyasuyuki
sudo: yes
roles:
- cluster
@eyasuyuki
eyasuyuki / ansible-2015-07-29.md
Created July 29, 2015 05:24
Ansibleの紹介

Ansible

タイムインターメディア技術部会資料

Ansibleとは

構成管理ツール。

セットアップスクリプトを記述し、パッケージインストールやデーモンの起動をリモート設定できる。

@eyasuyuki
eyasuyuki / WASBOOK.md
Last active May 29, 2022 00:58
「体系的に学ぶ 安全なWebアプリケーションの作り方」の仮想環境をVagrantで動かす

前提条件

2015-10-28 現在

  • OS X 10.11.1
  • VirtualBox
  • Vagrant

仮想マシンイメージの入手またはダウンンロード