Skip to content

Instantly share code, notes, and snippets.

View karnavpargi's full-sized avatar
🎯
Focusing

Karnav Pargi karnavpargi

🎯
Focusing
View GitHub Profile
{
"basics": {
"name": "Karnav Pargi",
"label": "MEAN Stack Developer",
"image": "https://github.com/karnavpargi/karnavpargi/blob/main/karnav_profile_pic.png",
"email": "karnav.pargi@gmail.com",
"phone": "+91 (878) 049-8282",
"url": "",
"summary": "As a MEAN stack Developer with 5.5+ years of experience, I possess a wealth of expertise in creating high-quality web applications using JavaScript, TypeScript, MongoDB, MySQL, Express, Angular, and Node.js. With a focus on developing responsive and scalable web applications, I have honed my skills in modern front-end frameworks such as Angular, React as well as server-side technologies such as Node.js and Express.js",
"location": {
@karnavpargi
karnavpargi / CryptoJs & Golang
Created January 3, 2023 10:22 — forked from xsephiroth/CryptoJs & Golang
AES decrypt encrypt with CryptoJs & Golang
<template>
<div>
</div>
</template>
<script>
import CryptoJs from "crypto-js"
export default {
name: "",
data(){

Problem

I have two Github accounts: oanhnn (personal) and superman (for work). I want to use both accounts on same computer (without typing password everytime, when doing git push or pull).

Solution

Use ssh keys and define host aliases in ssh config file (each alias for an account).

How to?

  1. Generate ssh key pairs for accounts and add them to GitHub accounts.
@karnavpargi
karnavpargi / node_nginx_ssl.md
Last active September 30, 2021 11:58 — forked from bradtraversy/node_nginx_ssl.md
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@karnavpargi
karnavpargi / client.html
Created September 12, 2017 05:42 — forked from diorahman/client.html
Ajax, call jQuery POST to node.js expressjs
<html>
<head>
<title>jsonp test</title>
<script src="http://code.jquery.com/jquery-1.6.2.min.js"></script>
<script type="text/javascript">
$(function(){
$('#select_link').click(function(e){
e.preventDefault();
console.log('select_link clicked');
userid_new = value["5875","4548","65fs","4545","undefined","$874h","-7/"];
var csvValues="";
var comma=",";
for (i = 0; i < userid_new.length; i++) {
if(isNaN(userid_new[i]))
{
//console.log(userid_new[i]+" is non numeric");
}else
var userid_new= ["5875","4548","65fs","4545","undefined","$874h","-7/;"]
console.log(userid_new);
var csvValues="";
var comma=",";
for (i = 0; i < userid_new.length; i++) {
if(isNaN(userid_new[i]))
{
console.log(userid_new[i]+" is non numeric");
}else
{
@karnavpargi
karnavpargi / index.js
Created April 4, 2016 22:33 — forked from jfensign/index.js
NodeJS User Registration and Authentication
//index.js
var express = require('express'),
app = module.exports = express.createServer(),
mongoose = require('mongoose');
mongoose.connect('mongodb://localhost/nodeAuth');
//configure app
app.configure(function() {
app.set('views', __dirname + '/views');