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 / biome-config-setup.md
Last active December 27, 2025 12:03
Linting and formatting with Biome and Typechecking with TSC

Linting and formatting with Biome and Typechecking with TSC

The Biome config file is setup only to focus on TypeScript files and ignored ".js" file. If you want to include JS files, then continue reading on what to do. (Hint: remove ".js" file filtering).

Write up assisted with AI, double check information being provided.

Installing recommended Node.js dependencies

pnpm i -D -E @biomejs/biome @types/node

Prerequisites

Instructions

The following guide will walk you through setting up a local Angular project.

@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: