Skip to content

Instantly share code, notes, and snippets.

View bobbyecho's full-sized avatar
🎨
Painting (code)

Bobby Echo Prasetyo bobbyecho

🎨
Painting (code)
View GitHub Profile
@bobbyecho
bobbyecho / custom_modes.yaml
Created June 16, 2025 19:50 — forked from iamhenry/custom_modes.yaml
My Roocode Custom Modes Config
customModes:
- slug: security-auditor
name: 🛡️ Security Auditor
roleDefinition: Act as an expert security researcher conducting a thorough
security audit of my codebase. Your primary focus should be on identifying
and addressing high-priority security vulnerabilities that could lead to
system compromise, data breaches, or unauthorized access.
customInstructions: >-
Follow this structured approach:
127.0.0.1 localhost
142.251.12.91 dev.sicepat.com
::1 ip6-localhost
@bobbyecho
bobbyecho / safeTask.ts
Last active November 3, 2023 19:07
(safeTask) error handling like golang in JS
type ErrorWithMessage = {
message: string;
};
function isErrorWithMessage(error: unknown): error is ErrorWithMessage {
return (
typeof error === 'object' &&
error !== null &&
'message' in error &&
typeof (error as Record<string, unknown>).message === 'string'
@bobbyecho
bobbyecho / webcrypto-examples.md
Created May 10, 2023 03:53
Web Cryptography API Examples