Skip to content

Instantly share code, notes, and snippets.

View mqnoy's full-sized avatar
🏠
Working from home

imza mqnoy

🏠
Working from home
  • Jakarta, Indonesia
View GitHub Profile

Emergency Guide: Removing Sensitive Files from Git History

If you accidentally commit sensitive files (like credentials or secret keys) and push them to a remote repository, follow these steps to remove them and ensure they are unrecoverable.

1. Immediate Local Fix (The "Oops" Moment)

If the commit is the most recent one, you can "amend" it or "reset" it.

Option A: Remove the file but keep other changes

@mqnoy
mqnoy / camunda8-docker-compose.yaml
Created December 20, 2025 17:27
camunda 8 docker compose
services:
elasticsearch:
image: docker.elastic.co/elasticsearch/elasticsearch:7.17.19
container_name: elasticsearch
environment:
- discovery.type=single-node
- xpack.security.enabled=false
- ES_JAVA_OPTS=-Xms512m -Xmx512m
volumes:
- ./data/elasticsearch:/usr/share/elasticsearch/data
@mqnoy
mqnoy / poc-base-crud.ts
Last active May 24, 2025 16:32
POC sequelize Model with base CRUD interface for repository
import {
DestroyOptions,
UpdateOptions,
DataTypes,
Model,
Optional,
Sequelize,
WhereOptions,
} from 'sequelize'
@mqnoy
mqnoy / haproxy.cfg
Created March 27, 2025 22:57
haproxy_minio
frontend https_front
bind *:443 ssl crt /etc/haproxy/certs/minio.pem
mode http
option forwardfor
http-request add-header X-Forwarded-Proto https if { ssl_fc }
acl is_console path_beg /console
use_backend minio_console if is_console
default_backend minio_api
@mqnoy
mqnoy / Redux-Persist with Next.js 14 App Router.md
Last active August 8, 2025 02:57
Redux-Persist with Next.js 14 App Router

regarding the issue redux-persist failed to create sync storage. falling back to noop storage i found the solution for implementing redux-persist on NextJS with approuter

currently i'm using:

"next": "14.2.5",
"redux-persist": "^6.0.0",
"react-redux": "^9.1.2",
"@reduxjs/toolkit": "^2.2.6",
@mqnoy
mqnoy / setup.md
Created August 13, 2024 10:56 — forked from Yatoom/setup.md
Thinkfan configuration

Thinkfan setup

Note: I configured this thinkfan setup for my old Thinkpad w520 on Ubuntu 17.10.

1. Install necessary programs

Install lm-sensors and thinkfan.

sudo apt-get install lm-sensors thinkfan
@mqnoy
mqnoy / Dockerfile
Created August 9, 2024 23:35
NextJS 14 SSR + CSR Docker
FROM node:20-alpine AS builder
RUN npm install -g pnpm
WORKDIR /app
COPY package.json pnpm-lock.yaml ./
RUN pnpm install --frozen-lockfile --prod
@mqnoy
mqnoy / httrq.go
Created June 4, 2024 04:27
http client go
package httprq
import (
"bytes"
"encoding/json"
"net/http"
"net/url"
"sync"
"time"
)
@mqnoy
mqnoy / whatsapp-web-emoji-keywords.txt
Created June 2, 2024 14:08 — forked from hkan/whatsapp-web-emoji-keywords.txt
Emoji shortcut keywords for Whatsapp Web
0⃣ 0, keycap, zero
1⃣ 1, number, one
🕜 1, 30, clock, time, one, thirty, 1:30, one-thirty
🕐 1, clock, time, one, 00, o’clock, 1:00, one o’clock
2⃣ 2, number, two
🕝 2, 30, clock, time, two, thirty, 2:30, two-thirty
🕑 2, clock, time, two, 00, o’clock, 2:00, two o’clock
3⃣ 3, keycap, three
🕞 3, 30, three, clock, time, thirty, 3:30, three-thirty
🕒 3, three, clock, time, 00, o’clock, 3:00, three o’clock