てすてす
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
class Hash | |
def symbolize_keys | |
self.each_with_object({}){|(k,v),memo| memo[k.to_s.to_sym]=v} | |
end | |
end | |
facter_lib = ENV['SERVERSPEC_ENV'] == 'development' ? | |
'/vagrant/modules/heteml/lib' : '/usr/lib/puppuet/lib' | |
facts = backend.run_command( |
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 | |
# kuroda | |
list=$1 | |
para=5 | |
export dl_path=~/music | |
mkdir -p "$dl_path" | |
log="/tmp/music_dl.log" | |
error_log="/tmp/music_dl_error.log" |
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
:black_large_square: :bomb: :black_large_square: | |
:bomb: :runner: :bomb: | |
:black_large_square: :bomb: :black_large_square: |
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
# refs: https://wiki.jenkins-ci.org/display/JENKINS/Installing+Jenkins+on+Red+Hat+distributions | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "CentOS6.4-x86-64" | |
config.vm.box_url = "http://developer.nrel.gov/downloads/vagrant-boxes/CentOS-6.4-x86_64-v20130427.box" |
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
CLOUDFRONT() CLOUDFRONT() | |
NAME | |
cloudfront - | |
DESCRIPTION | |
AVAILABLE COMMANDS | |
o create-cloud-front-origin-access-identity |
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
my $ec2 = Net::Amazon::EC2->new( | |
AWSAccessKeyId => $config->{AWSAccessKeyId}, | |
SecretAccessKey => $config->{SecretAccessKey}, | |
region => $config->{region}, | |
) or die; | |
my ($instance) = | |
grep { | |
grep { $_->value eq $name } | |
grep { $_->key eq '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
[program:growthforecast] | |
command = plenv exec growthforecast.pl --data-dir /home/growthforecast/data | |
user = growthforecast | |
environment = HOME=/home/growthforecast | |
directory = /home/growthforecast | |
process_name = %(program_name)s | |
redirect_stderr = false |
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
sub _build_volume_name { | |
my $self = shift; | |
my $name_tag = $self->ec2->describe_tags( | |
"Filter.Name" => [ "resource-id", "key" ], | |
"Filter.Value" => [ $self->ebs->volume_id, "Name" ] | |
) or croak "Target EBS requires 'Name' tag: ". $self->ebs->volume_id; | |
return $name_tag->[0]->value; | |
} |