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 / install-snx-debian-13.md
Created August 15, 2025 03:50
Install SNX Debian 13

Install SNX Debian 13

To install Check Point's SSL Network Extender (SNX) on Debian 13, you can use the snx-packaged project, which provides pre-packaged versions of SNX for Debian/Ubuntu systems The latest version available is 800008409, which is compatible with Debian 13 (Bookworm)

Follow these steps:

  1. Install the required 32-bit architecture and dependencies:
    sudo dpkg --add-architecture i386
    sudo apt-get update
@programmerShinobi
programmerShinobi / intellij-idea-community-edition-installation-on-linux.md
Created July 28, 2025 16:32
IntelliJ IDEA Community Edition Installation on Linux

IntelliJ IDEA Community Edition Installation on Linux

Step 1: Download IntelliJ IDEA Community Edition

  1. Visit the official JetBrains IntelliJ IDEA download page.
  2. Select the Community Edition and download the .tar.gz file for Linux.
  3. Alternatively, use the following wget command to download the file directly (make sure to replace the version number with the latest version):

Git Push to GitHub Using SSH

Introduction

This tutorial will guide you through the process of setting up SSH authentication with GitHub and pushing your code to a GitHub repository using SSH.

Prerequisites

  • A GitHub account.
  • Git installed on your local machine.

RBAC with JWT Authentication in Express

This project demonstrates how to implement Role-Based Access Control (RBAC) using JWT authentication in an Express.js application. The app will handle authentication and authorization based on user roles: Admin, Editor, and Viewer. Each role has different levels of access to various routes.


Project Setup

1. Initialize the Project

@programmerShinobi
programmerShinobi / steps-to-clone-a-git-repository-and-push-for-the-first-time-on-a-new-pc.md
Last active November 4, 2024 01:55
Steps to Clone a Git Repository and Push for the First Time on a New PC

Steps to Clone a Git Repository and Push for the First Time on a New PC

1. Ensure Git is Installed

If you haven't installed Git on your PC, download and install it from the official Git website.

2. Configure Git

Set your global username and email:

$ git config --list --show-origin
$ git config --global user.name "Your Name"
@programmerShinobi
programmerShinobi / redis-commander.md
Last active October 25, 2024 12:15
Redis Commander

Redis Commander

Here’s how you can use the KEYS command in Redis Commander:

Keys: KEYS

  • Command: KEYS pattern
  • Function: The KEYS command is used to find all keys matching a specific pattern. This can be especially helpful when you want to locate keys with a common prefix, suffix, or specific pattern in their names. In Redis Commander, you can use this command to search for keys that match the pattern you specify.
  • Example:
    • Pattern: example:*
  • Command: KEYS example:*
@programmerShinobi
programmerShinobi / steps-to-update-version-push-and-manage-git-tags.md
Last active December 8, 2024 21:32
Steps to Update NPM Version, Push, and Manage Git Tags

Steps to Update NPM Version and Manage Git Tags

1. Update the NPM | YARN Version

Run the command below to increment the version:

$ yarn version --new-version 1.0.1 -m "<message>"

or

$ npm version  -m ""
@programmerShinobi
programmerShinobi / deployment-manual-instructions-for-updating-an-application-or-service-using-docker.md
Last active October 24, 2024 15:05
Deployment Manual Instructions for Updating an Application or Service (ahi-backend) from Version 1.2.32 to Version 1.2.33 Using Docker

Instructions for deploying the ahi-backend version 1.2.33 using Docker

Steps

  1. Navigate to the project directory:

    cd workspace/ahi-backend/
  2. Check the active Git branch:

@programmerShinobi
programmerShinobi / how-to-install-php-and-composer-on-linux-ubuntu.md
Last active April 9, 2025 01:04
How to install PHP & Composer with extension (sqlsrv & pdo_sqlsrv) on Linux (Ubuntu 22.04)

Install PHP and Composer

1. Install PHP

Update and upgrade the system:

$ sudo apt update
$ sudo apt upgrade
@programmerShinobi
programmerShinobi / how-to-create-or-update-file.md
Last active October 24, 2024 15:01
How To Create Or Update a File

Create or Update test.txt

To create or update the test.txt file using the following command:

$ cat << EOF > test.txt
  This is the first line.
  This is the second line.
 EOF