Skip to content

Instantly share code, notes, and snippets.

View tareq3's full-sized avatar
🎯
Focusing

Tareq Islam tareq3

🎯
Focusing
View GitHub Profile
@tareq3
tareq3 / md
Last active December 30, 2018 11:48
The basic command for npm
# Npm Express libs:
### 1. Express (Framework)
### 2. Bodyparser (middleware)
### 3. cors ( for giving access from any client)
### 4. morgan (for logging on console about calls)
### 5.jsonwebtoken ( for creating auth Bearer token)
### 6.bcryptjs ( for password hashing)[npm i bcrypt-nodejs --save]
# Npm Mysql lib:
@tareq3
tareq3 / doc
Last active November 21, 2018 16:13
Interface as a communicator between class, activity and fragment
BASIC INTERFACE AS A COMMUNICATOR
How to create an interface:
public interface ItemClickListener {
void onItemClick(String message);
}
An Interface has two User class.
Sender:
@tareq3
tareq3 / simple.md
Last active December 2, 2018 16:26
Command for linux Distros

For Opening Terminal

cntl+alt+t

For Getting into The home dir of any user.. Where Desktop, Music, Picture folders exists.

cd
@tareq3
tareq3 / md
Created November 29, 2018 18:30
SSH Code
# SSH Cheat Sheet
## This sheet goes along with this [SSH YouTube tutorial](https://www.youtube.com/watch?v=hQWRp-FdTpc&t=1270s)
### Login via SSH with password (LOCAL SERVER)
```$ ssh brad@192.168.1.29```
### Create folder, file, install Apache (Just messing around)
```$ mkdir test```
```$ cd test```
@tareq3
tareq3 / md
Last active December 3, 2018 17:23
What to install for preparing a server for rest api hosting
### For Accessing any server in gitbash
```
ssh userName@hostAddress
```
### Then enter the password
### Install update
```
sudo apt-get update
```
@tareq3
tareq3 / MD
Last active January 29, 2019 14:35
## Angular 7 CLI
## install the angular cli
```
npm install -g @angular/cli
```
## create a new project
```
ng new app-name
```
@tareq3
tareq3 / MD
Last active December 6, 2018 06:48
## Type Script Crash Course
### Install type script using npm
```
npm i -g typescript
```
### compile a type script code into java scipt
```
tsc filename.ts
@tareq3
tareq3 / md
Last active December 13, 2018 17:33
Mongo Db with cli cmd
## MongoDb is a document database or nosql database with no relation like firebase db
## Install Mongodb and mongodb compass app
## add the mongod path into environment variables
## cheack mongo db version
```
mongod --version
```
@tareq3
tareq3 / md
Last active December 19, 2018 13:40
Ionic 4 and angular and cordova cli
### Preparing the platforms :
#### 1: install node with npm
#### 2: install ionic
```
npm i -g ionic
```
#### 3: install cordova and jdk
```
@tareq3
tareq3 / mysql
Last active May 27, 2020 13:53
mysql cli
### For showing mysql verseio
```
mysql --version
```
### For using mysql cli
```
mysql
```