Administrator's diary

[Mobile version(QRCode)] Total views:51,391 / Applauds for blog:26
Welcome to my page. I am an adminisrator of this site.
If you are this db's user, please contact with me by private mail. If not, please contact with me by email or twitter or facebook
People who saw this page with login status
nesthersancho / Kevin Echavarria / Carlos Ross / uhs / jakesancho / L(&"_"&) / jiaming / HUNGRY SPIDER / kankou / kankou drame / RyanK / mango / A / Love and peace / ELT / Arancia / DONP
Access record[Graph / PV Info.(Past 1 day / Past 1 week) / Access from outside (Yesterday / Past 1 week) / Vistors's list]
ProfilePmail(Mail)
Inbox   /Send   /Sent
Reviews(List   /Limit)
Poll   /Agree:Got   /Sent
Fan
Works/Music
Blog
[Write]
Links
My Play List
 Created dateCategoryArticle title
12017/02/03MeteorTeaching about meteor
22017/01/30PythonBasic of python
32017/01/28SingaporeMRT
42017/01/24AWSMove to AWS
52017/01/17HiringOnly the person who wrote can read
62017/01/07PhillipinesBoracay plan
72016/12/25ReactMemo of findings
82016/12/22Meteormeteor-example-collection
92016/11/19node.jsHow to update your local n..
102016/11/19SingaporeGood place for office-less..
=>Older article11. 2016/11/19 Where is Karaoke shop at which we can find Japanese karaoke songs?
 Created dateNameRecent messages

1.
2017/02/03 "Meteor > Teaching about meteor"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. AWS Free Tier
2. Study course
3. Examples
4. Preparation
5. Prepare common development environment
6. Deployment

  1. AWS Free Tier


  2. Study course

https://www.safaribooksonline.com/library/view/learn-meteorjs-by/9781787129726/
http://github.com/eduonix
  3. Examples

https://github.com/reactioncommerce/reaction
https://github.com/sandstorm-io/sandstorm
https://github.com/reactioncommerce/reaction

  4. Preparation

meteor create practice-meteor-todos --full

git clone git@github.com:hikarine3/meteor-starter-template.git
  5. Prepare common development environment

Create repository by importing from git@github.com:meteor/todos.git
Rename it and make it private
Create user group on bitbucket
Cretae user account on bitbucket
meteor create tmp --full
  6. Deployment

Log in meteor.com

Create app on web console

Deploy to galaxy

Add comment to this article

2.
2017/01/30 "Python > Basic of python"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. Filehandle

  1. Filehandle



Add comment to this article

3.
2017/01/28 "Singapore > MRT"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. MRT
2. North South Line
  1. East West Line
3. North East Line
  1. Circle Line
4. Down Town Line
5. Thomson-East Coast MRT Line

1. MRT

Train map
https://www.lta.gov.sg/content/dam/ltaweb/corp/PublicTransport/files/Train%20System%20Map%2029122016.pdf
2. North South Line

IDJurong East
1Bukit Batok
2Bukit Gombak
3Choa Chu Kang
4Yew Tee
5Reserved Station
6Kranji
7Marsiling
8Woodlands
9Admiralty
10Sembawang
11Canberra
12Yishun
13Khatib
14Yio Chu Kang
15Ang Mo Kio
16Bishan
17Braddell
18Toa Payoh
19Novena
20Newton
21Orchard
22Somerset
23Dhoby Ghaut
24City Hall
25Raffles Place
26Marina Bay
27Marina South Pier

  1. East West Line

IDPasir Ris 
1Tampines 
2Simei 
3Tanah Merah 
4Bedok 
5Kembangan 
6Eunos 
7Paya Lebar 
8Aljunied 
9Kallang 
10Lavender 
11Bugis 
12City Hall 
13Raffles Place 
14Tanjong Pagar 
15Outram Park 
16Tiong Bahru 
17Redhill 
18Queenstown 
19Commonwealth 
20Buona Vista 
21Dover 
22Clementi 
23Jurong East 
24Chinese Garden 
25LakesideJurong Lake
26Boon LayShopping mall
27PioneerJurong West Stadium
28Joo Koonpark
29  
30Gul Circle 
31Tuas Crescent 
32Tuas West Road 
33Tuas Link 
34  
35Expo 
36Changi Airport 

3. North East Line

IDHarbourFrontVivo City
1Outram Park 
2Chinatown 
3Clarke Quay 
4Dhoby Ghaut 
5Little India 
6Farrer Parkpark
7Boon KengBendemeer Shopping Mall
8Potong PasirOnly places to live
9WoodleighBidadari Cemetery
10Serangoon 
11KovanFood center
12Hougang 
13Buangkok 
14SengkangShopping center, LRT
15PunggolPunggol Waterway Park, Big shopping center, LRT

  1. Circle Line


IDDhoby Ghaut
1Bras Basah
2Esplanade
3Promenade
4 
5Nicoll Highway
6Stadium
7Mountbatten
8Dakota
9Paya Lebar
10MacPherson
11Tai Seng
12Bartley
13Serangoon
14Lorong Chuan
15Bishan
16Marymount
17Caldecott
18Bukit Brown
19Botanic Gardens
20Farrer Road
21Holland Village
22Buona Vista
23one-north
24Kent Ridge
25Haw Par Villa
26Pasir Panjang
27Labrador Park
28Telok Blangah
29HarbourFront
30 
31Keppel
32Cantonment
33Prince Edward
34 
35Bayfront
36Marina Bay

4. Down Town Line

IDBukit Panjang
1Cashew
2Hillview
3 
4Beauty World
5King Albert Park
6Sixth Avenue
7Tan Kah Kee
8Botanic Gardens
9Stevens
10Newton
11Little India
12Rochor
13Bugis
14Promenade
15Bayfront
16Downtown
17Telok Ayer
18Chinatown
19 
20Fort Canning
21Bencoolen
22Jalan Besar
23Bendemeer
24Geylang Bahru
25Mattar
26MacPherson
27Ubi
28Kaki Bukit
29Bedok North
30Bedok Reservoir
31Tampines West
32Tampines
33Tampines East
34Upper Changi
35Expo
36 
37Xilin
38Sungei Bedok

5. Thomson-East Coast MRT Line

IDWoodlands North
1Woodlands
2Woodlands South
3 
4Springleaf
5Lentor
6Mayflower
7Bright Hill
8Upper Thomson
9Caldecott
10 
11Mount Pleasant
12Stevens
13Napier
14Orchard Boulevard
15Orchard
16Great World
17Havelock
18Outram Park
19Maxwell
20Shenton Way
21Marina Bay
22Marina South
23Gardens by the Bay
24 
25Tanjong Rhu
26Katong Park
27Tanjong Katong
28Marine Parade
29Marine Terrace
30Siglap
31Bayshore
32 
33Bedok South
34Sungei Bedok


Add comment to this article

4.
2017/01/24 "AWS > Move to AWS"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. Background
  1. Prerequisite
    1. Your PC
    2. Create AWS account by sign up
    3. Create user account using IAM
  2. Decide the region
    1. Check mandatory service for you
    2. Compare price
    3. Decide default region
  3. Cost estimation before you start using AWS
  4. Set up AWS CLI env on your PC
  5. Create network (VPC)
  6. Move the authority to Rout53
  7. SSL Certificate
  8. ec2 instance
  9. EFS
  10. Request to unlock the limitation of SES
  11. Change mail to use SES
  12. Change the code which is using REMOTE_ADDR
  13. Timezone of Amazon Linux
  14. Stop unnecessary process

1. Background

I decided the service of sakuhindb move to AWS.
I will show the procedure for you to reference.
  1. Prerequisite


    1. Your PC

Mac or Linux environment to use linux command
    2. Create AWS account by sign up

https://aws.amazon.com/free/
    3. Create user account using IAM

After you have succeeded in signing in web console, create user group and user.
  2. Decide the region

https://aws.amazon.com/about-aws/global-infrastructure/regional-product-services/
    1. Check mandatory service for you

North virginia has all service and price is low.
So check the region's status which you are considering to serve the service.
In my case, it is tokyo and following services are not available now.

ServiceNecessary
Amazon Cloud DirectoryN
Amazon Elastic File System (EFS)Y
Amazon Kinesis AnalyticsN
Amazon Kinesis FirehoseN
Amazon LightsailN
Amazon Machine LearningN
Amazon Mobile AnalyticsN
Amazon PinpointN
Amazon Polly
Amazon QuickSightN
Amazon RekognitionN
Amazon Simple Email Service (SES)N
Amazon WorkDocsN
Amazon WorkMailN
AWS Application Discovery ServiceN
AWS CodeDeployN
AWS Managed ServicesN
AWS SnowballN
AWS Snowball EdgeN

    2. Compare price

EC2 Price
RegionN. VirginiaSingaporeTokyo
t2.micro$0.012$0.015$0.016
RDS Price 
RegionN. VirginiaSingaporeTokyo
db.t2.micro$0.017$0.026$0.026

ELB
RegionN. VirginiaSingaporeTokyo
ELB$0.025$0.028$0.027

    3. Decide default region

In this case, I needed EFS, so I chose N. Virginia.
  3. Cost estimation before you start using AWS

EFS50GB x 0.3=$15

  4. Set up AWS CLI env on your PC

brew install awscli;
brew install boto;
brew install jq;
aws configure;

# API key information can be gotten from IAM console
# Input region name seeing http://docs.aws.amazon.com/general/latest/gr/rande.html
  5. Create network (VPC)

ansible-playbook playbook/network-security/vpc.yml -i hosts/localhost --extra-vars=@extra-vars/base.yml

vpc.yml
# ansible-playbook playbook/network-security/vpc.yml -i hosts/localhost --extra-vars=@extra-vars/base.yml
---
- hosts: 127.0.0.1
  gather_facts: no
  connection: local

  tasks:
    - name: "make vpc for Prod"
      ec2_vpc:
        state: present
        cidr_block: 10.0.0.0/21
        resource_tags: { "Environment":"Prod",  "Name":"Prod {{ pj }}"  }
        subnets:
          - cidr: 10.0.0.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Public", "Name" : "Prod-Public" }
          - cidr: 10.0.1.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Private", "Name" : "Prod-Private" }
          - cidr: 10.0.2.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Secure", "Name":"Prod-Secure" }
          - cidr: 10.0.3.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Admin", "Name":"Prod-Admin" }
          - cidr: 10.0.4.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Public2", "Name":"Prod-Public2" }
          - cidr: 10.0.5.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Private2", "Name":"Prod-Private2" }
          - cidr: 10.0.6.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Secure2", "Name":"Prod-Secure2" }
          - cidr: 10.0.7.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Prod", "Tier" : "Admin2", "Name":"Prod-Admin2" }
        internet_gateway: True
        route_tables:
          - subnets:
              - 10.0.0.0/24
              - 10.0.1.0/24
              - 10.0.2.0/24
              - 10.0.3.0/24
              - 10.0.4.0/24
              - 10.0.5.0/24
              - 10.0.6.0/24
              - 10.0.7.0/24
            routes:
              - dest: 0.0.0.0/0
                gw: igw
        region: "{{ aws_default_region }}"

    - name: "make vpc for Stg"
      ec2_vpc:
        state: present
        cidr_block: 10.0.8.0/21
        resource_tags: { "Environment":"Stg", "Name":"Stg {{ pj }}" }
        subnets:
          - cidr: 10.0.8.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Public", "Name":"Stg-Public" }
          - cidr: 10.0.9.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Private", "Name":"Stg-Private" }
          - cidr: 10.0.10.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Secure", "Name":"Stg-Secure" }
          - cidr: 10.0.11.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Admin", "Name":"Stg-Admin" }
          - cidr: 10.0.12.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Public2", "Name":"Stg-Public2" }
          - cidr: 10.0.13.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Private2", "Name":"Stg-Private2" }
          - cidr: 10.0.14.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Secure2", "Name":"Stg-Secure2" }
          - cidr: 10.0.15.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Stg", "Tier" : "Admin2", "Name":"Stg-Admin2" }
        internet_gateway: True
        route_tables:
          - subnets:
              - 10.0.8.0/24
              - 10.0.9.0/24
              - 10.0.10.0/24
              - 10.0.11.0/24
              - 10.0.12.0/24
              - 10.0.13.0/24
              - 10.0.14.0/24
              - 10.0.15.0/24
            routes:
              - dest: 0.0.0.0/0
                gw: igw
        region: "{{ aws_default_region }}"

    - name: "make vpc for Dev"
      ec2_vpc:
        state: present
        cidr_block: 10.0.16.0/21
        resource_tags: { "Environment":"Dev", "Name":"Dev {{ pj }}" }
        subnets:
          - cidr: 10.0.16.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Public", "Name":"Dev-Public" }
          - cidr: 10.0.17.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Private", "Name":"Dev-Private"  }
          - cidr: 10.0.18.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Secure", "Name":"Dev-Secure" }
          - cidr: 10.0.19.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Admin", "Name":"Dev-Admin" }
          - cidr: 10.0.20.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Public2", "Name":"Dev-Public2" }
          - cidr: 10.0.21.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Private2", "Name":"Dev-Private2" }
          - cidr: 10.0.22.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Secure2", "Name":"Dev-Secure2" }
          - cidr: 10.0.23.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Dev", "Tier" : "Admin2", "Name":"Dev-Admin2" }
        internet_gateway: True
        route_tables:
          - subnets:
              - 10.0.16.0/24
              - 10.0.17.0/24
              - 10.0.18.0/24
              - 10.0.19.0/24
              - 10.0.20.0/24
              - 10.0.21.0/24
              - 10.0.22.0/24
              - 10.0.23.0/24
            routes:
              - dest: 0.0.0.0/0
                gw: igw
        region: "{{ aws_default_region }}"

    - name: "make vpc for Admin"
      ec2_vpc:
        state: present
        cidr_block: 10.0.24.0/21
        resource_tags: { "Environment":"Admin", "Name":"Admin {{ pj }}" }
        subnets:
          - cidr: 10.0.24.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Public", "Name":"Admin-Public"  }
          - cidr: 10.0.25.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Private", "Name":"Admin-Private" }
          - cidr: 10.0.26.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Secure", "Name":"Admin-Secure" }
          - cidr: 10.0.27.0/24
            az: "{{ dca }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Admin", "Name":"Admin-Admin" }
          - cidr: 10.0.28.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Public2", "Name":"Admin-Public2" }
          - cidr: 10.0.29.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Private2", "Name":"Admin-Private2" }
          - cidr: 10.0.30.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Secure2", "Name":"Admin-Secure2" }
          - cidr: 10.0.31.0/24
            az: "{{ dcb }}"
            resource_tags: { "Environment":"Admin", "Tier" : "Admin2", "Name":"Admin-Admin2" }
        internet_gateway: True
        route_tables:
          - subnets:
              - 10.0.24.0/24
              - 10.0.25.0/24
              - 10.0.26.0/24
              - 10.0.27.0/24
              - 10.0.28.0/24
              - 10.0.29.0/24
              - 10.0.30.0/24
              - 10.0.31.0/24
            routes:
              - dest: 0.0.0.0/0
                gw: igw
        region: "{{ aws_default_region }}"

hosts/localhost
[localhost]
127.0.0.1 ansible_python_interpreter=/usr/local/bin/python

extra-vars/base.yml
pj: 1stclass
aws_default_rds_type: db.t2.micro
aws_default_region: us-east-1 # N. Virgnia
aws_prefered_zone: us-east-1d
dca: us-east-1d
dcb: us-east-1e
aws_ec2_key: ec2-key-pair
aws_ami_id: prod-web

internal_cid: ["202.55.66.114/32", # new-analyzer
"182.19.143.105/32" # SG
]

dev_internal_cid: ["202.55.66.114/32", # new-analyzer
"182.19.143.105/32" # SG
]

jenkins_integrated_cid: ["202.55.66.114/32" # new-analyzer
]

  6. Move the authority to Rout53

Before you delegate DNS's authority from existing DNS to Route 53, create DNS record in Route 53 beforehand.
Create zone from web console for sakuhindb.com.
After it, execute following ansible.

playbook/network-security/route53.yml
# ansible-playbook playbook/network-security/route53.yml -i hosts/localhost --extra-vars=@extra-vars/base.yml
---
- hosts: 127.0.0.1
  gather_facts: no
  connection: local
  tasks:
    - route53:
        command: create
        zone: sakuhindb.com
        record: sakuhindb.com
        type: A
        ttl: 300
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        record: blog-sc.sakuhindb.com
        type: A
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        record: chat.sakuhindb.com
        type: A
        value: 157.7.136.190
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: common.sakuhindb.com
        value: 157.7.136.235
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.image.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.image-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.music.sakuhindb.com
        value: 158.199.143.203

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.product-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.video.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en.video-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: en2.sakuhindb.com
        value: 157.7.136.190
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: image.sakuhindb.com
        value: 157.7.136.235
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: image-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: img.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.blog-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.chat.sakuhindb.com
        value: 157.7.136.190
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.image.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.image-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.product-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: m.video.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: music.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: product-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: rss.sakuhindb.com
        value: 158.199.143.203

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: video.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: video-sc.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: www.sakuhindb.com
        value: 158.199.143.203
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: A
        record: www2.sakuhindb.com
        value: 157.7.136.190
        wait: yes

    - route53:
        command: create
        zone: sakuhindb.com
        type: MX
        record: sakuhindb.com
        value: mail.accessup.org
        wait: yes

After everything becomes O.K, go to your domain name registrer's web page and change NS server assignment to AWS's naming server.
  7. SSL Certificate

You have to have an mail account like admin@$DOMAINAME to show the ownership of the domain.
for 
sakuhindb.com
video.sakuhindb.com
en.image.sakuhidb.com
, you have to create SSL record for sakuhindb.com, *.sakuhindb.com and *.image.sakuhindb.com
  8. ec2 instance

Only initial time, create an instance from web screen.
Before creating web instance, create IAM role for webinstance, which will be used when you create a web instance.
  9. EFS

You have to open 2049 port

sudo yum -y install nfs-utils
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 file-system-id.efs.aws-region.amazonaws.com:/ efs-mount-point;

#Example
sudo mount -t nfs4 -o nfsvers=4.1,rsize=1048576,wsize=1048576,hard,timeo=600,retrans=2 fs-4e65c607.efs.us-east-1.amazonaws.com:/ /www

[ec2-user@aws-sakuhindb ~]$ df -k
Filesystem                                       1K-blocks    Used        Available Use% Mounted on
devtmpfs                                            498764      60           498704   1% /dev
tmpfs                                               509640       0           509640   0% /dev/shm
/dev/xvda1                                        30830568 1231096         29499224   5% /
fs-4e65c607.efs.us-east-1.amazonaws.com:/ 9007199254740992       0 9007199254740992   0% /www



# File transfer
rsync --rsync-path="rsync" -ave "ssh -c arcfour" /www/* www@prod-sakuhindb:/www
  10. Request to unlock the limitation of SES


  11. Change mail to use SES


  12. Change the code which is using REMOTE_ADDR

sudo yum install mod_extract_forwarded;
  13. Timezone of Amazon Linux


  14. Stop unnecessary process

sudo vi /etc/sysconfig/init
#ACTIVE_CONSOLES=/dev/tty[1-6]
ACTIVE_CONSOLES=/dev/tty1

shutdown -r now

Add comment to this article

5.
2017/01/17(Not up article)
Only the reviewer who wrote can read
6.
2017/01/07 "Phillipines > Boracay plan"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. common knowledge
2. Day 1
3. Day 2
4. Day 3

  1. common knowledge

1 Philippine Peso =
2.364 Japanese Yen
  2. Day 1


Leve home around 8:30

Departing
Fri, 13 Jan 2017 11:25
From: Singapore (SIN)
TR 2742

Arriving
Fri, 13 Jan 2017 15:10
To: Kalibo (Boracay) (KLO)
TR 2742

http://pare-ko.com/access-boracay-from-kalibo
Choose the company of van: php 250 with boat ticket
Go to Catclan jetty port terminal.
Buy tickets for
- boat: php 50
- environment and admission fee: php 75
- teriminal usage fee: php 100
Do registration in the port
Fill in Passenger’s Datasheet
Ride on trycicle php 100

hotel
https://www.google.co.jp/maps/place/Coast+Boracay/@11.9575351,121.9094118,14z/data=!4m5!3m4!1s0x33a53c21926a040f:0x45fdfd7742c49690!8m2!3d11.9575351!4d121.9269213

Whete beach street section 2 D moul
http://pare-ko.com/boracay-night

sand art
tip

Meature how much time we needed from airpot to hotel
  3. Day 2

2nd day
White beach
section 1 is most beautiful
Play using SUP
See sunset
http://pare-ko.com/whitebeach-boracay
http://pare-ko.com/boracay-sunsets
http://www.japph.com/kokunaikannkou%20/borakai.html
http://philippine-labo.com/boracay-travel-report-601
http://stworld.jp/feature/PH/boracay/

sunrise Bulabog Beach

sunset Diniwid Beach

D' Talipapa Market
https://www.google.co.jp/maps/dir/Coast+Boracay,+Station+2+Beach+Front,+Brgy.+Balabag,+Malay,+Boracay+Island,+Aklan,+Boracay,+5608,+Philippines/D*talipapa,+Malay,+Aklan,+Philippines/@11.958995,121.923043,16z/am=t/data=!4m13!4m12!1m5!1m1!1s0x33a53c21926a040f:0x45fdfd7742c49690!2m2!1d121.9269213!2d11.9575351!1m5!1m1!1s0x33a53c2168e50043:0xf8fad9d0d96225fe!2m2!1d121.9285896!2d11.9584144

D'mall
https://www.google.co.jp/maps/dir/Coast+Boracay,+Station+2+Beach+Front,+Brgy.+Balabag,+Malay,+Boracay+Island,+Aklan,+Boracay,+5608,+Philippines/Cyma+-+D+Mall,+D'Mall,+D'Mall+de+Boracay,+Boracay+Island,+Malay,+5608,+Aklan,+Philippines/@11.9598849,121.9233686,17z/data=!3m1!4b1!4m13!4m12!1m5!1m1!1s0x33a53c21926a040f:0x45fdfd7742c49690!2m2!1d121.9269213!2d11.9575351!1m5!1m1!1s0x33a53c228b887eb7:0x4a7cf03f17617b16!2m2!1d121.9254575!2d11.9619775

massage
  4. Day 3

Departing
Sun, 15 Jan 2017 15:50
From: Kalibo (Boracay) (KLO)
TR 2743

Arriving
Sun, 15 Jan 2017 19:30
To: Singapore (SIN)
TR 2743

Add comment to this article

7.
2016/12/25 "React > Memo of findings"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

Return only 1 element

Add comment to this article

8.
2016/12/22 "Meteor > meteor-example-collection"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. Purpose of meteor example collection
2. How to use it
3. Explanation of the files
4. You can ignore / Record: How to create this project for developer

    1. Purpose of meteor example collection

https://github.com/hikarine3/react-meteor-example-collection
This is project to guide beginners to start project making use of examples.
    2. How to use it

git clone git@github.com:hikarine3/react-meteor-example-collection.git;
cd react-meteor-example-collection;
meteor npm install;
meteor;
    3. Explanation of the files

./circle.ymlFor using Circle CI for CI
./clientFolder for client side
./client/main.htmlStart View from here
./client/main.jsStart JS from here
./client/main.lessStart CSS(Less) from here
./i18nFor Internatinalization
./i18n/en.i18n.jsonFor English
./i18n/fr.i18n.jsonFor France
./imports 
./imports/api 
./imports/api/generate-data.app-tests.js 
./imports/api/languages 
./imports/api/languages/methods.js 
./imports/api/listsa unit of domain logic
./imports/api/lists/lists.jsdefinition of this collection
./imports/api/lists/lists.tests.jsTests for the behavior of that collection
./imports/api/lists/methods.jsMethods related to this collection
./imports/api/lists/server 
./imports/api/lists/server/publications.jsall related publications
./imports/api/todos 
./imports/api/todos/incompleteCountDenormalizer.js 
./imports/api/todos/methods.js 
./imports/api/todos/server 
./imports/api/todos/server/publications.jsall related publications
./imports/api/todos/todos.jsDefinition of this collection
./imports/api/todos/todos.tests.js_Tests for the behavior of that collection 
./imports/startup 
./imports/startup/client 
./imports/startup/client/routes.jsxSet up all routes in the app
./imports/startup/server 
./imports/startup/server/fixtures.jsFill the DB with example data on startup
./imports/startup/server/index.jsImport server startup through a single index entry point
./imports/startup/server/register-api.js 
./imports/startup/server/reset-password-email.js 
./imports/startup/server/security.js 
./imports/ui 
./imports/ui/componentsAll reusable components in the application. It can be split by domain if there are many
./imports/ui/components/BaseComponent.jsx 
./imports/ui/components/ConnectionNotification.jsx 
./imports/ui/components/ConnectionNotification.less 
./imports/ui/components/LanguageToggle.jsx 
./imports/ui/components/LanguageToggle.less 
./imports/ui/components/ListHeader.jsx 
./imports/ui/components/ListHeader.less 
./imports/ui/components/ListHeader.tests.js 
./imports/ui/components/ListList.jsx 
./imports/ui/components/ListList.less 
./imports/ui/components/Loading.jsx 
./imports/ui/components/Loading.less 
./imports/ui/components/Message.jsx 
./imports/ui/components/Message.less 
./imports/ui/components/MobileMenu.jsx 
./imports/ui/components/TodoItem.jsx 
./imports/ui/components/TodoItem.less 
./imports/ui/components/TodoItem.tests.js 
./imports/ui/components/UserMenu.jsx 
./imports/ui/components/UserMenu.less 
./imports/ui/containers 
./imports/ui/containers/AppContainer.jsx 
./imports/ui/containers/ListPageContainer.jsx 
./imports/ui/helpers 
./imports/ui/helpers/errors.js 
./imports/ui/layoutsWrapper components for behaviour and visuals
./imports/ui/layouts/App.jsx 
./imports/ui/layouts/App.less 
./imports/ui/pagesEntry points for rendering used by the router
./imports/ui/pages/AuthPage.jsx 
./imports/ui/pages/AuthPage.less 
./imports/ui/pages/AuthPageJoin.jsx 
./imports/ui/pages/AuthPageSignIn.jsx 
./imports/ui/pages/ListPage.jsx 
./imports/ui/pages/ListPage.less 
./imports/ui/pages/NotFoundPage.jsx 
./imports/ui/pages/NotFoundPage.less 
./imports/ui/stylesheets 
./imports/ui/stylesheets/base.less 
./imports/ui/stylesheets/button.less 
./imports/ui/stylesheets/fade-transition.less 
./imports/ui/stylesheets/form.less 
./imports/ui/stylesheets/icon.less 
./imports/ui/stylesheets/link.less 
./imports/ui/stylesheets/nav.less 
./imports/ui/stylesheets/reset.less 
./imports/ui/stylesheets/util 
./imports/ui/stylesheets/util/fontface.less 
./imports/ui/stylesheets/util/helpers.less 
./imports/ui/stylesheets/util/text.less 
./imports/ui/stylesheets/util/typography.less 
./imports/ui/stylesheets/util/variables.less 
./imports/ui/stylesheets/utils.less 
./LICENSE 
./mobile-config.js 
./package.json 
./packages 
./packages/app-prod-security 
./packages/app-prod-security/package.js 
./packages/factory 
./packages/factory/dataset.js 
./packages/factory/factory-api.js 
./packages/factory/factory-tests.js 
./packages/factory/factory.js 
./packages/factory/package.js 
./packages/factory/README.md 
./packages/publication-collector 
./packages/publication-collector/package.js 
./packages/publication-collector/publication-collector-tests.js 
./packages/publication-collector/publication-collector.js 
./packages/publication-collector/README.md 
./public 
./public/apple-touch-icon-precomposed.png 
./public/favicon.png 
./public/font 
./public/font/OpenSans-Light-webfont.eot 
./public/font/OpenSans-Light-webfont.svg 
./public/font/OpenSans-Light-webfont.ttf 
./public/font/OpenSans-Light-webfont.woff 
./public/font/OpenSans-Regular-webfont.eot 
./public/font/OpenSans-Regular-webfont.svg 
./public/font/OpenSans-Regular-webfont.ttf 
./public/font/OpenSans-Regular-webfont.woff 
./public/icon 
./public/icon/todos.eot 
./public/icon/todos.svg 
./public/icon/todos.ttf 
./public/icon/todos.woff 
./public/logo-todos.svg 
./README.md 
./resources 
./resources/icons 
./resources/icons/icon-29x29.png 
./resources/icons/icon-29x29@2x.png 
./resources/icons/icon-36x36.png 
./resources/icons/icon-40x40.png 
./resources/icons/icon-40x40@2x.png 
./resources/icons/icon-48x48.png 
./resources/icons/icon-50x50.png 
./resources/icons/icon-50x50@2x.png 
./resources/icons/icon-57x57.png 
./resources/icons/icon-57x57@2x.png 
./resources/icons/icon-60x60.png 
./resources/icons/icon-60x60@2x.png 
./resources/icons/icon-72x72.png 
./resources/icons/icon-72x72@2x.png 
./resources/icons/icon-76x76.png 
./resources/icons/icon-76x76@2x.png 
./resources/icons/icon-96x96.png 
./resources/splash 
./resources/splash/splash-1024x768.png 
./resources/splash/splash-1024x768@2x.png 
./resources/splash/splash-1280x720.png 
./resources/splash/splash-200x320.png 
./resources/splash/splash-320x200.png 
./resources/splash/splash-320x480.png 
./resources/splash/splash-320x480@2x.png 
./resources/splash/splash-320x568@2x.png 
./resources/splash/splash-480x320.png 
./resources/splash/splash-480x800.png 
./resources/splash/splash-720x1280.png 
./resources/splash/splash-768x1024.png 
./resources/splash/splash-768x1024@2x.png 
./resources/splash/splash-800x480.png 
./server 
./server/main.js 
./tests 
./tests/lists.js 

    4. You can ignore / Record: How to create this project for developer


mkdir ~/tmp;
cd ~/tmp;
meteor create react-meteor-example-collection --full;

mkdir ~/git/github;
cd ~/git/github;
git clone https://github.com/hikarine3/react-meteor-example-collection;

cp -RH ~/tmp/react-meteor-example-collection/* ~/git/github/react-meteor-example-collection/;
cd ~/git/github/react-meteor-example-collection/;
git add .;
git commit .;
git push;

meteor update;
meteor remove standard-minifier-css;
git add .;
git commit .;
git push;

meteor npm install --save react-google-maps;
meteor npm install --save react-pure-render;
meteor npm install --save-dev babel-plugin-transform-class-properties
meteor npm install --save-dev babel-eslint eslint-config-airbnb eslint-plugin-import eslint-plugin-meteor eslint-plugin-react eslint-plugin-jsx-a11y eslint-import-resolver-meteor eslint
meteor npm install --save-dev babel-preset-meteor babel-preset-stage-0

Add comment to this article

9.
2016/11/19 No.3 "node.js > How to update your local node.js to the latest version"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

npm install -g n;
n --latest;
n latest;
npm update -g npm;
npm update -g;

Add comment to this article

10.
2016/11/19 No.2 "Singapore > Good place for office-less working in SG"
[Show only this article / Modify / Delete / Send trackback / Add to the shared category]

1. Jurong Regional Library, Jurong East

  1. Jurong Regional Library, Jurong East

http://www.jurongregionallibrary.com/
Mon - Sun : 10.00am - 9.00pm

Add comment to this article

=>Older article11. 2016/11/19 Where is Karaoke shop at which we can find Japanese karaoke songs?
Subscribe to RSS
RSS
Display Style of blog
List/Mobile(QRCode)
Term
Category
All
1.Japan
2.Atlassian's products
3.Self
4.Development of this site
5.Japanese comics
6.Japanese anime
7.Weekly hot news of Japanese culture
8.OP/ED/PV
9.Japanese game
10.Ranking
11.Japanese Comics (Manga)
12.Search Engine
13.Japanese drama
14.Japanese otaku culture
15.Programming
16.Ineternet world
17.Movie
18.C/C++
19.BerkeleyDB
20.Apache programming
21.Spam
22.Meteor
23.Marketing
24.Python
25.Scrum
26.JIRA
27.Git
28.CI
29.Jenkins
30.AWS
31.Operation
32.Singapore
33.Cloud
34.Mysql Cluster
35.DevOps
36.Bitbucket
37.Xamarin
38.Good and new
39.Monitoring
40.node.js
41.React
42.Phillipines
43.Hiring
44.Python
45.2017
Sayings from S-Cry-Ed

Rule in this world is speed. Even stupid person can write cool novel if he can spend 20 years for it.

If someone helped me, I will help him in return, which is my rule.

To become stronger, consider what is cowardliest thinking. And rebel against the thinking, which will make you stronger.



I am Japanese but working for some English sites.

Doctor Job Career
Nurse Job Career
Top Page top MetaSeachJP Works