Skip to content

Instantly share code, notes, and snippets.

View rakshitshah94's full-sized avatar
💭
If I can't, who else will ?

RAKSHIT SHAH rakshitshah94

💭
If I can't, who else will ?
View GitHub Profile
@rakshitshah94
rakshitshah94 / mysql country list.md
Created May 24, 2025 16:33
Get developer ready dataset for Country, city, state, currency and continent list for free.

🌍 World Geo Data — Full Country, State, City & Currency Dataset

This repository provides an overview of the World Geo Data digital product — a ready-to-use dataset bundle containing detailed geographic and administrative information, including continents, countries, states, cities, and currencies.

This dataset includes structured lists of:

  • Countries
  • States/Provinces
  • Cities
  • Continents
  • Currency
@rakshitshah94
rakshitshah94 / WARNING UNPROTECTED PRIVATE KEY FILE.md
Created May 26, 2023 08:08
Resolving OpenSSH Private Key Error on Windows: Easy Fix | Discover a step-by-step guide to fixing the ‘Unprotected private key file’ error in OpenSSH on Windows.

Resolving OpenSSH Private Key Error on Windows: Easy Fix

Discover a step-by-step guide to fixing the ‘Unprotected private key file’ error in OpenSSH on Windows.

Whether you are looking for solution of,

  • WARNING: UNPROTECTED PRIVATE KEY FILE!
  • ssh "permissions are too open"
  • Permissions for ‘.pem’ are too open.
  • Load key “.pem”: bad permissions
  • OpenSSH using a private key on Windows permission issues
@rakshitshah94
rakshitshah94 / referral-program-angular-idea.md
Created May 17, 2023 12:41
how to create referral program in angular easily

To create a referral program in Angular, you can follow these steps:

  1. Set up your Angular project: If you haven't already, create a new Angular project using the Angular CLI. Open a terminal and run the following command: ng new referral-program Create the necessary components: In your Angular project, create the components required for your referral program. For example, you might have a referral form, referral status page, and referral leaderboard.

  2. Set up routing: Configure the routing for your referral program. Define routes for each component you created in the previous step. This will allow users to navigate between different pages of your referral program.

  3. Implement the referral form: Create a form where users can enter their referral details, such as name and email address. Upon submission, store the referral information in a data structure or database.

  4. Track referrals: When a user submits a referral, generate a unique referral code or link for that user. You can use a library

@rakshitshah94
rakshitshah94 / chmod-400.cmd
Created August 4, 2022 18:07 — forked from jaskiratr/chmod-400.cmd
Set permission of file equivalent to chmod 400 on Windows.
# Source: https://stackoverflow.com/a/43317244
$path = ".\aws-ec2-key.pem"
# Reset to remove explict permissions
icacls.exe $path /reset
# Give current user explicit read-permission
icacls.exe $path /GRANT:R "$($env:USERNAME):(R)"
# Disable inheritance and remove inherited permissions
icacls.exe $path /inheritance:r
@rakshitshah94
rakshitshah94 / ZohoMailTest.java
Created June 11, 2022 02:46
Learn how to integrate the Zoho mail with java (Update your email and password below), Beingcoders - India.
import java.util.Properties;
import javax.mail.MessagingException;
import javax.mail.PasswordAuthentication;
import javax.mail.Session;
import javax.mail.Transport;
import javax.mail.internet.InternetAddress;
import javax.mail.internet.MimeMessage;
public class ZohoMailTest
@rakshitshah94
rakshitshah94 / app.component.ts
Created June 7, 2022 04:25
Intercept request to add gtag.js code on NavigationEnd event in your angular project. Learn How to use google analytics for tracking in your angular application.
import { CommonsServices } from './_services/commons.services';
import { Component, OnInit } from '@angular/core';
import { Router, NavigationStart, NavigationEnd, NavigationCancel, NavigationError, Event, ActivatedRoute } from '@angular/router';
import { filter } from 'rxjs/operators';
import { Title } from '@angular/platform-browser';
declare const gtag: Function; // <------------Important: the declartion for gtag is required!
@Component({
selector: 'app-root',
import { HttpClient } from '@angular/common/http';
import { Injectable } from '@angular/core';
import { map } from 'rxjs/operators';
import { AppConstants } from './appConstants';
@Injectable()
export class AppConfig {
public static config: Object = null;// <-- Your global config variable
constructor(private http: HttpClient) {
@rakshitshah94
rakshitshah94 / app.component.ts
Created June 7, 2022 02:56
Intercept request to add gtag.js code on NavigationEnd event in your angular project. Learn How to use google analytics for tracking in your angular application.
import { CommonsServices } from './_services/commons.services';
import { Component, OnInit } from '@angular/core';
import { Router, NavigationStart, NavigationEnd, NavigationCancel, NavigationError, Event, ActivatedRoute } from '@angular/router';
import { filter } from 'rxjs/operators';
import { Title } from '@angular/platform-browser';
declare const gtag: Function; // <------------Important: the declartion for gtag is required!
@Component({
selector: 'app-root',
@rakshitshah94
rakshitshah94 / angular-cli-node-js-typescript-rxjs-compatiblity-matrix.csv
Created March 1, 2022 12:18
Angular CLI, Angular, Node.js, TypeScript, and RxJS version compatibility matrix. Based on changelogs, metadata, and hands-on experience. Major Node.js and RxJS versions above officially supported versions are not listed. Note that minor TypeScript versions also contain breaking changes. File angular-cli-node-js-typescript-rxjs-compatiblity-matr…
Angular CLI version Angular version Node.js version TypeScript version RxJS version
1.0.0-beta.17 (package name: angular-cli) 2.0.x 6.9.x or later minor version 2.0.x 5.0.x or later minor version
1.0.0-beta.20-1 (package name: angular-cli) 2.1.x 6.9.x or later minor version 2.0.x 5.0.x or later minor version
1.0.0-beta.22-1 (package name: angular-cli) 2.2.x 6.9.x or later minor version 2.0.x 5.0.x or later minor version
1.0.0-beta.30 2.3.x 6.9.x or later minor version 2.0.x 5.0.x or later minor version
1.0.0-rc.4 2.4.x 6.9.x or later minor version 2.0.x 5.0.x or later minor version
1.0.6 4.0.x/4.1.x 6.9.x or later minor version 2.2.x 5.0.x or later minor version
1.1.3 4.0.x/4.1.x 6.9.x or later minor version 2.3.x 5.0.x or later minor version
1.2.7 4.0.x/4.1.x 6.9.x or later minor version 2.3.x 5.0.x or later minor version
1.3.2 4.2.x/4.3.x/4.4.x 6.9.x or later minor version 2.4.x 5.0.x or later minor version
@rakshitshah94
rakshitshah94 / Worldwide all languages script.sql
Created February 25, 2022 09:20
MYSQL - Worldwide all spoken language listings for your application.
-- Table --
CREATE TABLE `languages` (
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
`name` char(49) CHARACTER SET utf8 DEFAULT NULL,
`iso_639-1` char(2) CHARACTER SET utf8 DEFAULT NULL,
PRIMARY KEY (`id`)
) ENGINE=InnoDB DEFAULT CHARSET=utf8 COLLATE=utf8_bin AUTO_INCREMENT=136 ;
-- Languages --
INSERT INTO `languages` VALUES(1, 'English', 'en');