Skip to content

Instantly share code, notes, and snippets.

Aaron Helton aaronhelton

Block or report user

Report or block aaronhelton

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View pymarcsample.json
[
{
"leader": " 22 4500",
"fields": [
{
"000": "00000nam 22000255a 450|"
},
{
"001": "1653680"
},
View list_escwa
use strict;
use warnings;
use feature 'say';
use lib '.\modules';
use MARC;
my $foo = MARC::Set->new;
$foo->import_file ( 'marc21', 'e_escwa_all.exp' );
@aaronhelton
aaronhelton / powershelldocker.md
Last active Dec 20, 2016
Windows PowerShell Docker Commands
View powershelldocker.md

Delete all of your collected docker images

Assumes your docker images list looks like:

<none> <none> 2b07576f6f81 ...

What you need from this list is 2b07576f6f81, which is the ID.

PS C:\> docker images | Select-String -Pattern '<none>' | foreach-object {docker rmi $_.tostring().split()[28]}

View nested_filter_agg_by_body_and_session.json
{
"size": 0,
"aggs": {
"filtered": {
"filter": {
"nested": {
"path" : "votes",
"query": {
"bool": {
"must": [{
View aggregate_by_date_histogram.json
{
"size": 0,
"aggs": {
"filtered": {
"filter": {
"match_all": {}
},
"aggs": {
"root": {
"date_histogram": {
View aggregate_by_body_and_session.json
{
"size": 0,
"aggs": {
"filtered": {
"filter": {
"match_all": {}
},
"aggs": {
"root": {
"terms": {
View aggregate_by_country_and_vote.json
{
"size": 0,
"aggs": {
"filtered": {
"filter": {
"match_all": {}
},
"aggs": {
"root": {
"nested": {
View a67_facet.json
{
"took" : 73,
"timed_out" : false,
"_shards" : {
"total" : 5,
"successful" : 5,
"failed" : 0
},
"hits" : {
"total" : 338,
View term.json
{
"session" : "67",
"meeting" : "A/67/PV.61",
"symbol" : "A/RES/67/201",
"results" : {
"NV" : "7",
"A" : "5",
"Y" : "172",
"Total" : "193",
"N" : "9"
You can’t perform that action at this time.