Skip to content

Instantly share code, notes, and snippets.

View rajinder-yadav's full-sized avatar

Rajinder Yadav rajinder-yadav

  • DevMentor.org Corp.
  • Toronto, Ontario, Canada
View GitHub Profile
@rajinder-yadav
rajinder-yadav / crc-start.log
Created April 24, 2022 18:27
Error in driver during machine start: unexpected libvirt status 3 : machine in unknown state: getting ip during machine start
$ crc start --log-level debug
DEBU CodeReady Containers version: 2.0.1+bf3b1a6
DEBU OpenShift version: 4.10.3
DEBU Podman version: 3.4.4
DEBU Running 'crc start'
DEBU Total memory of system is 10314739712 bytes
DEBU No new version available. The latest version is 2.0.1
DEBU Checking file: /home/yadav/.crc/machines/crc/.crc-exist
DEBU Checking if systemd-resolved.service is running
DEBU Running 'systemctl status systemd-resolved.service'
@rajinder-yadav
rajinder-yadav / bitbucket-ssh-fix.md
Created October 16, 2021 15:39
Unable to negotiate with 2406:da00:ff00::22c2:513 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss

Bitbucket SSH error

To fix the following error:

Unable to negotiate with 2406:da00:ff00::22c2:513 port 22: no matching host key type found. Their offer: ssh-rsa,ssh-dss
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
@rajinder-yadav
rajinder-yadav / rsync.md
Created August 1, 2021 00:22
Copying folders and files with rsync

Copying folders and files with rsync

How to copy files and folders (locally).

rsync -arvcEXtP source destination

Add options, "-l" and "-H" for symlinks and hard links if required. Add "-z" to compress is doing over the networks.

// Available variables:
// - Machine
// - interpret
// - assign
// - send
// - sendParent
// - spawn
// - raise
// - actions
<properties>
<java.version>11</java.version>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
@rajinder-yadav
rajinder-yadav / nodejs-https-requests.js
Last active October 26, 2023 18:55
Node.js making a HTTPS request with GET and POST
const https = require('https');
async function httpsGet(hostname, path, headers) {
return new Promise(async (resolve, reject) => {
const options = {
hostname: hostname,
path: path,
port: 443,
method: 'GET',

Keybase proof

I hereby claim:

  • I am rajinder-yadav on github.
  • I am ryadav (https://keybase.io/ryadav) on keybase.
  • I have a public key whose fingerprint is 3669 ADFB 6D76 130A 2993 BADA 14A7 3C3D 0A95 3685

To claim this, I am signing this object:

@rajinder-yadav
rajinder-yadav / git-shortcuts.md
Last active June 13, 2019 18:33
Git Shortcuts
Alias Command Description
a add -u Add all tracked files
aa add -A . Add all files for tracking
c commit -m Commit with message
cc commit -a -m Add tracked and commit with message
ca commit --amend Commit amend
cl clone Clone repo
b branch View local branches
ba branch -a -v View all branches
@rajinder-yadav
rajinder-yadav / consulting.md
Last active February 11, 2019 02:25
Interview - Work performed as a Consultant on projects.

Team Lead: Fullstack IBM

Rajinder Yadav
DevMentor.org Corp

Angular

  • Coded an embedded PDF viewer component.