Skip to content

Instantly share code, notes, and snippets.

@BongoKnight
BongoKnight / README.md
Created April 24, 2025 15:48
Infosec RSS feed from AppSec Ezine 01-2024 to 04-2025 and ShellShark
  1. Insert a list of URLs in the python file
  2. Retrieve the list of feed found
  3. Do a bit of cleanup to remove non feed items (remove URL with comments or derivative of opensearch.xml files)
  4. You can then use a online tool such as this one to generate an OPML file to bulk import these feeds: https://dotriz.com/tools/opml-generator/

Warning

Feeds might be incorrect, too verbose or unrelated to infosec, I will sort the feed after import in my RSS feed reader

@BongoKnight
BongoKnight / MRE.py
Created January 29, 2025 14:55
Butoon.Pressed vs Provider callback
from functools import partial
import traceback
from textual import on
from textual.reactive import reactive
from textual.app import App
from textual.app import ComposeResult
from textual.screen import Screen
from textual.widgets import TextArea, Input, Button
from textual.containers import Horizontal
@BongoKnight
BongoKnight / Feedd.opml
Created November 30, 2024 10:47
Threat Intel Feed
<?xml version="1.0" encoding="UTF-8"?>
<!-- OPML generated by Capy Reader -->
<opml version="1.1">
<head>
<title>Capy Reader Export</title>
</head>
<body>
<outline text="AI" title="AI">
<outline text="Embrace The Red" title="Embrace The Red" description="" type="rss" version="RSS" htmlUrl="https://embracethered.com/blog/" xmlUrl="https://embracethered.com/blog/index.xml"/>
</outline>
@BongoKnight
BongoKnight / generate_markdown.py
Created February 27, 2024 13:11
Polarstep to Markdown
import json
from dataclasses import dataclass
import inspect
from datetime import date, datetime
@dataclass
class Step:
"Class for representing a PolarStep Step"
description: str
media: list
@BongoKnight
BongoKnight / main.js
Created October 24, 2023 15:58
main.js for obsidian-pandoc with PDF engine selection
/*
THIS IS A GENERATED/BUNDLED FILE BY ESBUILD
if you want to view the source, please visit the github repository of this plugin
*/
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
@BongoKnight
BongoKnight / utf8_normalization.py
Created September 4, 2023 14:58
Generate UTF8 NFKD text
import unicodedata
import random
unicode_max = 0x10ffff
printable_glyphs = [ chr(x) for x in range(0, unicode_max+1) if chr(x).isprintable()]
alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.'
dict_alpha = {i:[] for i in alphabet}
for i in printable_glyphs :
normalized_char = unicodedata.normalize("NFKD", i)
if len(normalized_char)==1 and normalized_char in alphabet:
# Byte-compiled / optimized / DLL files
__pycache__/
*.py[cod]
*$py.class
# C extensions
*.so
# Distribution / packaging
.Python