Skip to content

Instantly share code, notes, and snippets.

@amaczuga
amaczuga / registry_clean.sh
Created March 12, 2019 17:52
registry_clean
#!/bin/sh
docker run --rm anoxis/registry-cli -r https://example.com:5000 --dry-run --delete --keep-by-hours 72 --keep-tags-like latest
systemctl stop docker-registry
/usr/bin/docker run --rm -v /docker-registry:/var/lib/registry -v /etc/docker-config.yml:/etc/docker/registry/config.yml registry:2 bin/registry garbage-collect /etc/docker/registry/config.yml
systemctl start docker-registry
@amaczuga
amaczuga / output.log
Created February 28, 2019 20:20
packer 1.3.4 skips post-processors
Running with gitlab-runner 11.8.0 (4745a6f3)
Using Docker executor with image packer:0.3.0 ...
Pulling docker image packer:0.3.0 ...
Using docker image sha256:446cd5b660f436ec1e76cc1863bf8acdfb5d07f90f11786eed6eb18780292e8a for packer:0.3.0 ...
Running on runner--project-0-concurrent-0 via jmp-igk...
Cloning repository...
Cloning into '/builds/project-0'...
done.
Checking out 8dc89942 as devel...
Skipping Git submodules setup
{
"name": "SCRAPEY",
"description": "Puppets that scrape the web based on user-input.",
"imageUrl": "https://forums.macrumors.com/data/attachments/247/247003-8361588bf0c316b18c00941060d45c12.jpg",
"backgroundImageUrl": "https://i.ytimg.com/vi/_4b8w8RDkaw/maxresdefault.jpg",
"manifests": [
{
"versionCode": 6,
"manifestUrl": "http://muppet-paster.appspot.com/static/json/_repos/6/scraper-manifest.json"
}
@amaczuga
amaczuga / cve-2016-5195.yml
Last active November 7, 2016 12:31
cve-2016-5195 patch for TAP 0.7.x
# Copyright (c) 2016 Intel Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
#!/bin/bash
uaac member add uaa.admin $1
uaac member add scim.read $1
uaac member add scim.write $1
uaac member add console.admin $1
uaac member add cloud_controller.admin $1