Skip to content

Instantly share code, notes, and snippets.

@mickeyn
mickeyn / gist:8bf9643724e86bd50398721bee3e981c
Created April 28, 2016 19:21
'indexed' decision flow for review
note the use of different terms: file, module (they mean different things)
YES - file/module is set to indexed:1
NO - file/module is set to indexed:0
current flow for set_indexed(name):
1. YES (file): any module in the file is listed in 'provides' (META)
2. NO (file + all modules): file is one of:
[info] *** Request 2 (0.500/s) [12758] [Sat May 7 02:32:26 2016] ***
[debug] Path is "user/favorite"
[debug] "POST" request for "user/favorite" from "127.0.0.1"
[debug] Query Parameters are:
.-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------.
| Parameter | Value |
+-------------------------------------+--------------------------------------------------------------------------------------------------------------------------------------------------------+
| access_token | testing |
'-------------------------------------+---------------------
@mickeyn
mickeyn / version_mismatch.pl
Created August 7, 2016 05:37
find filename / meta.yml version mismatches
use strict;
use warnings;
use MetaCPAN::Client;
my $mcpan = MetaCPAN::Client->new( version => 'v1' );
my $releases = $mcpan->all('releases', {
es_filter => {
terms => { status => [qw< latest >] }
},
fields => [qw< author version download_url distribution >],
>> git reset --hard 963f35260bb21c347064984f19f566441d0386ca
HEAD is now at 963f352 include web docker-compose file
>> fig down
ERROR: The Compose file './docker-compose.yml' is invalid because:
'include' does not match any of the regexes: '^x-'
You might be seeing this error because you're using the wrong Compose file version. Either specify a supported version (e.g "2.2" or "3.3") and place your service definitions under the `services` key, or omit the `version` key and place your service definitions at the root of the file to use version 1.
For more on the Compose file format versions, see https://docs.docker.com/compose/compose-file/