stupid as fuck gpg version > 2.1 <
stupid intergate gpg signing into docker pipeline with maven image
docker run --rm -u 1000:1000 \
-v $HOME/.m2:/tmp/1000/.m2 \
-v $HOME/.gnupg:/tmp/1000/.gnupg \| # load dotenv | |
| export $(grep -vE "^(#.*|\s*)$" .env) | |
| # Read the .env file line by line | |
| while IFS='=' read -r key value; do | |
| # Skip empty lines and lines starting with # | |
| [[ -z "$key" || "$key" == \#* ]] && continue | |
| # Remove leading and trailing whitespace from key and value | |
| key=$(echo "$key" | xargs) |
| #!/bin/bash | |
| digits="0123456789" | |
| lowers="abcdefghijklmnopqrstuvwxyz" | |
| uppers="ABCDEFGHIJKLMNOPQRSTUVWXYZ" | |
| specials="~!@#$%^&*()_+>?:" | |
| hex="0123456789abcdef" | |
| function gen() { | |
| local password="" |
| POST https://api.example.com/user/upload | |
| Content-Type: multipart/form-data; boundary=----WebKitFormBoundary7MA4YWxkTrZu0gW | |
| ------WebKitFormBoundary7MA4YWxkTrZu0gW | |
| Content-Disposition: form-data; name="text" | |
| title | |
| ------WebKitFormBoundary7MA4YWxkTrZu0gW | |
| Content-Disposition: form-data; name="image"; filename="1.png" | |
| Content-Type: image/png |
| nohup run.sh > run.log 2>&1 & echo $! > run.pid |