Skip to content

Instantly share code, notes, and snippets.

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

Faqih Pratama Muhti programmerShinobi

🇮🇩
Work from anywhere
View GitHub Profile
@programmerShinobi
programmerShinobi / validation-and-controller-setup-in-nestjs.md
Last active October 24, 2024 15:20
Validation and controller setup in NestJS (Series 04)

Validate and Set Up Controllers in NestJS

  1. Create a Serializer Interceptor
    Create serializer.interceptor.ts to handle response serialization.
    // src/utils/serializer.interceptor.ts
    import {
      CallHandler,
      ExecutionContext,
      Injectable,
@programmerShinobi
programmerShinobi / typeorm-integration-with-migrations-in-nestjs-using-docker.md
Last active November 4, 2024 01:03
TypeORM integration with migration in NestJS using Docker (NestJS Series 03)

How to Integrate TypeORM with migrations in NestJS using Docker | Ubuntu 22.04 (Jammy)

  1. Get the latest version of the PostgreSQL image.
    $ sudo docker pull postgres
  2. Run a PostgreSQL container with the name my-postgres, and run the container in the background.
    $ sudo docker run --name my-postgres \
      -e POSTGRES_USER=postgres \
      -e POSTGRES_PASSWORD=postgres \
@programmerShinobi
programmerShinobi / load-env-using-config-module-in-nestjs.md
Last active September 24, 2024 05:01
Load .env using Config Module in NestJS (NestJS Series 02)

How to Load .env using Config Module in NestJS

  1. Add @nestjs/config library to your dependencies in package.json
    $ yarn add @nestjs/config
  2. Add src/modules/config/app.config.ts
     // src/modules/config/app.config.ts
    
    import { registerAs } from '@nestjs/config';
@programmerShinobi
programmerShinobi / test-github-ssh-connection.md
Last active October 24, 2024 15:05
Test GitHub SSH Connection

Test GitHub SSH Connection

Follow the steps below to test your SSH connection to GitHub.

1. Attempt to SSH to GitHub:

@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.

@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 / postman-installation.md
Last active July 24, 2025 03:18
Postman Installation Via Snap or Without Snap (Linux OS | Ubuntu | Debian)

Postman Installation

Install Postman on Linux

To install Postman on Linux using the .tar.gz file, follow these steps:

1. Download the Postman .tar.gz file

Ensure you've downloaded the postman-linux-x64.tar.gz file from the official Postman website.

2. Extract the .tar.gz File

@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 / .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 / 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",