Skip to content

Instantly share code, notes, and snippets.

View mahadihassanrazib's full-sized avatar
🎯
Focusing

Md. Mahadi Hassan Razib mahadihassanrazib

🎯
Focusing
View GitHub Profile
@mahadihassanrazib
mahadihassanrazib / multiple-ssh-keys-git.adoc
Created January 1, 2025 06:07 — forked from alejandro-martin/multiple-ssh-keys-git.adoc
Configure multiple SSH Keys for Git

Use Multiple SSH Keys for Git host websites (Github, Gitlab)

This is guide about how to configure multiple SSH keys for some Git host websites such as Github, Gitlab, among others.

Creating SSH keys

  1. Create SSH directory:

@mahadihassanrazib
mahadihassanrazib / Jenkinsfile.groovy
Created September 19, 2024 03:12 — forked from Faheetah/Jenkinsfile.groovy
Jenkinsfile idiosynchrasies with escaping and quotes
node {
echo 'Results included as an inline comment exactly how they are returned as of Jenkins 2.121, with $BUILD_NUMBER = 1'
echo 'No quotes, pipeline command in single quotes'
sh 'echo $BUILD_NUMBER' // 1
echo 'Double quotes are silently dropped'
sh 'echo "$BUILD_NUMBER"' // 1
echo 'Even escaped with a single backslash they are dropped'
sh 'echo \"$BUILD_NUMBER\"' // 1
echo 'Using two backslashes, the quotes are preserved'
sh 'echo \\"$BUILD_NUMBER\\"' // "1"