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
| 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 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 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
| #!/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
| #!/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 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
| 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
| sudo sed -i "/#\$nrconf{restart} = 'i';/s/.*/\$nrconf{restart} = 'a';/" /etc/needrestart/needrestart.conf | |
| sudo apt-get update -y | |
| sudo apt-get install gcc -y | |
| sudo apt-get install make -y | |
| sudo apt-get install zip -y | |
| sudo apt-get install docker.io -y | |
| sudo apt-get install tree -y | |
| #sudo adduser ubuntu docker | |
| sudo usermod -aG docker ubuntu | |
| newgrp 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
| # docker build -t myorg/myapp:dev . | |
| FROM myorg/perl:5.38 | |
| ADD . /app | |
| WORKDIR /app | |
| RUN cpanm --notest \ | |
| JSON Spreadsheet::Read HTML::TableExtract Imager::File::PNG \ | |
| Spreadsheet::ParseExcel Spreadsheet::Engine DBD::CSV Data::SpreadPagination \ | |
| YAML Dancer Template Text::CSV Spreadsheet::ParseXLSX \ | |
| DBIx::HTML Games::Sudoku::Component Text::FIGlet JavaScript::Minifier Encode::Wechsler | |
| EXPOSE 3000 |