Skip to content

Instantly share code, notes, and snippets.

View tuana9a's full-sized avatar
🌱

Nguyen Minh Tuan tuana9a

🌱
View GitHub Profile

debug jenkins agent run maven

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=""
@tuana9a
tuana9a / request.http
Created April 8, 2024 23:40
VSCode - REST Client
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
@tuana9a
tuana9a / nohup.sh
Created April 8, 2024 23:39
nohup.sh
nohup run.sh > run.log 2>&1 & echo $! > run.pid