Skip to content

Instantly share code, notes, and snippets.

@lukehedger
lukehedger / ffmpeg-compress-mp4
Last active August 27, 2025 23:42
Compress mp4 using FFMPEG
$ ffmpeg -i input.mp4 -vcodec h264 -acodec mp2 output.mp4
@mattppal
mattppal / security-checklist.md
Last active August 27, 2025 23:39
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
@aamiaa
aamiaa / CompleteDiscordQuest.md
Last active August 27, 2025 23:36
Complete Recent Discord Quest

Complete Recent Discord Quest

Note

This does not works in browser for non-video, non-activity quests! For stream/play quests use the desktop app!

Note

When doing stream quests, you need at least 1 other account in the vc!

How to use this script:

  1. Accept a quest under Discover -> Quests
@asheroto
asheroto / README.md
Last active August 27, 2025 23:35
Bypass Windows 11 Upgrade Assistant / PC Health Check / TPM and CPU Settings. Ignore PC Health Check results.

Bypass Windows 11 Upgrade Assistant / Setup Hardware Checks (TPM, CPU, RAM)

This PowerShell script allows you to bypass TPM 2.0, unsupported CPU, and memory checks enforced by the Windows 11 Upgrade Assistant and setup.exe from Windows installation media. It eliminates common upgrade blocks such as:

  • This PC doesn't currently meet Windows 11 system requirements.
  • TPM 2.0 must be supported and enabled on this PC.
  • The processor isn't currently supported for Windows 11.

What It Does

@entrepeneur4lyf
entrepeneur4lyf / structured-decision-optimization-cline
Created March 3, 2025 04:12
Structured Decision Optimization Framework (RL-inspired) - for Cline
<Prompt>
<Context>
You're tasked with coding a project and need to follow specific guidelines to ensure quality and consistency across various programming languages and frameworks.
</Context>
<Progress>
Document all tasks. Create a folder in the project root named .cline and keep a log of tasks in the following format.
GOAL: Detail the goal of the task
IMPLMENTATION: Describe how it was implemented.
@Megatron1000
Megatron1000 / LogReportCreator.swift
Created April 29, 2022 21:22
Export OSLog To File
import Foundation
import OSLog
@available(iOS 15.0, *)
final class LogReportCreator {
enum LogReportCreatorError: Error {
case noEntries
case unableToFindCachesDirectory
case unknownError(error: Error)
@amanjuman
amanjuman / Install V2RayA Client on OpenWRT and Configure Outline 2023
Last active August 27, 2025 23:28
Install V2RayA Client on OpenWRT and Configure Outline 2023
## You need to remove the default dnsmasq package.
## If you remove straight, it will stop resolving DNS, and that is why we are going to use these following commands
opkg update; cd /tmp/ && opkg download dnsmasq-full; opkg install ipset libnettle8 libnetfilter-conntrack3;
opkg remove dnsmasq; opkg install dnsmasq-full --cache /tmp/; rm -f /tmp/dnsmasq-full*.ipk;
## Install wget if you don't have it.
## You can skip that if you can upload those files using SCP
## Check the official repo as those endpoints update frequently therefore change it accordingly
opkg install wget
wget https://downloads.sourceforge.net/project/v2raya/openwrt/v2raya.pub -O /etc/opkg/keys/94cc2a834fb0aa03
@dusekdan
dusekdan / message_sender.py
Created March 15, 2019 20:26
Sending Messages to Game Windows Through DirectInput and Win32API
import os
import ctypes
import win32api
w = WindowMgr()
PUL = ctypes.POINTER(ctypes.c_ulong)
class KeyBdInput(ctypes.Structure):
_fields_ = [("wVk", ctypes.c_ushort),
("wScan", ctypes.c_ushort),
@d3v1an7
d3v1an7 / ddr-extreme.md
Last active August 27, 2025 23:22
Setting up Stepmania to look/feel like DDR Extreme

Setting up Stepmania to look/feel like DDR Extreme

The first time I played DDR was on a 6th Mix DDR MAX cabinet, but I spent most of my time with this massive custom LED wall screen that housed DDR Extreme. So when I got a foam pad for home, I wanted to replicate what felt most comfortable.

I'm sure it's not pixel perfect, and there are probably some arcade features/behaviours I'm missing, but this setup is close enough for me!

  1. Download Beware's Stepmania Extreme build (direct)

If you don't mind using an older version of Stepmania, you're probably good to go and can ignore the rest!