Skip to content

Instantly share code, notes, and snippets.

View padulkemid's full-sized avatar
+ -

Fadhil Muhammad padulkemid

+ -
View GitHub Profile
@p-mng
p-mng / README.md
Last active September 1, 2026 00:14
Uninstall Rosetta 2 on macOS

Uninstall Rosetta 2 on macOS

1. Disable SIP (System Integrity Protection)

  1. Boot into recovery
  2. Open a terminal (Utilities > Terminal)
  3. Disable SIP using csrutil disable (confirm the prompt with y)
  4. Reboot into macOS

2. Uninstall Rosetta

@jdah
jdah / macro_explanation.c
Created January 31, 2024 14:21
explaining some C macro magic
// so a cool trick with macros in C (and C++) is that since macros inside of
// macros are stille evaluated by the preprocessor, you can use macro names as
// parameters to other macros (and even construct macro names out of out of
// parameters!) - so using this trick if we have some macro like
// this:
#include <stddef.h>
#define MY_TYPES_ITER(_F, ...) \
_F(FOO, foo, 0, __VA_ARGS__) \
@cidromero
cidromero / neomutt-setup.md
Last active May 10, 2026 15:05
Basic Setup For Multiple Gmail Accounts In Neomutt

Basic Setup For Multiple Gmail Accounts In Neomutt

Just started using Neomutt, so my setup is still very basic.
It was quite a headache getting it to work with multiple Gmail accounts.
Hopefully the information below helps you and future me.

References

@xianmin
xianmin / org-mode-reference-in.org
Created September 29, 2020 06:26 — forked from drj42/org-mode-reference-in.org
This is a cheat sheet for Emacs org-mode... in org-mode format!

Aligning images

left alignment

This is the code you need to align images to the left:

@codfish
codfish / #linting.md
Last active September 20, 2025 18:34
Prettier + ESLint + Husky + lint-staged + commitlint

My personal & professional linting setup for JS projects.

  • Modern ESLint v9+ flat config: Uses the new flat configuration format
  • Dynamic feature detection: Automatically configures based on your project's dependencies
  • TypeScript support: Full TypeScript linting with modern typescript-eslint parser and rules
  • React ecosystem: React, React Hooks, and JSX accessibility rules when React is detected
  • Next.js support: Automatically configures Next.js official plugin linting rules when detected
  • Test framework agnostic: Supports Jest and Vitest with automatic detection
  • Testing Library integration: Automatically includes Testing Library rules for test files
  • YAML/YML support: Built-in linting for YAML configuration files
@joeytwiddle
joeytwiddle / async-await-forEach-alternatives.md
Last active February 14, 2026 23:01
Do not use forEach with async-await

Do not use forEach with async-await

TLDR: Use for...of instead of forEach() in asynchronous code.

For legacy browsers, use for(...;...;...) or [].reduce()

To execute the promises in parallel, use Promise.all([].map(...))

The problem

@laurenfazah
laurenfazah / express_postgress_knex.md
Last active August 10, 2026 19:55
Cheat Sheet: Setting up Express with Postgres via Knex

Express & Postgres via Knex

Note: <example> is meant to denote text replaced by you (including brackets).

Setup

// global dependencies
npm install -g knex
@saitoha
saitoha / suckless-st-sixel.diff
Last active June 3, 2026 13:08
Add SIXEL graphics support for suckless st. (sixel.c/sixel_hls.c come from mintty, licensed under GPL)
commit ea830e03d4d4562b1ff225940f65bceddd9cad6c
Author: Hayaki Saito <saitoha@me.com>
Date: Sun Jun 11 23:46:45 2017 +0900
Add sixel graphics support
Signed-off-by: Hayaki Saito <saitoha@me.com>
diff --git a/Makefile b/Makefile
index d8595fe..a25d040 100644

Aligning images

This is a guide for aligning images.

See the full Advanced Markdown doc for more tips and tricks

left alignment