Skip to content

Instantly share code, notes, and snippets.

View agnanp's full-sized avatar

Agnan Primahardika agnanp

  • Yogyakarta, Indonesia
  • 05:34 (UTC +07:00)
View GitHub Profile
@agnanp
agnanp / README.md
Last active January 30, 2025 07:32 — forked from disler/README.md
Use Meta Prompting to rapidly generate results in the GenAI Age

Meta Prompting

In the Generative AI Age your ability to generate prompts is your ability to generate results.

Guide

Claude 3.5 Sonnet and o1 series models are recommended for meta prompting.

Replace {{user-input}} with your own input to generate prompts.

Use mp_*.txt as example user-inputs to see how to generate high quality prompts.

@agnanp
agnanp / lightgreen_nan.omp.json
Last active April 19, 2024 03:40
my lightgreen ohmyposh theme
{
"$schema": "https://raw.githubusercontent.com/JanDeDobbeleer/oh-my-posh/main/themes/schema.json",
"blocks": [
{
"alignment": "left",
"segments": [
{
"background": "#000000",
"foreground": "#dd1e1e",
"style": "plain",
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@agnanp
agnanp / compress_img.py
Last active March 28, 2023 12:51
Compress images in one directory using MozJPEG Lossless Optimization
from io import BytesIO
from PIL import Image # pip install pillow
import mozjpeg_lossless_optimization # pip install mozjpeg-lossless-optimization
import sys
import os
import argparse
def parse_args():
"""Parse input arguments."""