Skip to content

Instantly share code, notes, and snippets.

View programmerShinobi's full-sized avatar
🇮🇩
Work from anywhere

FaQih programmerShinobi

🇮🇩
Work from anywhere
View GitHub Profile
@programmerShinobi
programmerShinobi / setup-exceljs-library-in-nestjs-framework.sh
Last active March 20, 2024 18:34
Setup exceljs library in nestjs framework
#1 Install dependecies :
- fs-extra
- exceljs
- multer
- @types/multer
- lodash
- class-validator
- class-transformer
- rxjs
@programmerShinobi
programmerShinobi / setup-php-with-sqlsrv-pdo_sqlsrv-on-linux-ubuntu.sh
Last active February 6, 2025 14:15
Setup PHP 7.2 with sqlsrv & pdo_sqlsrv on Linux (Ubuntu 22.04)
faqih@shinobi:~$ sudo apt-get update
faqih@shinobi:~$ sudo apt-get upgrade
faqih@shinobi:~$ sudo service packagekit restart
faqih@shinobi:~$ sudo apt-get update --fix-missing
faqih@shinobi:~$ sudo apt install software-properties-common
faqih@shinobi:~$ sudo add-apt-repository ppa:ondrej/php
faqih@shinobi:~$ sudo apt update
@programmerShinobi
programmerShinobi / setup-php-with-sqlsrv-pdo_sqlsrv-on-linux-ubuntu.sh
Last active January 30, 2025 03:32
Setup PHP 8.1 with sqlsrv & pdo_sqlsrv on Linux (Ubuntu 22.04)
faqih@shinobi:~$ sudo apt-get update
faqih@shinobi:~$ sudo apt-get upgrade
faqih@shinobi:~$ sudo service packagekit restart
faqih@shinobi:~$ sudo apt-get update --fix-missing
faqih@shinobi:~$ sudo apt install lsb-release ca-certificates apt-transport-https software-properties-common -y
faqih@shinobi:~$ sudo add-apt-repository ppa:ondrej/php
faqih@shinobi:~$ sudo apt update
@programmerShinobi
programmerShinobi / .env
Last active December 21, 2023 04:47
How to use Time To Live (TTL) Cache in Redis using NestJS Framework
REDIS_HOST=Your_Redis_Host_Is_Actived
REDIS_PORT=Your_Redis_Port_Is_Actived
@programmerShinobi
programmerShinobi / how-to-use-elasticsearch-in-nestjs-framework.md
Last active September 18, 2024 18:22
How to use elasticsearch in NestJS Framework
  1. Edit package.json
    {
      ...
      "dependencies": {
        "@nestjs/bull": "^10.0.1",
        "@nestjs/common": "^10.3.0",
        "@nestjs/config": "^3.1.1",
        "@nestjs/core": "^10.3.0",
        "@nestjs/elasticsearch": "^10.0.1",
@programmerShinobi
programmerShinobi / .create-mysql_fdw-extension-from-postgres-inside-docker-on-ubuntu.md
Last active September 18, 2024 18:05
Create Foreign Table From MySQL Server To PostgreSQL Server Using Docker On Linux Operating System

~ Command List :

  1. Install chumaky/postgres_mysql_fdw
$ sudo docker pull chumaky/postgres_mysql_fdw
  1. Install toleg/postgres_mysql_fdw
$ sudo docker pull toleg/postgres_mysql_fdw
@programmerShinobi
programmerShinobi / logging-flutter.md
Last active October 24, 2024 15:31
Logging Flutter Via USB

Logging Flutter via USB

  1. Connect Your Device

    adb devices
  2. Start ADB Server

adb start-server

@programmerShinobi
programmerShinobi / postman-installation.md
Last active October 24, 2024 15:25
Postman Installation Via Snap (Linux OS | Ubuntu | Debian)

Postman Installation

Postman Installation Via Snap (Linux OS | Ubuntu | Debian) :

  • Postman recommends installing using Snap because it includes all the libraries the app needs and they're bundled with the app itself.
  • The support of certain Linux distributions depends on if they're supported by Electron.
  1. Install Electron
    $ sudo apt-get install build-essential clang libdbus-1-dev libgtk-3-dev \
                       libnotify-dev libasound2-dev libcap-dev \

libcups2-dev libxtst-dev \

@programmerShinobi
programmerShinobi / getting-started-with-nestjs .md
Last active October 24, 2024 15:23
Getting started with NestJS (NestJS Series 01)

Getting Started with NestJS

Follow these steps to set up a new NestJS project:

  1. Install Yarn
    First, install Yarn globally using npm:
    npm install --global yarn
@programmerShinobi
programmerShinobi / install-docker-engine-on-ubuntu.md
Last active September 18, 2024 11:03
Install Docker Engine on Ubuntu

OS requirements

To install Docker Engine, you need the 64-bit version of one of these Ubuntu versions:

  • Ubuntu Noble 24.04 (LTS)
  • Ubuntu Jammy 22.04 (LTS)
  • Ubuntu Focal 20.04 (LTS)

Docker Engine for Ubuntu is compatible with x86_64 (or amd64), armhf, arm64, s390x, and ppc64le (ppc64el) architectures.

Uninstall old versions

Before you can install Docker Engine, you need to uninstall any conflicting packages.