This file contains 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
#!/bin/sh | |
echo "User Data start" | |
yum -y update | |
unalias cp | |
cp -f -p /usr/share/zoneinfo/Japan /etc/localtime | |
cat << _EOT_ > /etc/sysconfig/clock |
This file contains 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
--- | |
- hosts: | |
- localhost | |
connection: local | |
tasks: | |
- name: update all packages | |
yum: name=* state=latest | |
become: yes |
This file contains 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": "2012-10-17", | |
"Statement": [ | |
{ | |
"Action": [ | |
"logs:*" | |
], | |
"Effect": "Allow", | |
"Resource": "*" | |
} |
This file contains 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
<div class="page-header"> | |
<h1>問い合わせ確認画面</h1> | |
</div> | |
<%= form_for @inquiry, :url => inquiry_thanks_path do |f| %> | |
<table class="table"> | |
<tr> | |
<th>名前</th> | |
<td> | |
<%= f.hidden_field :name %> |
This file contains 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
var AWS = require('aws-sdk'); | |
var mysql = require('mysql'); | |
// KMSにより暗号化したMySQL接続用のパスワード文字列 | |
var kmsEncyptedToken = "CiC*********(KMSで暗号化したMySQL接続用のパスワード文字列)***********UI="; | |
// 接続先のMySQLサーバ情報 | |
var mysql_host = "example-rds-mysql-server.carvmoii2uds.ap-northeast-1.rds.amazonaws.com"; | |
var mysql_user = "example_user"; | |
var mysql_dbname = "exampledb"; |
This file contains 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
[ec2-user@example-server ~]$ mysql -u example_user -p -h example-rds-mysql-server.carvmoii2uds.ap-northeast-1.rds.amazonaws.com | |
Enter password: | |
Welcome to the MySQL monitor. Commands end with ; or \g. | |
Your MySQL connection id is 15 | |
Server version: 5.6.27-log MySQL Community Server (GPL) | |
Copyright (c) 2000, 2015, Oracle and/or its affiliates. All rights reserved. | |
Oracle is a registered trademark of Oracle Corporation and/or its | |
affiliates. Other names may be trademarks of their respective |
This file contains 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
$ aws s3 sync s3://test-web-data-store/test/ /home/ec2-user/ | |
download: s3://test-web-data-store/test/test2.txt to ./test2.txt | |
download: s3://test-web-data-store/test/test.txt to ./test.txt | |
$ |
This file contains 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
$ vi push_salesforce_chatter_message.sh |
This file contains 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
[ec2-user@salesforce-api-test ~]$ rpm -qa | grep openssl | |
openssl-1.0.1k-15.93.amzn1.x86_64 | |
[ec2-user@salesforce-api-test ~]$ |
This file contains 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
package main | |
import ( | |
"fmt" | |
"os" | |
"net/http" // チャットAPIコール用 | |
"net/url" // チャットAPIコール用 | |
"strings" // チャットAPIコール用 | |
"bytes" // LINE Messaging APIコール用 | |
"encoding/json" // JSONパース用 |
NewerOlder