Skip to content

Instantly share code, notes, and snippets.

View renormalist's full-sized avatar

Steffen Schwigon renormalist

View GitHub Profile
#Properties Config file
#Thu May 26 19:50:15 CEST 2016
server-name=LANPARTY PE 1
server-port=19132
gamemode=0
max-players=50
spawn-protection=16
white-list=off
enable-query=on
enable-rcon=on
{
"version": "1.6",
"api_version": "2.0.0",
"build": 25,
"date": 1463785622,
"details_url": "https://github.com/PocketMine/PocketMine-MP",
"myversion" : "0.14.0",
"download_url": "https://dl.bintray.com/pocketmine/PocketMine/PocketMine-MP_1.6dev-23_6ba0abf5_API-2.0.0.phar"
}
@renormalist
renormalist / gist:2416828
Created April 18, 2012 21:45
Use dpath to filter metacpan query results
curl -s -XPOST http://api.metacpan.org/release/_search -d'{ "query": { "match_all": {} }, "size": 999, "fields": ["download_url"], "filter": { "term": { "distribution": "MooseX-NonMoose" } } }' | dpath -i json -o flat '//download_url'
@renormalist
renormalist / gist:2658305
Created May 11, 2012 08:16
I'm in your Gist. Well, not - I'm in mine.
#! /usr/bin/env perl
use Test::More;
plan tests => 2;
ok (1, "affe");
ok (1, "zomtec");
#! /usr/bin/env perl
use Test::More;
plan tests => 2;
ok (1, "affe");
ok (1, "zomtec");
# Approaching the metacpan API with DPath:
# example from https://github.com/CPAN-API/cpan-api/wiki/API-docs extended:
curl -s -XPOST http://api.metacpan.org/v0/author/SCHWIGON?join=release -d '
{
"query": {
"bool": {
"should": [{
"term": {