Skip to content

Instantly share code, notes, and snippets.

View gist:27c6c4019feb827418bbf445b5d3eee9
{
"properties": {
"email": {
"type": "string"
},
"message": {
"type": "string"
},
"subject": {
"type": "string"
View cowsay
cowsay -l | grep -v "^Cow" | tr ' ' '\n' | xargs -I{} cowsay -f{} I am a {}
View contact.html
<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 -->
View file0.txt
#!/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'`
View file0.txt
- hosts: all
sudo: yes
gather_facts: no
vars:
pkg: ntp
tasks:
- name: yum clean
shell: yum clean all
@hawaku
hawaku / file0.txt
Created Nov 8, 2014
AWS RDSの情報をAWS CLIで一括取得する ref: http://qiita.com/treeclad/items/312657d3da34b69926b7
View file0.txt
#/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[@]}
@hawaku
hawaku / dateloop.sh
Created Mar 11, 2014
linuxのシェルスクリプトで日付でループする ref: http://qiita.com/treeclad/items/2f0a8454bbead2f070d2
View dateloop.sh
#!/bin/sh
#
# YYYY-MM-DD
#
STARTDATE=2014-02-20
ENDDATE=2014-03-02
CURRENTDATE=$STARTDATE
while [ 1 ] ; do
@hawaku
hawaku / dynamic-dynamodb
Created Mar 10, 2014
EC2にDynamic-DynamoDBをインストールする ref: http://qiita.com/treeclad/items/138da162cf8bb9fecf08
View dynamic-dynamodb
#!/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
You can’t perform that action at this time.