Skip to content

Instantly share code, notes, and snippets.

View isu3ru's full-sized avatar

Isuru Ranawaka isu3ru

  • Sri Lanka
  • 09:52 (UTC +05:30)
View GitHub Profile
@joswr1ght
joswr1ght / pentest-webapp.md
Last active November 15, 2026 14:31
AI Skill for Vulnerability Discovery using Source Code
name pentest-webapp
description Crystal-box web application security audit. Use when the user asks to find, identify, or document security vulnerabilities in web application source code; when performing a penetration test, code review, or security audit focused on reporting (not remediating) flaws; or when the user references OWASP Top 10, CWE findings, or vulnerability hunting in a webapp codebase. Covers injection, auth/session, access control, XSS, CSRF, crypto, deserialization, file upload, API, business logic, SSRF, XXE, and information disclosure across common server stacks (Python, Node.js, Java, Go, PHP, Ruby, .NET).

Web Application Security Audit

Purpose

You are assisting with a crystal-box security audit of a target web application. Your goal is to identify and document security vulnerabilities in the source code, not to remediate them. Focus on objective, verifiable flaws that could be exploited.

@isu3ru
isu3ru / laravel-blade-cheetsheet.txt
Last active June 10, 2024 04:21
Commands for Laravel Blade template engine
{{ $var }} - Echo content
{{ $var or 'default' }} - Echo content with a default value
{{{ $var }}} - Echo escaped content
{{-- Comment --}} - A Blade comment
@extends('layout') - Extends a template with a layout
@if(condition) - Starts an if block
@else - Starts an else block
@protrolium
protrolium / ffmpeg.md
Last active October 18, 2026 15:03
ffmpeg guide

ffmpeg

Converting Audio into Different Formats / Sample Rates

Minimal example: transcode from MP3 to WMA:
ffmpeg -i input.mp3 output.wma

You can get the list of supported formats with:
ffmpeg -formats

You can get the list of installed codecs with:

@tonylukasavage
tonylukasavage / script.sh
Created May 29, 2013 18:18
Move all uncommitted changes to a new branch and revert the existing branch to HEAD. "master" has uncommitted changes. You decided you'd rather make those changes in "dev_branch". Here's how to move those uncommitted changes to "dev_branch" and then revert "master" to its last commit.
# get into the master branch
git checkout master
# create a new branch for the changes and check it out
git checkout -b dev_branch
# stash the changes until we revert master
git stash
# go back to master
@mathewbyrne
mathewbyrne / slugify.js
Created October 12, 2011 04:34
Javascript Slugify
function slugify(text)
{
return text.toString().toLowerCase()
.replace(/\s+/g, '-') // Replace spaces with -
.replace(/[^\w\-]+/g, '') // Remove all non-word chars
.replace(/\-\-+/g, '-') // Replace multiple - with single -
.replace(/^-+/, '') // Trim - from start of text
.replace(/-+$/, ''); // Trim - from end of text
}