Skip to content

Instantly share code, notes, and snippets.

View hardikhari96's full-sized avatar
🍀
I may be slow to respond.

Harikrushna hardikhari96

🍀
I may be slow to respond.
View GitHub Profile

Edit file

~/.ssh/config 
Host hari.github.com
  HostName github.com
 User git
@hardikhari96
hardikhari96 / MicroServiceArchitecture.md
Created May 29, 2022 06:28
Micro Service Architecture
@hardikhari96
hardikhari96 / activity.java
Created February 21, 2022 08:29
get Permission for android app,
import java.util.List;
import android.content.pm.PackageManager;
import androidx.core.app.ActivityCompat;
import java.util.ArrayList;
// get all permission
private void checkPermissions() {
String[] permissions = new String[]{
Manifest.permission.READ_EXTERNAL_STORAGE,
Manifest.permission.ACCESS_NOTIFICATION_POLICY,
@hardikhari96
hardikhari96 / .gitignore
Last active December 18, 2021 12:50
gitignore for android project
*.iml
.gradle
/local.properties
/.idea/caches
/.idea/libraries
/.idea/modules.xml
/.idea/workspace.xml
/.idea/navEditor.xml
/.idea/assetWizardSettings.xml
.DS_Store
@hardikhari96
hardikhari96 / README.md
Last active December 1, 2021 16:50
Example of save and check hash password in sequlizer.js using crypto new nodejs library

Bcrypt Is no longer part of node, so I included example with new module of crypto

I am sharing this code from one of working project.

This code is based on express framwork. I seprated config file, model file and controller file, you can use controller file in express route module for test