you need jq first.
Steps:
- download the script && chmod +x
- enable "delete" inside docker registry container
/etc/docker/registry/config.yml
storage:
delete:
| # Base settings install | |
| # Zero everything out... | |
| zerombr | |
| clearpart --all --initlabel | |
| # Generic boot settings... | |
| cdrom | |
| lang en_US.UTF-8 | |
| keyboard 'us' |
| FROM madnight/docker-alpine-wkhtmltopdf as wkhtmltopdf_savior | |
| # STAGE for bundle & yarn install | |
| FROM ruby:2.4.3-alpine3.7 as builder | |
| ENV CA_CERTS_PATH /etc/ssl/certs/ | |
| ENV RAILS_ENV production | |
| ENV RAILS_LOG_TO_STDOUT true | |
| ENV RAILS_SERVE_STATIC_FILES true |
| ### Keybase proof | |
| I hereby claim: | |
| * I am yves-vogl on github. | |
| * I am yvesvogl (https://keybase.io/yvesvogl) on keybase. | |
| * I have a public key ASAQMRKw3b6Ork-DhL_oY8eN5KEx3jdaT0CBUy5WU3U6uQo | |
| To claim this, I am signing this object: |
| resource "azurerm_public_ip" "infra" { | |
| name = "infra" | |
| location = azurerm_resource_group.main.location | |
| resource_group_name = azurerm_resource_group.main.name | |
| allocation_method = "Static" | |
| tags = var.tags | |
| } |
| <app> | |
| - iac | |
| - bootstrap | |
| - main-frontend | |
| - main-backend | |
| - main-shared | |
| - src | |
| - app-1 | |
| - app-2 | |
| - … |
you need jq first.
Steps:
/etc/docker/registry/config.yml
storage:
delete:
| # Login to Azure PowerShell | |
| Login-AzureRmAccount | |
| # Create the self signed cert | |
| $currentDate = Get-Date | |
| $endDate = $currentDate.AddYears(1) | |
| $notAfter = $endDate.AddYears(1) | |
| $pwd = "P@ssW0rd1" | |
| $thumb = (New-SelfSignedCertificate -CertStoreLocation cert:\localmachine\my -DnsName com.foo.bar -KeyExportPolicy Exportable -Provider "Microsoft Enhanced RSA and AES Cryptographic Provider" -NotAfter $notAfter).Thumbprint | |
| $pwd = ConvertTo-SecureString -String $pwd -Force -AsPlainText |
Some notes, tools, and techniques for reverse engineering macOS binaries.