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 : | |
def add_hosted_zone(name, &block) | |
new_zone = HostedZone.new(name, [], &block).result | |
zone = @result.hosted_zones.find { |z| z.name == new_zone.name } | |
if zone then | |
zone.vpcs.concat(new_zone.vpcs) | |
zone.resource_record_sets.concat(new_zone.resource_record_sets) | |
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
mahiru:~ kenichi$ brew cask install macvim-kaoriya | |
==> Caveats | |
Cask macvim-kaoriya installs files under "/usr/local". The presence of such | |
files can cause warnings when running "brew doctor", which is considered | |
to be a bug in homebrew-cask. | |
Note that homebrew also provides a compiled macvim Formula that links its | |
binary to /usr/local/bin/mvim. And the Cask MacVim also does. It's not | |
recommended to install both the Cask MacVim KaoriYa and the Cask MacVim | |
and the Formula of MacVim. |
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/perl | |
use strict; | |
use warnings; | |
use utf8; | |
use Encode qw(encode_utf8 decode_utf8); | |
use JSON; | |
use File::Slurp; | |
use LWP::Simple; |
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 : | |
Vagrant.configure(2) do |config| | |
config.vm.box = "centos6.6" | |
config.vm.provision "ansible" do |ansible| | |
ansible.playbook = "playbook.yml" | |
ansible.verbose = "v" | |
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
diff --git a/ish.c b/ish.c | |
index eadfecb..dd7537f 100644 | |
--- a/ish.c | |
+++ b/ish.c | |
@@ -52,7 +52,7 @@ char *filename = "file.ish"; | |
int mline = 0; | |
int lfflag = 0; | |
-FILE *opath = stdout; | |
+FILE *opath; |
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
package MyObj; | |
use strict; | |
use warnings; | |
sub new { | |
my $class = shift; | |
return bless { name => shift }, $class; | |
} | |
sub method { |
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
package MySub; | |
use strict; | |
use warnings; | |
use MySub2; | |
sub callback { | |
print "in MySub::callback($_[0])\n"; | |
} |
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
package main | |
import ( | |
"fmt" | |
"reflect" | |
"time" | |
"strconv" | |
"regexp" | |
) |
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 | |
# Modified by Stan Schwertly to download locally rather than to send to Posterous. | |
# Github: http://github.com/Stantheman/Twitpic-Backup | |
# Copyright 2010 Tim "burndive" of http://burndive.blogspot.com/ | |
# This software is licensed under the Creative Commons GNU GPL version 2.0 or later. | |
# License informattion: http://creativecommons.org/licenses/GPL/2.0/ | |
# This script is a derivative of the original, obtained from here: |
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
package main | |
import ( | |
"fmt" | |
"log" | |
"net/http" | |
"github.com/skratchdot/open-golang/open" | |
) |