Cosign signature and verification
- Cosign Signature Verification
- Deterministic container hashes and container signing using Cosign, Kaniko and Google Cloud Build
Cosign signature and verification
| variant: fcos | |
| version: 1.4.0 | |
| passwd: | |
| users: | |
| - name: testuser | |
| groups: ["wheel", "sudo"] | |
| #ssh_authorized_keys: | |
| # - <your SSH public key> | |
| systemd: | |
| units: |
Bash
for file in prefix*; do mv "$file" "${file#prefix}"; done;
The for loop iterates over all files with the prefix. The do removes from all those files iterated over the prefix.
Here is an example to remove "bla_" form the following files:
bla_1.txt
bla_2.txt
| { pkgs ? import <nixpkgs> {} }: | |
| let | |
| # To use this shell.nix on NixOS your user needs to be configured as such: | |
| # users.extraUsers.adisbladis = { | |
| # subUidRanges = [{ startUid = 100000; count = 65536; }]; | |
| # subGidRanges = [{ startGid = 100000; count = 65536; }]; | |
| # }; |
| version: "3.1" | |
| services: | |
| db: | |
| image: "mysql:latest" | |
| networks: | |
| collabnet: | |
| aliases: ["db"] | |
| volumes: | |
| - "db_data:/var/lib/mysql" | |
| secrets: |
| local m=component.proxy(component.list("modem")()) | |
| m.open(2412) | |
| local function respond(...) | |
| local args=table.pack(...) | |
| pcall(function() m.broadcast(2412, table.unpack(args)) end) | |
| end | |
| local function receive() | |
| while true do | |
| local evt,_,_,_,_,cmd=computer.pullSignal() | |
| if evt=="modem_message" then return load(cmd) end |
| #!/bin/bash | |
| # generate a number of files with random sizes in a range | |
| min=1 # min size (MB) | |
| max=10 # max size (MB) | |
| nofiles=20 # number of files | |
| for i in `eval echo {1..$nofiles}` | |
| do | |
| dd bs=1M count=$(($RANDOM%max + $min)) if=/dev/urandom of=./files/file$i |