This file contains hidden or 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
sudo yum install -y yum-utils | |
sudo yum-config-manager --add-repo https://rpm.releases.hashicorp.com/AmazonLinux/hashicorp.repo | |
sudo yum -y install terraform | |
sudo yum -y install tree | |
sudo yum install -y docker |
This file contains hidden or 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 perl | |
use strict; | |
use warnings; | |
use App::Prove; | |
my $app = App::Prove->new; | |
$app->process_args( @ARGV, '-l' ); | |
exit( $app->run ? 0 : 1 ); |
This file contains hidden or 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 ruby | |
limit = 2 | |
key = 'none' | |
message = File.read( ARGV[0] ) | |
tokens = message.split() | |
buckets = { 'what' => [], 'why' => [], key => [] } | |
tokens.each do |token| | |
t = token.downcase |
This file contains hidden or 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 python | |
import re, sys | |
limit = 2 | |
key = 'none' | |
file = open( sys.argv[1], 'r' ) | |
message = file.read() | |
tokens = message.split() | |
buckets = { 'what': [], 'why': [], key: [] } |
This file contains hidden or 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 DBIx::Object; | |
use base 'DBI'; | |
package DBIx::Object::st; | |
use base 'DBI::st'; | |
package DBIx::Object::db; | |
use base 'DBI::db'; | |
use Moose; |
This file contains hidden or 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
alias display='perl -MHTML::Display -MCGI=img -MCwd=abs_path -e"display img{src=>abs_path(shift)}"' |
This file contains hidden or 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 Tie::Scalar::OK; | |
use strict; | |
use base qw(Tie::Scalar); | |
use vars qw($VERSION); | |
$VERSION = '1.08'; | |
sub TIESCALAR { | |
my $class = shift; |
This file contains hidden or 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
alias purl='__purl() { curl "$@" | perl; unset -f __purl; }; __purl' |
This file contains hidden or 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
grep package t/lib/Test/Strategy/*.pm | perl -F'\s' -lape's/(:package|;)//for@F;$_=sprintf" * [%s](/%s)",reverse@F' |
This file contains hidden or 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 HTML::Auto; | |
use strict; | |
use warnings; | |
use Exporter 'import'; | |
our @EXPORT = qw( html head title body h1 p br table Tr td ); | |
our $AUTOLOAD; | |
sub new { bless {}, shift } | |
sub AUTOLOAD { | |
my $self = ref($_[0]) eq __PACKAGE__ ? shift : undef; | |
my $attr = ref($_[0]) eq 'HASH' ? shift : {}; |