Skip to content

Instantly share code, notes, and snippets.

@DJStompZone
DJStompZone / README.md
Last active February 24, 2025 16:44
Example Network Diagram

Example Network Diagram

flowchart TD
    A[PC 1] <---> B{Server}
    C[PC 2] <---> B
    D[PC 3] <---> B
    H([Xbox]) --> F
    E[Laptop] <---> B
 I([PS5]) --&gt; F
@DJStompZone
DJStompZone / formatstr3.py
Created February 22, 2025 19:22
PicoCTF Format String 3
#!/usr/bin/env python3
from pwn import *
import argparse
import os
from time import sleep
REQS = ["./format-string-3", "libc.so.6", "ld-linux-x86-64.so.2"]
BIN, libc, _ = REQS
context.binary = ELF(BIN)
@DJStompZone
DJStompZone / windows_key.py
Created February 1, 2025 01:56
Windows Key Algorithm
#!/usr/bin/env python3
from typing import Optional
import windows_tools.registry
import windows_tools.wmi_queries
def decode_key(rpk: str) -> str:
"""
@DJStompZone
DJStompZone / specs.md
Last active January 28, 2025 20:09
Moto Stylus 5G Specs

Moto Stylus 5G (2024) Specs

---
config:
  themeCSS: |
    #Specs rect {
      stroke: #422 !important;
      stroke-width: 3px !important;
      fill: #102 !important;
@DJStompZone
DJStompZone / fix-backticks.ps1
Last active January 23, 2025 14:30
Fix Backticks (Lua)
<#
.SYNOPSIS
Processes a Lua file by replacing certain characters.
.DESCRIPTION
The script checks if `v.l` or `vehicles.lua` exists. If `v.l` exists, it uses that for processing. Otherwise, it renames `vehicles.lua` to `v.l` and processes the file content to replace backticks with single quotes.
.AUTHOR
DJ Stomp <[email protected]>
@DJStompZone
DJStompZone / README.md
Last active January 19, 2025 05:58
Scheduler architecture
%%{
  init: {
    'theme': 'forest',
    "fontFamily": "Trebuchet MS, Verdana, Arial, Sans-Serif",
    "logLevel": "info",
    "flowchart": {
      "htmlLabels": true,
      "curve": "linear",
      "diagramPadding": "40"
@DJStompZone
DJStompZone / Albert.md
Last active October 17, 2024 02:55
ALBERT
graph TD
    %% Best Tag Sequence
    subgraph BestTagSequence ["Best tag sequence"]
    B1["B-Time"] --> I1["I-Time"] --> B2["B-Time"] --> I2["I-Time"]
    end

    %% CRF Layer
    subgraph CRFLayer ["CRF Layer"]
    CRF1["CRF"] --> CRF2["CRF"] --> CRF3["CRF"] --> CRF4["CRF"]
@DJStompZone
DJStompZone / README.md
Last active September 15, 2024 17:48
Funny Spanish Movie Titles

Top 5 Hilariously Translated Spanish Movie Titles

Movie titles often undergo significant changes when translated for international audiences. Sometimes, these translations can be unintentionally humorous or misleading when rendered back into English. Here's a list of the top 5 movies whose Spanish titles take on a new, amusing life when translated back to English.


1. "Die Hard"

Spanish Title: "Jungla de Cristal"
English Translation: "Crystal Jungle"

@DJStompZone
DJStompZone / _neofetch_startup.sh
Last active September 3, 2024 13:38
Neofetch Startup Drip
TWID=$(tput cols)
LMAX=0
mv ${HOME}/.config/neofetch/config.conf ${HOME}/.config/neofetch/config.conf.old 2>/dev/null
echo "cHJpbnRfaW5mbygpIHsKICAgIGluZm8gdGl0bGUKICAgIGluZm8gdW5kZXJsaW5lCiAgICBpbmZvICJPUyIgZGlzdHJvCiAgICBpbmZvICJLZXJuZWwiIGtlcm5lbAogICAgaW5mbyAiSG9zdCIgbW9kZWwKCQogICAgaW5mbyAiVXB0aW1lIiB1cHRpbWUKICAgIGluZm8gIlRlcm1pbmFsIiB0ZXJtCiAgICBpbmZvICJUZXJtaW5hbCBGb250IiB0ZXJtX2ZvbnQKICAgIGluZm8gIlNoZWxsIiBzaGVsbAogICAgaW5mbyAiUGFja2FnZXMiIHBhY2thZ2VzCgkKICAgIGluZm8gIk1lbW9yeSIgbWVtb3J5CiAgICBpbmZvICJDUFUiIGNwdQogICAgaW5mbyAiQ1BVIFVzYWdlIiBjcHVfdXNhZ2UKICAgIGluZm8gIkRpc2siIGRpc2sKCQogICAgaW5mbyAiTG9jYWwgSVAiIGxvY2FsX2lwCiAgICAgICAgICAgIAp9CnRpdGxlX2ZxZG49Im9mZiIKa2VybmVsX3Nob3J0aGFuZD0ib2ZmIgpkaXN0cm9fc2hvcnRoYW5kPSJvZmYiCm9zX2FyY2g9Im9uIgp1cHRpbWVfc2hvcnRoYW5kPSJ0aW55IgptZW1vcnlfcGVyY2VudD0ib24iCm1lbW9yeV91bml0PSJnaWIiCnBhY2thZ2VfbWFuYWdlcnM9Im9mZiIKc2hlbGxfcGF0aD0ib24iCnNoZWxsX3ZlcnNpb249Im9uIgpzcGVlZF90eXBlPSJiaW9zX2xpbWl0IgpzcGVlZF9zaG9ydGhhbmQ9Im9mZiIKY3B1X2JyYW5kPSJvbiIKY3B1X3NwZWVkPSJvbiIKY3B
@DJStompZone
DJStompZone / README.md
Created August 20, 2024 22:36
Flask Blueprints

"Flask Blueprints: What The Fuck?"

A Brief Lesson in Flask-Fu

Introduction

Hiya!

So, you've been working with Flask for a while now. And if you're like most people, so far you have probably mainly stuck with a single app.py file that contains everything; routes, configurations, database models, all that. This is what we call a "monolith", and it's the epitome of the "Kitchen Sink" model. It's a great starting point, especially for those still getting the hang of Flask and learning the ropes.