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
param appPrefix string = '${uniqueString(resourceGroup().id)}' | |
param logAnalyticsWorkspaceName string = 'log-${appPrefix}' | |
param storageAccountName string = 'st${appPrefix}' | |
param location string = resourceGroup().location | |
resource logAnalyticsWorkspace 'Microsoft.OperationalInsights/workspaces@2020-08-01' = { | |
name: logAnalyticsWorkspaceName | |
location: location | |
properties: { | |
sku: { |
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
{ | |
"properties": { | |
"email": { | |
"type": "string" | |
}, | |
"message": { | |
"type": "string" | |
}, | |
"subject": { | |
"type": "string" |
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
<html> | |
<head> | |
<title>Contact</title> | |
<script src="https://code.jquery.com/jquery-1.11.3.min.js"></script> | |
<script src="https://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"></script> | |
<script src="contact.js"></script> | |
<!-- Special version of Bootstrap that only affects content wrapped in .bootstrap-iso --> |
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
cowsay -l | grep -v "^Cow" | tr ' ' '\n' | xargs -I{} cowsay -f{} I am a {} |
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 | |
SrcProfile=hoge | |
SrcRoleName=hoge_role | |
DestProfile=moge | |
DestRoleName=mode_role | |
getrole=`aws --profile $SrcProfile iam get-role --role-name $SrcRoleName` | |
assume=`echo $getrole|jq '.Role.AssumeRolePolicyDocument'` |
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: all | |
sudo: yes | |
gather_facts: no | |
vars: | |
pkg: ntp | |
tasks: | |
- name: yum clean | |
shell: yum clean all |
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 | |
# --profileで指定するプロファイル名 | |
profile_list=`cat ~/.aws/config |grep profile|cut -d ' ' -f 2|sed 's/]//'` | |
for profile in ${profile_list[@]} | |
do | |
region_list=`aws --profile ${profile} ec2 describe-regions|jq -r '.Regions[].RegionName'` | |
for region in ${region_list[@]} |
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 | |
# | |
# YYYY-MM-DD | |
# | |
STARTDATE=2014-02-20 | |
ENDDATE=2014-03-02 | |
CURRENTDATE=$STARTDATE | |
while [ 1 ] ; do |
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
#!/usr/bin/env bash | |
### BEGIN INIT INFO | |
# Provides: dynamic-dynamodb | |
# Required-Start: $remote_fs $syslog | |
# Required-Stop: $remote_fs $syslog | |
# Default-Start: 2 3 4 5 | |
# Default-Stop: 0 1 6 | |
### END INIT INFO | |
NAME=dynamic-dynamodb |