Web_programming
1.13K subscribers
357 photos
14 videos
125 files
1.24K links
Sharif web programming
If you have any questions, please feel free to ask(@yumcoder)
Download Telegram
Forwarded from MH Alahdadian
اگه توی یه فضای ایزوله هستید (مثل ci( و میخواید یه ایمیج بسازید
حتی به docker file هم احتیاج ندارید
میتونید با استفاده از
https://github.com/containers/buildah
یه oci image رو مستقیم بسازید
K8s vs K3s

Kubernetes (K8s): A powerful, full-featured container orchestrator for large, complex production deployments, known for its scalability and advanced features.

K3s: A lightweight, simplified distribution of Kubernetes designed for resource-constrained environments such as edge, IoT, and local development.
😱1
testing.TB in golang
👍4
A .gpg file is an encrypted file created using GnuPG (GPG), the GNU Privacy Guard.

example:

Step 1. Create a sample secret file
$> echo "This is my root token: s.ABC123XYZ" > secret.txt
$> cat secret.txt
This is my root token: s.ABC123XYZ

Step 2. Create a GPG key pair (only once)
$> gpg --full-generate-key
Then follow the prompts…. and set email and password…

Step 3. Encrypt the file
$> gpg --encrypt --recipient omid@example.com secret.txt
This creates a new file: secret.txt.gpg

$> cat secret.txt.gpg
You’ll see garbage, binary data (that’s encrypted).

Step 4. Delete the original (optional, for safety)
$> shred -u secret.txt
(shred overwrites and deletes it securely)


Step 5. Decrypt when needed
$> gpg --output secret.txt --decrypt secret.txt.gpg
It will: 1) Ask for your GPG key passphrase 2) Restore the original plaintext file
👍1