Skip to content

Instantly share code, notes, and snippets.

View adiprnm's full-sized avatar

Adi Purnama adiprnm

View GitHub Profile
---
name: carousel-creator
description: "Membuat carousel slides aesthetic untuk social media (Instagram, LinkedIn, Twitter/X, Facebook, TikTok) menggunakan HTML/CSS, lalu convert ke PNG via Chrome headless. Selalu gunakan frontend-design skill untuk arah desain dan custom prompt template anti-emdash. Use when the user mentions 'carousel,' 'carousel slides,' 'buat carousel,' 'slide deck,' 'multi-slide post,' 'swipe post,' or wants visual slide content for social media. Untuk caption-nya, gunakan caption-writer-sms."
metadata:
version: 1.0.0
---
# Carousel Creator
## When to Use
@adiprnm
adiprnm / obfuscate.rb
Last active July 27, 2025 13:59
Obfuscate the text within a file
# Usage: ruby obfuscate.rb /path/to/file line-offset
# Example: ruby obfuscate.rb ./test.md 3
# The command above will obfuscate the text in the given file path from line 4 onwards. The obfuscated result will be stored in ./test-obfuscated.md
def obfuscate(text)
return text if text == ''
text.split(' ').map do |token|
token.chars.map do |char|
if char.ord.between?(65, 90)