Skip to content

Instantly share code, notes, and snippets.

View faizanbashir's full-sized avatar
🏠
Working from Home

Faizan Bashir faizanbashir

🏠
Working from Home
View GitHub Profile
@Icaruk
Icaruk / multipleGitProfiles.md
Last active June 3, 2024 14:48
How to have multiple profiles on git

Last update: 30-01-2024
Last view: 30-01-2024

Step 1

Go to your work folder, mine is located at: F:/Work/EnterpriseName/

And then create a .gitconfig-work with the following data:

@DzeryCZ
DzeryCZ / ReadingHelmResources.md
Last active June 12, 2024 18:01
Decoding Helm3 resources in secrets

Helm 3 is storing description of it's releases in secrets. You can simply find them via

$ kubectl get secrets
NAME                                                TYPE                                  DATA   AGE
sh.helm.release.v1.wordpress.v1                     helm.sh/release.v1                    1      1h

If you want to get more info about the secret, you can try to describe the secret

$ kubectl describe secret sh.helm.release.v1.wordpress.v1
@dehamzah
dehamzah / generate.js
Last active June 12, 2024 18:42
Generate secret key in NodeJS
require('crypto').randomBytes(48, function(err, buffer) { var token = buffer.toString('hex'); console.log(token); });
@parmentf
parmentf / GitCommitEmoji.md
Last active July 19, 2024 04:00
Git Commit message Emoji