Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
Hi there!
The docker cheat sheet has moved to a Github project under https://github.com/wsargent/docker-cheat-sheet.
Please click on the link above to go to the cheat sheet.
| #!/bin/bash | |
| # Usage: slackpost <token> <channel> <message> | |
| # Enter the name of your slack host here - the thing that appears in your URL: | |
| # https://slackhost.slack.com/ | |
| slackhost=PUT_YOUR_HOST_HERE | |
| token=$1 |
| FROM centos | |
| RUN curl -L http://www.opscode.com/chef/install.sh | bash | |
| ADD ./chef-repo /root/chef-repo | |
| RUN cd /root/chef-repo; chef-solo -c solo.rb -j ./nodes/localhost.json |
| #!/usr/bin/env python | |
| # -*- coding: utf-8 -*- | |
| def archive_to_bytes(archive): | |
| def to_seconds(s): | |
| SECONDS_IN_A = { | |
| 's': 1, | |
| 'm': 1 * 60, | |
| 'h': 1 * 60 * 60, |
$ vagrant -v
Vagrant version 1.1.5
| #!/usr/bin/env perl | |
| use strict; | |
| use warnings; | |
| use HTTP::Request::Common; | |
| use HTTP::Message::PSGI; | |
| use Plack::Test; | |
| use Plack::Builder; | |
| use Benchmark qw/cmpthese timethese/; | |
| use File::Spec; |
| package MyApp::DB; | |
| use 5.016; | |
| use warnings; | |
| use utf8; | |
| use Time::Piece::Plus; | |
| use Class::Method::Modifiers; | |
| use Teng::Schema::Loader; | |
| use MyApp::DB::ResultSet; | |
| use MyApp::Exception; |
| package Amon2::Plugin::Model; | |
| use strict; | |
| use warnings; | |
| use Module::Find; | |
| use Try::Tiny; | |
| our $VERSION = '0.01'; | |
| sub init { | |
| my ($class, $context_class, $config) = @_; |