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 / 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

Jenkins

Installation

Install docker and docker compose plugin.

docker pull jenkins/jenkins
@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 / 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 / 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"]
  }
},
@deependhamecha
deependhamecha / windows-authentication-jdbc-springboot.md
Last active September 27, 2021 10:01
MS SQL Windows Based Authentication JDBC

type hostname and you will get your domain

application.properties

spring.datasource.url=jdbc:sqlserver://localhost;databaseName=DWIDDER2DB;domain=DESKTOP-2J92742;integratedSecurity=true;authenticationScheme=NTLM
spring.datasource.username=deepen
spring.datasource.password=abcd
spring.datasource.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
spring.jpa.hibernate.dialect=org.hibernate.dialect.SQLServer2013Dialect
spring.jpa.show-sql=true
@deependhamecha
deependhamecha / multipart-data-java.md
Last active September 27, 2021 07:45
Multipart Data

Since Spring 3.1, Spring comes with 2 out-of-the-box implementations of MultipartResolver to choose from:

  • CommonsMultipartResolver - Resolves multipart requests using Jakarta Commons FileUpload
  • StandardServletMultipartResolver - Relies on Servlet 3.0 support for multipart requests(since Spring 3.1).

What is Maven?

At first glance Maven can appear to be many things, but in a nutshell Maven is an attempt to apply patterns to a project's build infrastructure in order to promote comprehension and productivity by providing a clear path in the use of best practices. Maven is essentially a project management and comprehension tool and as such provides a way to help with managing: