Skip to content

Instantly share code, notes, and snippets.

View deependhamecha's full-sized avatar
🎯
Focusing

Deepen Dhamecha deependhamecha

🎯
Focusing
View GitHub Profile
@deependhamecha
deependhamecha / mongo1.jpg
Last active January 27, 2024 08:10
MongoDB
mongo1.jpg
@deependhamecha
deependhamecha / aws-serverless-typescript.md
Last active June 21, 2023 09:37
AWS & Typescript MasterClass - CDK V2, Serverless, React

Create an IAM User with AdministratorAccess policy.

Install AWS Cli, Go to IAM User and Security credentials, Access Key, Create Access Key.

aws configure

Enter Values and Output format as json.

@deependhamecha
deependhamecha / core-js.md
Last active June 20, 2023 09:10
Core JS

Core.js

Versions
1 es5
2 es6
3 es2015
4 es7
5 es2016
6 es2017
@deependhamecha
deependhamecha / react-2023.md
Last active June 10, 2023 07:44
React 2023

React

Create App

npm install create-react-app
create-react-app my-app
@deependhamecha
deependhamecha / spring-security+jwt+rest.md
Last active July 6, 2022 11:21
Spring-Security + JWT + REST

Spring Security + JWT + REST API

We will create a sample application for JWT + Stateless Token + Spring Security + REST(JSON) API

  1. Create a Spring Boot Project with following dependencies:
    • Spring Web
    • Spring Security
    • Spring Boot DevTools and Other dependencies
@deependhamecha
deependhamecha / execute-command-in-cmd.md
Last active July 6, 2022 11:18
Execute Command in Cmd

Implemenation to execute Command in CMD with java

public String execCmd(String cmd) throws java.io.IOException {
        java.util.Scanner s = new java.util.Scanner(Runtime.getRuntime().exec(cmd).getInputStream()).useDelimiter("\\A");
        return s.hasNext() ? s.next() : "";
}

Jenkins

Installation

Install docker and docker compose plugin.

docker pull jenkins/jenkins
@deependhamecha
deependhamecha / apache.md
Last active January 11, 2022 07:47
Apache

Apache

The Apache HTTP Server is configured via simple text files. These files may be located any of a variety of places, depending on how exactly you installed the server.

If you installed httpd from source, the default location of the configuration files is /usr/local/apache2/conf. The default configuration file is usually called httpd.conf.

The configuration is frequently broken into multiple smaller files, for ease of management. These files are loaded via the Include directive.

The server is configured by placing configuration directives in these configuration files. A directive is a keyword followed by one or more arguments that set its value.

@deependhamecha
deependhamecha / promise-example.md
Last active January 11, 2022 07:46
Promise Example
var fun = function(name) {
    var p = new Promise((resolve, reject) => {

        if(name=='Deepen') {
            resolve(`Congrats ${name}`);
        } else {
            reject('Fail');
        }
 });
@deependhamecha
deependhamecha / vscode-scripts-error.md
Created January 5, 2022 11:06
Visual Code running scripts error

Open vscode and settings.json and paste this:

"terminal.integrated.profiles.windows": {
  "PowerShell": {
    "source": "PowerShell",
    "icon": "terminal-powershell",
    "args": ["-ExecutionPolicy", "Bypass"]
  }
},