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
=begin | |
f = open("list.txt") | |
f.each {|line| | |
str = line.split(" -- ").each {| hoge| | |
p hoge.scan(/[A-Z]+/) | |
} | |
#p str.scan(/[\A-Z]+/)[1] | |
} | |
f.close |
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
# もしパスワードが以下の通りだったらBase64でencodeしておいたらどうだろうか、という設定 | |
# $ echo 'Kusagae1234' | base64 | |
# S3VzYWdhZTEyMzQK | |
#------------------------------------- | |
#cloud-config | |
runcmd: | |
- [ sh, -c, "echo 'S3VzYWdhZTEyMzQK' | base64 -d | passwd --stdin ec2-user" ] | |
- [ sh, -c, "sed -i -e 's/NOPASSWD://g' /etc/sudoers.d/cloud-init" ] |
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
企画書 | |
#タイトル | |
男装、女装の入学式 | |
〜身体と心の性について考えながら、まず学生として見た目から入ってみませんか?〜 | |
#概要 | |
男らしさ、女らしさという固定概念から自分を解き放ち、自分をよりよく理解しより良い人生を歩む為のセッション・イベント | |
#ターゲット | |
独身・既婚問わず自分の身体の性とは違う性に興味がある人(性的趣向は問いませんが出会い系イベントではありません。) |
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
企画書 | |
#タイトル | |
大人の保健室へようこそ。IT業界と女の"性" | |
〜先生!生理が来ないです!どうしたらいいですか?〜 | |
#概要 | |
女性率1割のIT業界で頑張っている女性が、女性の性を理解し、より良い人生を歩む為のセッション | |
#ターゲット | |
独身・既婚問わずIT業界に関わりがある女性という性に産まれた人(性的趣向は問いません) |
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
cf = AWS::CloudFront.new | |
cf.client.list_distributions.items.each do | item | | |
puts "Delete CloudFront Web: #{item.id}" | |
cf.client.delete_distribution(:id => item.id) | |
end | |
cf.client.list_streaming_distributions.items.each do | item | | |
puts "Delete CloudFront Streaming : #{item.id}" | |
cf.client.delete_streaming_distribution(:id => item.id) |
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
r53 = AWS::Route53.new | |
r53.hosted_zones.each do | zone | | |
puts "Delete Host zone: #{zone.name}" | |
zone.resource_record_sets.each do | record | | |
if !record.type.include?("NS") and !record.type.include?("SOA") | |
puts "- Record: #{record.name} - #{record.type}" | |
record.delete | |
end | |
end |
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
# -*- encoding: utf-8 -*- | |
require 'aws-sdk' | |
AWS.config({ | |
:access_key_id => '', | |
:secret_access_key => '' | |
}) | |
support = AWS::Support.new | |
support.client.describe_cases(:language => 'ja', :include_resolved_cases => true).cases.each do | ca | |
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
# -*- encoding: utf-8 -*- | |
require 'rss' | |
require 'json' | |
rss_array = Array.new | |
alsa = 'http://aws.amazon.com/rss/amazon-linux-ami.rss' | |
rss = RSS::Parser.parse(alsa) | |
rss_array = ["description", "link", "title"] | |
rss.items.each do |item| | |
rss_array.push(item.description, item.link, item.title) |
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
# -*- encoding: utf-8 -*- | |
require 'aws-sdk' | |
AWS.config({ | |
:access_key_id => '', | |
:secret_access_key => '' | |
} | |
) | |
ec2 = AWS::EC2::new |
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": [ | |
{ | |
"Effect": "Allow", | |
"Action": "*", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Deny", |