Skip to content

Instantly share code, notes, and snippets.

View codersidprogrammer's full-sized avatar

codersidprogrammer

View GitHub Profile
@codersidprogrammer
codersidprogrammer / review
Created August 19, 2026 13:28
review rekomendasi
---
title: Cross-Reference Rekomendasi MUBES GEC 2026 terhadap PKB 2025–2027
date: 19-Aug-2026
tags:
- review
- council
- deep
- human-capital
- ketenagakerjaan
- pkb
@codersidprogrammer
codersidprogrammer / agent.md
Created August 3, 2026 12:54
Training of Trainer agent

Aircraft Maintenance Planning Agent

1. Identity

You are an Aircraft Maintenance Planning Agent supporting aircraft maintenance projects for commercial aircraft.

Your expertise includes maintenance planning, manpower estimation, project scheduling, work package analysis, critical path identification, maintenance cost estimation, and project performance evaluation.

You think like an experienced aircraft planner who balances schedule, manpower, cost, and operational constraints.

@codersidprogrammer
codersidprogrammer / main.c
Last active June 16, 2026 05:10
Tugas pemrograman BION
/******************************************************************************
Online C Compiler.
Code, Compile, Run and Debug C program online.
Write your code in this editor and press "Run" button to compile and execute it.
*******************************************************************************/
#include <stdio.h>
@codersidprogrammer
codersidprogrammer / role.validator.ts
Created March 19, 2025 01:52
Sample of usage role as interface. So that we can generate class for every role
/**
*
[
{
"name": "VP",
"permissions": ["view_all_projects", "edit_all_projects"]
},
{
"name": "Manager",
"permissions": ["view_team_projects", "edit_team_projects"]
@codersidprogrammer
codersidprogrammer / app.module.ts
Created October 9, 2024 04:12
Make deactivate default log for NestJS Eureka Connector
...
EurekaModule.forRoot({
disable: false,
disableDiscovery: false,
eureka: {
host: process.env.EUREKA_HOST || 'localhost',
port: Number(process.env.EUREKA_PORT) || 8761,
registryFetchInterval: Number(process.env.EUREKA_INTERVAL) || 1000,
servicePath: '/eureka/apps',
maxRetries: 3,
import { Injectable } from '@nestjs/common';
import { EventEmitter2 } from '@nestjs/event-emitter';
import {
$Enums,
StopReason,
Teams,
TransactionActiveJob,
TransactionStopJob,
} from '@prisma/client';
import { plainToClass } from 'class-transformer';
@codersidprogrammer
codersidprogrammer / change_type.sql
Created August 5, 2024 08:35
Change ENUM Type for PostgreSQL
-- Mochammad Dimas Editya
-- https://youtube.com/codersindonesia
--
-- Bukan orang GMF
-- Change ENUM Type in PostgreSQL
--
-- 1. Change enum name into another. So no one will use it
ALTER TYPE public."BudgetEnum" RENAME TO budgetenum;
-- 2. Create new enum type as you wish
// Part 1
let kota:string;
let tahun:number;
let isActive: boolean;
kota = 'bandung';
tahun = 2024;
isActive = true;
// Part 2

XOPS Logo

Description

XOPS API Built on NestJS. It use as backend service for XOPS Environment. XOPS is application that built for recording manhours of work. So you can write and log all activity while you work.

@codersidprogrammer
codersidprogrammer / ObjectMapperUtil.java
Created December 29, 2023 06:45
Convert plain object into POJO
package com.gmf.tms.utils;
import com.fasterxml.jackson.core.JsonProcessingException;
import com.fasterxml.jackson.databind.ObjectMapper;
import org.modelmapper.ModelMapper;
import org.modelmapper.convention.MatchingStrategies;
import org.springframework.beans.factory.annotation.Autowired;
import java.util.Collection;
import java.util.List;