Filter a .1pux export down to one or more selected vaults and write a new .1pux containing only those vaults.
Quickstart:
python3 filter_1pux_vault.py /path/to/export.1pux| apiVersion: v1 | |
| data: | |
| # Docker for Mac uses vpnkit to handle LoadBalancer ingresses, but it doesn't show an external IP, so the default | |
| # ArgoCD health check for the ingress service doesn't show as Healthy. This custom health check fixes that issue. | |
| resource.customizations: | | |
| extensions/Service: | |
| health.lua: | | |
| hs = {} | |
| hs.status = "Progressing" | |
| if obj.status ~= nil then |
| package main | |
| import ( | |
| ui "github.com/gizak/termui" // use ui as an alias | |
| "strconv" | |
| "fmt" | |
| "math/rand" | |
| "container/ring" | |
| ) |
| name: Handle the data changed event | |
| description: This snippet shows how to register a handler for the data-changed event. | |
| author: deinspanjer | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#setup").click(() => tryCatch(setup)); | |
| $("#register-data-changed-handler").click(() => tryCatch(registerDataChangedHandler)); |
| name: Create a table | |
| description: Creates a table with four columns and seven rows. | |
| author: deinspanjer | |
| host: EXCEL | |
| api_set: {} | |
| script: | |
| content: | | |
| $("#create-table").click(createTable); | |
| $("#delete-rows").click(deleteRows); |
| aws ec2 describe-spot-price-history --instance-types $(aws ec2 describe-spot-price-history help | sed -En '/Where valid values are:/,/^$/s/^ +([^.]+[.])/\1/p') --start-time=$(echo "$(date +%s) - (4 * 7 * 24 * 60 * 60)" | bc) --product-descriptions="Linux/UNIX (Amazon VPC)" --query 'SpotPriceHistory[*].{ts:Timestamp, az:AvailabilityZone, price:SpotPrice, it:InstanceType}' --filters Name=spot-price,Values="0.0*" > /tmp/ec2-spot-prices.txt |
| /* | |
| * Available context bindings: | |
| * COLUMNS List<DataColumn> | |
| * ROWS Iterable<DataRow> | |
| * OUT { append() } | |
| * FORMATTER { format(row, col); formatValue(Object, col) } | |
| * TRANSPOSED Boolean | |
| * plus ALL_COLUMNS, TABLE, DIALECT | |
| * | |
| * where: |
| package com.example; | |
| import com.example.config.DemoConfig; | |
| import org.springframework.beans.factory.annotation.Autowired; | |
| import org.springframework.boot.ApplicationArguments; | |
| import org.springframework.boot.ApplicationRunner; | |
| import org.springframework.boot.SpringApplication; | |
| import org.springframework.boot.autoconfigure.SpringBootApplication; | |
| @SpringBootApplication |
| package main_test | |
| /* | |
| To test: | |
| * `go get github.com/docker/docker` | |
| * `go get github.com/smartystreets/goconvey/convey` | |
| * Edit the constants |
| package a | |
| import "fmt" | |
| type Sayer interface { | |
| Say() string | |
| } | |
| type Formal struct{} |