Skip to content

Instantly share code, notes, and snippets.

View cybergitt's full-sized avatar
๐ŸŽฏ
Focusing

Sigit Prayitno cybergitt

๐ŸŽฏ
Focusing
View GitHub Profile
/*
JPA (Java Persistence API)
Transaction Management with an Entity-Mananger:
---
entityManager.getTransaction().begin();
entityManager.persist(<some-entity>);
entityManager.getTransaction().commit();
entityManager.clear();
SomeEntity entity = entityManager.find(SomeEntity.class, 1);
---
@cybergitt
cybergitt / Application-Development-Stages.md
Created May 21, 2023 13:16
Catatan mengenai tahapan-tahapan dalam pembuatan aplikasi

Tahapan Dalam Pembuatan Aplikasi

1. Business Requirement Document (BRD)

  • Hasil riset tim produk/bisnis/operation (non-tech)
  • Aplikasi apa yang mau dibuat? fiturnya apa aja?
  • Breakdown timelinenya (per bulan delivernya apa aja?)
  • Bagaimana flowchart bisnisnya? (bukan flowchart aplikasi)

2. User Interface/User Experience (UI/UX)

  • Deliver berupa UI aplikasi lengkap beserta flownya
@cybergitt
cybergitt / app.module.ts
Created June 20, 2023 06:33 — forked from mafalt/app.module.ts
NestJS + TypeORM configuration
import { Module } from '@nestjs/common';
import { ConfigModule, ConfigService } from '@nestjs/config';
import { TypeOrmModule } from '@nestjs/typeorm';
import { getTypeOrmModuleOptions } from './config/orm.config';
import { CoreModule } from './core/core.module';
@Module({
imports: [
ConfigModule.forRoot({
isGlobal: true,
@cybergitt
cybergitt / openssl-cheatseet.md
Created April 30, 2024 02:20
OpenSSL Commands Cheat Sheet

OpenSSL Commands Cheat Sheet

RSA Commands

generate a private key with the correct length

openssl genrsa -out rsa-3072-priv-key.pem 3072

or

Ubuntu-Server-Hardening

Keep System up to Date

An extremely crucial part of hardening any system is to ensure that it is always kept up to date. Doing this will keep any known bugs or vulnerabilities patched. The following commands are ways to update an Ubuntu system:

apt-get update && apt-get upgrade

Secure Shared Memory

@cybergitt
cybergitt / fix-git-error.md
Last active July 3, 2024 03:37
Fix Git Error Compilations

Fix Git Error Compilations

Your Local Changes Would Be Overwritten by Merge

If you have modified files that also have modifications in the remote repository, you may receive the "your local changes to the following files would be overwritten by merge" error message.

How to Fix "Your Local Changes to the Following Files Would Be Overwritten by Merge"

Fix 1: Force a Pull to Overwrite Local Changes

@cybergitt
cybergitt / basic-linux-commands.md
Created July 11, 2024 04:53
Basic Linux commands

๐„๐ฌ๐ฌ๐ž๐ง๐ญ๐ข๐š๐ฅ ๐Ÿ“๐ŸŽ ๐๐š๐ฌ๐ข๐œ ๐‹๐ข๐ง๐ฎ๐ฑ ๐‚๐จ๐ฆ๐ฆ๐š๐ง๐๐ฌ: ๐Œ๐š๐ฌ๐ญ๐ž๐ซ ๐˜๐จ๐ฎ๐ซ ๐‚๐จ๐ฆ๐ฆ๐š๐ง๐ ๐‹๐ข๐ง๐ž ๐’๐ค๐ข๐ฅ๐ฅ๐ฌ ๐Ÿง

  • ๐ฉ๐ฐ๐ - Print working directory. ๐Ÿ“‚
  • ๐ฅ๐ฌ - List directory contents. ๐Ÿ“‹
  • ๐œ๐ - Change directory. ๐Ÿ“
  • ๐ญ๐จ๐ฎ๐œ๐ก - To create a file without any content. ๐Ÿ“„
  • ๐œ๐š๐ญ - Concatenate and display file content. ๐Ÿฑ
  • ๐œ๐ฉ - Copy files or directories. ๐Ÿ“๐Ÿ“‚
  • ๐ฆ๐ฏ - Move or rename files or directories. ๐Ÿ”„
  • ๐ซ๐ฆ - Remove files or directories. ๐Ÿ—‘๏ธ
@cybergitt
cybergitt / configuring-no-subscription-repository-in-proxmox-ve-8x.md
Last active February 21, 2025 15:07
Configuring No Subscription Repository in Proxmoxm VE 8.x

Configuring No Subscription Repository in Proxmoxm VE 8.x

Proxmox VE is a robust open-source solution for virtualization, widely popular among home lab enthusiasts. By default, Proxmox is configured to use Enterprise repositories that require a subscription. For home lab setups where budget constraints are a consideration, purchasing a subscription may not be feasible. Fortunately, Proxmox provides a no subscription repository that you can use to keep your server updated without needing a subscription. In this tutorial, we'll walk you through the process of configuring your Proxmox VE installation to use no subscription repositories.

Understanding the Need for No Subscription Repositories

When you first set up Proxmox VE, it is configured to use Enterprise repositories, which require a paid subscription for access. Without a subscription, you won't be able to fetch updates from these repositories, which is critical for maintaining a secure and up-to-date system. By switching to the no subscription r

@cybergitt
cybergitt / ubuntu-cli-rocks.md
Created January 1, 2025 05:48
Ubuntu CLI Rocks

Ubuntu CLI Rocks

List of ubuntu commands

Check Specific Port Is Open

To check if a specific port is open on your Ubuntu server, you can use the netstat or ss command. For example, to check if port 80 is open, run:

sudo netstat -tuln | grep :80

or

sudo ss -tuln | grep :80