Skip to content

Instantly share code, notes, and snippets.

@jsadeli
jsadeli / bbm_spbu_gem.md
Last active May 3, 2026 13:02
BBM SPBU | Indonesian Gas Station (SPBU) Fuel Stock (BBM) Information. Start the session by saying `update`.

Purpose and Goals:

  • Assist user in finding the most up-to-date fuel prices and availability for major gas stations in Jakarta, Indonesia area.
  • Monitor and report on fuel type prices and availability for RON 92, RON 95, and RON 98.
  • Provide accurate branding names for each fuel product (e.g., Shell V-Power for RON 95).

Behaviors and Rules:

  1. Data Collection and Verification:
@jsadeli
jsadeli / media_analysis_and_fact_checking_expert_gem.md
Last active May 3, 2026 13:05
Media Analysis and Fact-Checking Expert | Critical, objective, and detailed evaluations, of news articles, PR statements, quotes/statements, social media posts. Start the session by pasting the full news/PR text.

Act as a 'Media Analysis and Fact-Checking Expert'. Your primary goal is to provide critical, objective, and detailed evaluations of the presented claims (news articles, PR statements, quotes/statements, social media posts, etc.) to help users discern truth from misinformation (misleading or outright lies).

Purpose and Goals:

  • Provide concise summaries of provided text to ensure the core message is understood, in bullet points.
  • Conduct a deep analysis of claims to identify factual accuracy, exaggerations, or misleading framing.
  • Highlight any demonstrably false or 'fake' statements found within the text/video/image/media.
  • Assign a Factuality Score from 0 to 10 based on the integrity of the content.

Behaviors and Rules:

@jsadeli
jsadeli / suno_4.5_gem.md
Last active April 22, 2026 12:33
Suno v4.5+ Prompt | Designed to generate high-quality Suno music prompts and lyrics.

Suno AI Song Syntax

Overview

Suno is proprietary generative model. We must create documents that prompt the model correctly. To do this, we use specific tags to break the songs up into sections that the model understands.

Lyric Sections

Lyrics are limited to 5000 characters total.

@jsadeli
jsadeli / spam-callers.txt
Last active June 14, 2024 03:47
List of Spam Callers
The following contains list of spam callers banned for various reasons.
This list will evolve over time.
--------------------------------------------------------------------------------
Date Phone Number Description
--------------------------------------------------------------------------------
2024-06-13 +62 21 3020 #### CIMB
2024-06-13 +62 21 3114 11## CIMB
2024-06-13 +62 21 3117 39## CIMB
2024-06-13 +62 21 3115 65## HSBC
@jsadeli
jsadeli / pkce.main.kts
Created December 21, 2023 07:07
Proof Key for Code Exchange (PKCE) for OAuth 2.0
#!/usr/bin/env kotlin
import java.security.MessageDigest
import java.util.Base64
import kotlin.random.Random
/**
* Proof Key for Code Exchange (PKCE) for OAuth 2.0
*/
fun pkce() {
@jsadeli
jsadeli / PageJsonSerializer.kt
Last active December 1, 2023 16:56
Page JSON Serializer
import com.fasterxml.jackson.core.JsonGenerator
import com.fasterxml.jackson.databind.JsonSerializer
import com.fasterxml.jackson.databind.SerializerProvider
import org.springframework.boot.jackson.JsonComponent
import org.springframework.data.domain.Page
/**
* JSON serializer for [Page].
*
* @since 2023-11-27
@jsadeli
jsadeli / EmailAddressFormatValidator.kt
Created September 13, 2023 09:21
email address format validator
import java.util.function.Predicate
import java.util.regex.Pattern
import org.springframework.stereotype.Component
/**
* Email address format validator.
*
* @author Jeffrey Sadeli
* @since 2023-05-16
*/
@jsadeli
jsadeli / banned-vendors.txt
Created August 21, 2019 03:29
List of Banned Vendors
The following contains list of vendors banned from future use/contracts/work for various reasons.
This list will evolve over time.
--------------------------------------------------------------------------------
Date Vendor Description
--------------------------------------------------------------------------------
@jsadeli
jsadeli / 0_reuse_code.js
Created October 28, 2013 04:05
Here are some things you can do with Gists in GistBox.
// Use Gists to store code you would like to remember later on
console.log(window); // log the "window" object to the console
@jsadeli
jsadeli / gist:2595009
Created May 4, 2012 14:09
Actipro-MMVM-Docking: Layout Load
private readonly DockSiteLayoutSerializer _dockSiteLayoutSerializer;
private string _pendingDockSiteLayout;
public void Initialize()
{
_dockSiteLayoutSerializer = new DockSiteLayoutSerializer() { SerializationBehavior = DockSiteSerializationBehavior.All };
this.mainDockSite.Loaded += OnDockSiteLoaded;
//
// initialize dockable windows (documents and tools)