This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[databases] | |
db1i ansible_host=192.168.33.31 | |
db2i ansible_host=192.168.33.32 | |
[database_vip] | |
db_v1i ansible_host=192.168.33.1 | |
[apps] | |
app1i ansible_host=192.168.33.21 | |
app2i ansible_host=192.168.33.22 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.define "control" do |control| | |
control.vm.box = "centos/7" | |
control.vm.network :private_network, ip:"192.168.33.100" | |
control.vm.network "public_network", ip: "192.168.1.100" | |
end | |
config.vm.define "lb1i" do |lb1i| | |
lb1i.vm.box = "centos/7" | |
lb1i.vm.network :private_network, ip:"192.168.33.11" | |
lb1i.vm.network "public_network", ip: "192.168.1.11" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Vagrant.configure("2") do |config| | |
config.vm.define "control" do |control| | |
control.vm.box = "centos/7" | |
control.vm.network :private_network, ip:"192.168.33.100" | |
control.vm.network "public_network", ip: "192.168.1.100" | |
end | |
config.vm.define "lb1i" do |lb1i| | |
lb1i.vm.box = "centos/7" | |
lb1i.vm.network :private_network, ip:"192.168.33.11" | |
lb1i.vm.network "public_network", ip: "192.168.1.11" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Ansible test environment | |
# https://app.vagrantup.com/centos/boxes/7 | |
Vagrant.configure("2") do |config| | |
config.vm.define "ansible_control" do |ansible_control| | |
ansible_control.vm.box = "centos/7" | |
ansible_control.vm.network "public_network", ip: "192.168.1.30" | |
ansible_control.vm.synced_folder "../control", "/vagrant" | |
end | |
config.vm.define "ansible_target" do |ansible_target| |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
mysql: | |
image: sameersbn/mysql:5.7.22-1 | |
environment: | |
- DB_USER=redmine | |
- DB_PASS=password | |
- DB_NAME=redmine_production | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2' | |
services: | |
postgresql: | |
image: sameersbn/postgresql:9.6-4 | |
environment: | |
- DB_USER=redmine | |
- DB_PASS=password | |
- DB_NAME=redmine_production | |
volumes: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Prefecture extends Enum | |
{ | |
const HOKKAIDO = "北海道"; | |
const AOMORI = "青森"; | |
const IWATE = "岩手"; | |
const MIYAGI = "宮城"; | |
const AKITA = "秋田"; | |
const YAMAGATA = "山形"; | |
const FUKUSHIMA = "福島"; | |
const IBARAKI = "茨城"; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function getCpattern( $source, $m ){ | |
$n = sizeof($source); | |
return ptn( $source, $n, [], 0, $n-$m+1 ); | |
} | |
// 再帰 | |
function ptn( $source, $n, $subset, $begin, $end ){ | |
$p = []; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<h1>User List (sort)</h1> | |
<p><a href="{{ basePath }}/top">Top</a></p> | |
<p><a href="{{ basePath }}/user/add">Add</a></p> | |
<div id="userList"> | |
<table border="1"> | |
<thead> | |
<tr> | |
<th>■</th> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="UTF-8"> | |
<title>Title</title> | |
<style type="text/css"> | |
<!-- | |
.normal { | |
background-color: grey; | |
} |