Skip to content

Instantly share code, notes, and snippets.

View apsolut's full-sized avatar
🏠
Working from home

Aleksandar Perisic apsolut

🏠
Working from home
View GitHub Profile
@apsolut
apsolut / designswarm.md
Created July 28, 2026 23:12 — forked from jshmllrpanther/designswarm.md
designswarm.md
name design-swarm
description Orchestrate a multi-agent swarm that analyzes a codebase for UI elements, then draws them in Paper.design using the Prowl design system. Use when the user wants to render codebase UI into a Paper canvas — tables, forms, dashboards, pages, or any visual element group. Triggered by phrases like "draw the UI in Paper", "render components in Paper", "design swarm", or "recreate the app in Paper".

Design Swarm — Codebase → Paper.design Orchestrator

You are a swarm orchestrator. Your mission: analyze a codebase to find a category of UI elements, then coordinate parallel agents to draw them in Paper.design matching the Prowl Storybook design system.

Arguments

@apsolut
apsolut / hubspot-multi-step-next-step-validation.js
Last active April 19, 2026 03:44
HubSpot Multi-step form validation , if required field not filled cant go to next step
/****
*
* @LINK https://github.com/apsolut-public/hubspot/tree/main/modules/multistep-form-validation.module
*
*/
(function () {
'use strict';
@apsolut
apsolut / final-review-gist.md
Created January 29, 2026 22:53 — forked from patyearone/final-review-gist.md
Claude Code /final-review slash command - Comprehensive PR review workflow with parallel agents

Final Review - Comprehensive PR Review & Testing

Step 0: Determine Review Pass

Before starting, check the git history to determine if this is a follow-up review:

git log --oneline -10 | grep -i "Co-Authored-By: Claude"
@apsolut
apsolut / x.user.js
Created December 12, 2025 13:28 — forked from sorah/x.user.js
// ==UserScript==
// @name correct aws what's new article page <title>
// @description correct
// @namespace http://tampermonkey.net/
// @version 2025-08-07
// @author sorah.jp
// @match https://aws.amazon.com/about-aws/whats-new/*
// @icon https://www.google.com/s2/favicons?sz=64&domain=amazon.com
// @grant none
// ==/UserScript==
@apsolut
apsolut / a.md
Created December 12, 2025 13:28 — forked from sorah/a.md
reinvent25-rainfocus-calendar-more-data.user.js

user script for re:Invent 2025 event portal to improve its calendar by:

  • show code, type and venue on the calendar directly
  • highlight sessions where isn't a breakout session and you have no reserved seat

Confirmed working with Tampermonkey.

before

@apsolut
apsolut / acf-on-cpt-archive.php
Last active October 29, 2025 00:08
acf-on-cpt-page
<?php
/* Add ACF Options Page */
if( function_exists('acf_add_options_page') ) {
/*
$page = acf_add_options_page(array(
'page_title' => 'Applications',
@apsolut
apsolut / exclude-things-pre-get-posts.php
Last active October 29, 2025 00:07
exclude things in wordpress
<?php
/**
* https://www.wpbeginner.com/plugins/how-to-exclude-specific-pages-authors-and-more-from-wordpress-search/
*/
add_action( 'pre_get_posts', 'exclude_things_from_query_bojan', 9999 );
function exclude_things_from_query_bojan( $query ) {
if ( !is_admin() && $query->is_main_query() ) {
@apsolut
apsolut / unset-image-sizes-intermediate-image-filter.php
Last active October 29, 2025 00:06
Unset WordPress image sizes
<?php
/**
* @Llink https://perishablepress.com/disable-wordpress-generated-images/
* @link https://developer.wordpress.org/reference/hooks/intermediate_image_sizes_advanced/
* @link https://hookr.io/4.9/filters/image_size_names_choose/
*/
/*---------- Register hooks in order of execution ----------*/
add_filter( 'intermediate_image_sizes_advanced', 'decomtheme_images_remover', 10, 1 );
@apsolut
apsolut / wrap-elements.js
Created January 8, 2021 23:26
VJ wrap elements vanilla javascript
function wrap(top, selector, bottom){
var matches = document.querySelectorAll(selector);
for (var i = 0; i < matches.length; i++){
var modified = top + matches[i].outerHTML + bottom;
matches[i].outerHTML = modified;
}
}
wrap("<div class='wrapper'>", ".caption-services-apps-ext-WordPress", "</div>");
@apsolut
apsolut / security-checklist.md
Created April 12, 2025 17:29 — forked from mattppal/security-checklist.md
A simple security checklist for your vibe coded apps

Frontend Security

Security Measure Description
☐ Use HTTPS everywhere Prevents basic eavesdropping and man-in-the-middle attacks
☐ Input validation and sanitization Prevents XSS attacks by validating all user inputs
☐ Don't store sensitive data in the browser No secrets in localStorage or client-side code
☐ CSRF protection Implement anti-CSRF tokens for forms and state-changing requests
☐ Never expose API keys in frontend API credentials should always remain server-side