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
{ "type": "add", | |
"id": "tt0484562", | |
"fields": { | |
"title": "The Seeker: The Dark Is Rising", | |
"directors": ["Cunningham, David L."], | |
"genres": ["Adventure","Drama","Fantasy","Thriller"], | |
"actors": ["McShane, Ian","Eccleston, Christopher","Conroy, Frances", | |
"Crewson, Wendy","Ludwig, Alexander","Cosmo, James", | |
"Warner, Amelia","Hickey, John Benjamin","Piddock, Jim", | |
"Lockhart, Emma"] |
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@git-client crontab-to-csv]$ vi crontab_to_csv.sh | |
#!/bin/bash | |
crontab_csv_file="crontab.csv" | |
echo "cron_host,cron_user,minutes,hours,days,months,day_of_the_week,cron_name,cron_parameter" > $crontab_csv_file | |
crontab -l | grep -v ^# | grep -v ^$ | grep -v MAILTO | sed -e "s/ */ /g" -e "s/ /,/1" -e "s/ /,/1" -e "s/ /,/1" -e "s/ /,/1" -e "s/ /,/1" | awk '{$0="'`hostname -s`','$USER'," $0 "";print}' >> $crontab_csv_file | |
if [ -f $crontab_csv_file ] ; then | |
cat $crontab_csv_file |
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
日本語 (Japanese) | |
Amazon WorkSpaces をご利用のお客様へ | |
お客様の Amazon WorkSpace が管理者によって作成されました。さっそく以下の手順に従って、WorkSpace のご利用を開始してください。 | |
1. ユーザーのプロファイルを入力し、次のリンクから WorkSpaces クライアントをダウンロードします。 https://***************.awsapps.com/auth/#invite:token=********************-**************************************************_*****************************************************************************************&redirect_uri=https://clients.amazonworkspaces.com/&client_id=************** | |
2. クライアントを起動し、次の登録コードを入力します。 12345+678912 |
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 ~]$ vi /home/ec2-user/.bashrc | |
# .bashrc | |
# Source global definitions | |
if [ -f /etc/bashrc ]; then | |
. /etc/bashrc | |
fi | |
# User specific aliases and functions | |
### Sandbox環境へ接続する場合のAPIエンドポイント |
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/bash | |
## スクリプトの実行方法の表示する | |
function print_usage() { | |
echo "Usage: $0 [DiskPartitionName]" | |
echo " $0 [--help]" | |
echo " $0 [--debug] [DiskPartitionName]" | |
return 0 | |
} |
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": [ | |
"autoscaling:Describe*", | |
"cloudwatch:*", | |
"logs:*", | |
"sns:*" | |
], |
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 ~]$ vi /home/ec2-user/.bashrc | |
(末尾に以下を追加する) | |
### Sandbox環境へ接続する場合のAPIエンドポイント | |
##export DATABASEDOTCOM_HOST="test.salesforce.com" | |
### 本番環境へ接続する場合のAPIエンドポイント | |
export DATABASEDOTCOM_HOST="login.salesforce.com" | |
export DATABASEDOTCOM_CLIENT_ID="前述の「コンシューマ鍵」(OAuthコンシューマキー)を記載します。" | |
export DATABASEDOTCOM_CLIENT_SECRET="前述の「コンシューマの秘密」(OAuthコンシューマシークレット)を記載します。" |
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
# sed -i -e "s/HOSTNAME=localhost.localdomain/HOSTNAME=salesforce-api-test/g" /etc/sysconfig/network | |
# yum -y update | |
# yum -y install git | |
# yum -y install php |